Show More
@@ -1,38 +1,68 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.mako"/> |
|
2 | <%inherit file="/base/base.mako"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Settings administration')} |
|
5 | ${_('Settings administration')} | |
6 | %if c.rhodecode_name: |
|
6 | %if c.rhodecode_name: | |
7 | · ${h.branding(c.rhodecode_name)} |
|
7 | · ${h.branding(c.rhodecode_name)} | |
8 | %endif |
|
8 | %endif | |
9 | </%def> |
|
9 | </%def> | |
10 |
|
10 | |||
11 | <%def name="breadcrumbs_links()"></%def> |
|
11 | <%def name="breadcrumbs_links()"></%def> | |
12 |
|
12 | |||
13 | <%def name="menu_bar_nav()"> |
|
13 | <%def name="menu_bar_nav()"> | |
14 | ${self.menu_items(active='admin')} |
|
14 | ${self.menu_items(active='admin')} | |
15 | </%def> |
|
15 | </%def> | |
16 |
|
16 | |||
17 | <%def name="menu_bar_subnav()"> |
|
17 | <%def name="menu_bar_subnav()"> | |
18 | ${self.admin_menu()} |
|
18 | ${self.admin_menu()} | |
19 | </%def> |
|
19 | </%def> | |
20 |
|
20 | |||
21 | <%def name="side_bar_nav()"> |
|
21 | <%def name="side_bar_nav()"> | |
22 |
|
22 | |||
23 | </%def> |
|
23 | </%def> | |
24 |
|
24 | |||
25 | <%def name="main_content()"> |
|
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 | </%def> |
|
57 | </%def> | |
28 |
|
58 | |||
29 | <%def name="main()"> |
|
59 | <%def name="main()"> | |
30 | <div class="box"> |
|
60 | <div class="box"> | |
31 |
|
61 | |||
32 | ##main |
|
62 | ##main | |
33 | <div class="main-content-auto-width"> |
|
63 | <div class="main-content-auto-width"> | |
34 | ${self.main_content()} |
|
64 | ${self.main_content()} | |
35 | </div> |
|
65 | </div> | |
36 | </div> |
|
66 | </div> | |
37 |
|
67 | |||
38 | </%def> No newline at end of file |
|
68 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now