Show More
@@ -1,38 +1,68 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Settings administration')} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"></%def> |
|
12 | 12 | |
|
13 | 13 | <%def name="menu_bar_nav()"> |
|
14 | 14 | ${self.menu_items(active='admin')} |
|
15 | 15 | </%def> |
|
16 | 16 | |
|
17 | 17 | <%def name="menu_bar_subnav()"> |
|
18 | 18 | ${self.admin_menu()} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | 21 | <%def name="side_bar_nav()"> |
|
22 | 22 | |
|
23 | 23 | </%def> |
|
24 | 24 | |
|
25 | 25 | <%def name="main_content()"> |
|
26 | Hello Admin | |
|
26 | <h2>${_('Administration area')}</h2> | |
|
27 | ||
|
28 | <table class="rctable"> | |
|
29 | <tr> | |
|
30 | <td>${_('Repositories under administration')}</td> | |
|
31 | <td class="delegated-admin-repos">${len(c.auth_user.repositories_admin)}</td> | |
|
32 | <td> | |
|
33 | % if c.can_create_repo: | |
|
34 | <a href="${h.route_path('repo_new')}" class="">${_('Add Repository')}</a> | |
|
35 | % endif | |
|
36 | </td> | |
|
37 | </tr> | |
|
38 | <tr> | |
|
39 | <td>${_('Repository groups under administration')}</td> | |
|
40 | <td class="delegated-admin-repo-groups">${len(c.auth_user.repository_groups_admin)}</td> | |
|
41 | <td> | |
|
42 | % if c.can_create_repo_group: | |
|
43 | <a href="${h.route_path('repo_group_new')}" class="">${_(u'Add Repository Group')}</a> | |
|
44 | % endif | |
|
45 | </td> | |
|
46 | </tr> | |
|
47 | <tr> | |
|
48 | <td>${_('User groups under administration')}</td> | |
|
49 | <td class="delegated-admin-user-groups">${len(c.auth_user.user_groups_admin)}</td> | |
|
50 | <td> | |
|
51 | % if c.can_create_user_group: | |
|
52 | <a href="${h.route_path('user_groups_new')}" class="">${_(u'Add User Group')}</a> | |
|
53 | % endif | |
|
54 | </td> | |
|
55 | </tr> | |
|
56 | </table> | |
|
27 | 57 | </%def> |
|
28 | 58 | |
|
29 | 59 | <%def name="main()"> |
|
30 | 60 | <div class="box"> |
|
31 | 61 | |
|
32 | 62 | ##main |
|
33 | 63 | <div class="main-content-auto-width"> |
|
34 | 64 | ${self.main_content()} |
|
35 | 65 | </div> |
|
36 | 66 | </div> |
|
37 | 67 | |
|
38 | 68 | </%def> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now