Commit ecc0b7af authored by Franco Fichtner's avatar Franco Fichtner

www: unify upper right corner between legacy and mvc

o Help link is in the menu and was already removed from MVC version
o Display user@host.domain in MVC too
o Logout is in the menu too

We might be able to salvage all the space now that the menu is consisten
and transform the top bar into the tile bar instead...

Log links still show, but will be killed as well early in the 16.1
series.
parent dcdcd9a9
......@@ -229,6 +229,11 @@ class ControllerBase extends ControllerRoot
$this->view->ui_theme = $cnf->object()->theme;
}
// info about the current user and box
$this->view->system_hostname = $cnf->object()->system->hostname;
$this->view->system_domain = $cnf->object()->system->domain;
$this->view->session_username = $_SESSION['Username'];
// append ACL object to view
$this->view->acl = new \OPNsense\Core\ACL();
}
......
......@@ -119,11 +119,7 @@
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li id="menu_messages">
<a href="#">{{title|default("OPNsense") }}</a> </li>
<li></li><li></li><li></li>
<li></li>
<li class="active"><a href="/index.php?logout">{{ lang._('Logout') }}</a></li>
<li id="menu_messages"><a href="#">{{session_username}}@{{system_hostname}}.{{system_domain}}</a></li>
</ul>
</div>
......
......@@ -114,8 +114,6 @@ if($need_alert_display == true) {
echo '<li>'.get_shortcut_log_link($shortcut_section, false).'</li>';
}
?>
<li><a href="<?= "/help.php?page={$pagename}" ?>" target="_blank" title="<?= gettext('Help for items on this page') ?>"><?= gettext('Help') ?></a></li>
<li class="active"><a href="/index.php?logout"><?= gettext('Logout') ?></a></li>
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment