[core] Correct bottom border of the user dropdown when no dropdown is there
@@ -224,14 +224,12 @@ ${ hueIcons.symbols() }
<%
view_profile = user.has_hue_permission(action="access_view:useradmin:edit_user", app="useradmin") or user.is_superuser
%>
+ % if view_profile:
<li class="dropdown">
- <a title="${ _('Administration') if view_profile else '' }" href="#" rel="navigator-tooltip" data-toggle="dropdown" class="dropdown-toggle">
+ <a title="${ _('Administration') }" href="#" rel="navigator-tooltip" data-toggle="dropdown" class="dropdown-toggle">
<i class="fa fa-cogs"></i>&nbsp;${user.username}&nbsp;
- % if view_profile:
<b class="caret"></b>
- % endif
</a>
- % if view_profile:
<ul class="dropdown-menu pull-right">
<li>
<a href="${ url('useradmin.views.edit_user', username=user.username) }"><i class="fa fa-key"></i>&nbsp;&nbsp;
@@ -246,8 +244,10 @@ ${ hueIcons.symbols() }
<li><a href="${ url('useradmin.views.list_users') }"><i class="fa fa-group"></i>&nbsp;&nbsp;${_('Manage Users')}</a></li>
% endif
</ul>
- % endif
</li>
+ % else:
+ <li><a title="" rel="navigator-tooltip" href="#"><i class="fa fa-user"></i>&nbsp;${user.username}</a></li>
+ % endif
% if 'help' in apps:
<li><a title="${_('Documentation')}" rel="navigator-tooltip" href="/help"><i class="fa fa-question-circle"></i></a></li>
% endif
