admin: added admin action area
This commit is contained in:
parent
b7b0b151ff
commit
2de78b20a3
1 changed files with 31 additions and 1 deletions
|
|
@ -23,7 +23,37 @@
|
|||
</%def>
|
||||
|
||||
<%def name="main_content()">
|
||||
Hello Admin
|
||||
<h2>${_('Administration area')}</h2>
|
||||
|
||||
<table class="rctable">
|
||||
<tr>
|
||||
<td>${_('Repositories under administration')}</td>
|
||||
<td class="delegated-admin-repos">${len(c.auth_user.repositories_admin)}</td>
|
||||
<td>
|
||||
% if c.can_create_repo:
|
||||
<a href="${h.route_path('repo_new')}" class="">${_('Add Repository')}</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${_('Repository groups under administration')}</td>
|
||||
<td class="delegated-admin-repo-groups">${len(c.auth_user.repository_groups_admin)}</td>
|
||||
<td>
|
||||
% if c.can_create_repo_group:
|
||||
<a href="${h.route_path('repo_group_new')}" class="">${_(u'Add Repository Group')}</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${_('User groups under administration')}</td>
|
||||
<td class="delegated-admin-user-groups">${len(c.auth_user.user_groups_admin)}</td>
|
||||
<td>
|
||||
% if c.can_create_user_group:
|
||||
<a href="${h.route_path('user_groups_new')}" class="">${_(u'Add User Group')}</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</%def>
|
||||
|
||||
<%def name="main()">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue