shortcut to users management

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1307338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-30 10:02:06 +00:00
parent e6b8ccc7c8
commit f6b701ede4
2 changed files with 6 additions and 1 deletions

View File

@ -138,6 +138,11 @@ function() {
displayUploadArtifact();
return;
}
if (screen=='manage-users' && hasKarma('archiva-manage-users')){
displayUsersGrid();
return;
}
}
// by default display search screen
displaySearch();

View File

@ -70,7 +70,7 @@
<ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-users']}">
<li class="nav-header">${$.i18n.prop('menu.users')}</li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}">
<a href="#" id="menu-users-list-a" onclick="displayUsersGrid(this)">${$.i18n.prop('menu.users.manage')}</a>
<a href="#" id="menu-users-list-a" onclick="displayUsersGrid()">${$.i18n.prop('menu.users.manage')}</a>
</li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}">
<a href="#" id="menu-roles-list-a" onclick="displayRolesGrid()">${$.i18n.prop('menu.users.roles')}</a>