[core] Show all the users "Switch to Hue 4" option
@@ -330,13 +330,14 @@ ${ hueIcons.symbols() }
<%
view_profile = user.has_hue_permission(action="access_view:useradmin:edit_user", app="useradmin") or user.is_superuser
%>
- % if view_profile:
+ % if view_profile or conf.IS_HUE_4.get():
<li class="dropdown">
- <a title="${ _('Administration') }" href="#" data-rel="navigator-tooltip" data-toggle="dropdown" class="dropdown-toggle">
+ <a title="${'Administration' if view_profile else ''}" href="#" data-rel="navigator-tooltip" data-toggle="dropdown" class="dropdown-toggle">
<i class="fa fa-cogs"></i>&nbsp;${user.username}&nbsp;
<b class="caret"></b>
</a>
<ul class="dropdown-menu pull-right">
+ % if view_profile:
<li>
<a href="${ url('useradmin.views.edit_user', username=user.username) }"><i class="fa fa-fw fa-key"></i>
% if is_ldap_setup:
@@ -349,6 +350,7 @@ ${ hueIcons.symbols() }
% if user.is_superuser:
<li><a href="${ url('useradmin.views.list_users') }"><i class="fa fa-fw fa-group"></i> ${_('Manage Users')}</a></li>
% endif
+ % endif
% if conf.IS_HUE_4.get():
<li><a href="javascript:void(0)" onclick="huePubSub.publish('set.hue.version', 4)"><i class="fa fa-fw fa-exchange"></i> ${_('Switch to Hue 4')}</a></li>
% endif
