##// END OF EJS Templates
fix(backend): fixed broken backends function after python3 migration...
fix(backend): fixed broken backends function after python3 migration (grafted from 112c3403e5ce3301bd7e910fb76d49aeaa9d49a4)

File last commit:

r5137:f3cd5ebe default
r5524:fb58a2b4 default
Show More
main.mako
66 lines | 1.6 KiB | application/x-mako | MakoHtmlLexer
admin: added basic admin page
r3563 <%inherit file="/base/base.mako"/>
<%def name="title()">
${_('Settings administration')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
nav: bring back quick filter and cleanup titles
r3589 <%def name="breadcrumbs_links()"></%def>
admin: added basic admin page
r3563
<%def name="menu_bar_nav()">
${self.menu_items(active='admin')}
</%def>
ui: navigation, fixed wrapping of new admin navigation items
r3566 <%def name="menu_bar_subnav()">
${self.admin_menu()}
</%def>
admin: added basic admin page
r3563 <%def name="side_bar_nav()">
</%def>
<%def name="main_content()">
admin: added admin action area
r3608 <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:
core: revamp of automation/scheduler/artifacts EE functionality
r5137 <a href="${h.route_path('repo_group_new')}" class="">${_('Add Repository Group')}</a>
admin: added admin action area
r3608 % 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:
core: revamp of automation/scheduler/artifacts EE functionality
r5137 <a href="${h.route_path('user_groups_new')}" class="">${_('Add User Group')}</a>
admin: added admin action area
r3608 % endif
</td>
</tr>
</table>
admin: added basic admin page
r3563 </%def>
<%def name="main()">
<div class="box">
##main
auth: reduced usage of raw auth calls inside templates
r3587 <div class="main-content-auto-width">
admin: added basic admin page
r3563 ${self.main_content()}
</div>
</div>
</%def>