|
@@ -403,8 +403,17 @@ if USE_NEW_EDITOR.get():
|
|
|
<li class="hide1380"><a title="${_('Manage jobs')}" rel="navigator-tooltip" href="/${apps['jobbrowser'].display_name}"><i class="fa fa-list-alt"></i> ${_('Job Browser')} <span id="jobBrowserCount" class="badge badge-warning hide" style="padding-top:0;padding-bottom: 0"></span></a></li>
|
|
<li class="hide1380"><a title="${_('Manage jobs')}" rel="navigator-tooltip" href="/${apps['jobbrowser'].display_name}"><i class="fa fa-list-alt"></i> ${_('Job Browser')} <span id="jobBrowserCount" class="badge badge-warning hide" style="padding-top:0;padding-bottom: 0"></span></a></li>
|
|
|
<li class="hideMoreThan1380"><a title="${_('Job Browser')}" rel="navigator-tooltip" href="/${apps['jobbrowser'].display_name}"><i class="fa fa-list-alt"></i></a></li>
|
|
<li class="hideMoreThan1380"><a title="${_('Job Browser')}" rel="navigator-tooltip" href="/${apps['jobbrowser'].display_name}"><i class="fa fa-list-alt"></i></a></li>
|
|
|
% endif
|
|
% endif
|
|
|
|
|
+ <%
|
|
|
|
|
+ view_profile = user.has_hue_permission(action="access_view:useradmin:edit_user", app="useradmin") or user.is_superuser
|
|
|
|
|
+ %>
|
|
|
<li class="dropdown">
|
|
<li class="dropdown">
|
|
|
- <a title="${ _('Administration') }" rel="navigator-tooltip" href="index.html#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-cogs"></i> <span class="hideable">${user.username} </span><b class="caret"></b></a>
|
|
|
|
|
|
|
+ <a title="${ _('Administration') if view_profile else '' }" href="index.html#" rel="navigator-tooltip" data-toggle="dropdown" class="dropdown-toggle">
|
|
|
|
|
+ <i class="fa fa-cogs"></i> <span class="hideable">${user.username} </span>
|
|
|
|
|
+ % if view_profile:
|
|
|
|
|
+ <b class="caret"></b>
|
|
|
|
|
+ % endif
|
|
|
|
|
+ </a>
|
|
|
|
|
+ % if view_profile:
|
|
|
<ul class="dropdown-menu pull-right">
|
|
<ul class="dropdown-menu pull-right">
|
|
|
<li>
|
|
<li>
|
|
|
<a href="${ url('useradmin.views.edit_user', username=user.username) }"><i class="fa fa-key"></i>
|
|
<a href="${ url('useradmin.views.edit_user', username=user.username) }"><i class="fa fa-key"></i>
|
|
@@ -419,6 +428,7 @@ if USE_NEW_EDITOR.get():
|
|
|
<li><a href="${ url('useradmin.views.list_users') }"><i class="fa fa-group"></i> ${_('Manage Users')}</a></li>
|
|
<li><a href="${ url('useradmin.views.list_users') }"><i class="fa fa-group"></i> ${_('Manage Users')}</a></li>
|
|
|
% endif
|
|
% endif
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
+ % endif
|
|
|
</li>
|
|
</li>
|
|
|
% if 'help' in apps:
|
|
% if 'help' in apps:
|
|
|
<li><a title="${_('Documentation')}" rel="navigator-tooltip" href="/help"><i class="fa fa-question-circle"></i></a></li>
|
|
<li><a title="${_('Documentation')}" rel="navigator-tooltip" href="/help"><i class="fa fa-question-circle"></i></a></li>
|