backoffice: add link to portal agent homepage if available (#7498)
This commit is contained in:
parent
b1d3706ce6
commit
463a5b0cae
|
@ -15,6 +15,15 @@ from qommon import get_cfg, errors
|
|||
from qommon.form import *
|
||||
|
||||
class BackofficeRootDirectory(wcs.backoffice.root.RootDirectory):
|
||||
def _q_access(self):
|
||||
super(BackofficeRootDirectory, self)._q_access()
|
||||
portal_agent_url = get_publisher().get_site_option('portal_agent_url', 'variables')
|
||||
portal_agent_title = get_publisher().get_site_option('portal_agent_title', 'variables')
|
||||
if not portal_agent_title:
|
||||
portal_agent_title = _('Portal Agent')
|
||||
if portal_agent_url:
|
||||
get_response().breadcrumb.insert(0, (portal_agent_url, portal_agent_title))
|
||||
|
||||
def get_intro_text(self):
|
||||
return _('Welcome on Publik back office interface')
|
||||
|
||||
|
|
Reference in New Issue