Skip to content

Commit

Permalink
User-menu icon layout (CFM-196) (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Aug 30, 2022
1 parent b736533 commit e74df46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/templates/element/menuTop.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<!-- Account Dropdown -->
<div id="user-panel" class="dropdown-menu <?= (count($vv_available_cos) > 1) ? ' with-co-switcher' : ''; ?>" aria-labelledby="user-panel-toggle">
<div id="logout-in-panel">
<?= $this->Html->link(__d('operation','logout') . ' <em class="material-icons" aria-hidden="true">logout</em>',
<?= $this->Html->link('<em class="material-icons" aria-hidden="true">logout</em> ' . __d('operation','logout'),
'/auth/logout/logout.php',
['escape' => false,
'id' => 'logout-in-panel-link',
Expand All @@ -52,7 +52,7 @@
</div>
<?php if(count($vv_available_cos) > 1): // More than one CO is available, so present the switch button ?>
<div id="user-panel-switch-co">
<?= $this->Html->link(__d('menu','co.switch') . ' <em class="material-icons" aria-hidden="true">transfer_within_a_station</em>',
<?= $this->Html->link('<em class="material-icons" aria-hidden="true">transfer_within_a_station</em> ' . __d('menu','co.switch'),
'/cos/select',
['escape' => false,
'id' => 'co-switch-link',
Expand All @@ -68,7 +68,7 @@
<?php if(!isset($noLoginLogout) || !$noLoginLogout) : ?>
<?php
if(empty($vv_user)) {
print $this->Html->link(__d('operation', 'login') . ' <em class="material-icons" aria-hidden="true">login</em>',
print $this->Html->link('<em class="material-icons" aria-hidden="true">login</em> '. __d('operation', 'login'),
['controller' => 'cos',
'action' => 'select',
'plugin' => false],
Expand Down
1 change: 0 additions & 1 deletion app/webroot/css/co-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ body.logged-in #top-menu {
#top-menu .material-icons {
vertical-align: bottom;
font-size: 23px;
margin-right: -4px;
}
#top-menu .dropdown-item {
padding: 0.5em 1em;
Expand Down

0 comments on commit e74df46

Please sign in to comment.