-->
<div id="main-menu" redback-permissions="{permissions: ['archiva-manage-users','archiva-manage-configuration']}" style="display: none">
- <ul class="nav nav-list">
+ <ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-users']}">
+ <li class="nav-header">${$.i18n.prop('menu.manage')}</li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}">
- <a href="#" id="menu-users-list-a" onclick="displayUsersGrid()">${$.i18n.prop('menu.users')}</a>
+ <a href="#" id="menu-users-list-a" onclick="displayUsersGrid(this)">${$.i18n.prop('menu.users')}</a>
</li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}">
<a href="#" id="menu-roles-list-a" onclick="displayRolesGrid()">${$.i18n.prop('menu.roles')}</a>
</li>
+ </ul>
+
+ <ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-configuration']}">
+ <li class="nav-header">${$.i18n.prop('menu.administration')}</li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-configuration']}">
<a href="#" id="menu-repositories-list-a" onclick="displayRepositoriesGrid()">${$.i18n.prop('menu.repositories')}</a>
</li>
<a href="#" id="menu-proxy-connectors-list-a" onclick="displayProxyConnectors()">${$.i18n.prop('menu.proxy-connectors')}</a>
</li>
</ul>
+
</div>
/**
* called from the menu to display tabs with users grid
*/
- displayUsersGrid=function() {
+ displayUsersGrid=function(menuEntry) {
+ $(menuEntry).parent().addClass("active");
screenChange();
$("#main-content").html(mediumSpinnerImg());
jQuery("#main-content").attr("data-bind",'template: {name:"usersGrid"}');