Show More
repo_group_edit.mako
61 lines
| 2.2 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.mako"/> | ||||
<%def name="title()"> | ||||
${_('%s repository group settings') % c.repo_group.name} | ||||
%if c.rhodecode_name: | ||||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
<%def name="breadcrumbs_links()"> | ||||
r1758 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} | |||
r1282 | » | |||
r2175 | ${h.link_to(_('Repository Groups'),h.route_path('repo_groups'))} | |||
r1282 | %if c.repo_group.parent_group: | |||
r1774 | » ${h.link_to(c.repo_group.parent_group.name, h.route_path('repo_group_home', repo_group_name=c.repo_group.parent_group.group_name))} | |||
r1282 | %endif | |||
» ${c.repo_group.name} | ||||
</%def> | ||||
<%def name="breadcrumbs_side_links()"> | ||||
<ul class="links"> | ||||
<li> | ||||
r2175 | <a href="${h.route_path('repo_group_new', _query=dict(parent_group=c.repo_group.group_id))}" class="btn btn-small btn-success">${_(u'Add Child Group')}</a> | |||
r1282 | </li> | |||
</ul> | ||||
</%def> | ||||
<%def name="menu_bar_nav()"> | ||||
${self.menu_items(active='admin')} | ||||
</%def> | ||||
<%def name="main_content()"> | ||||
<%include file="/admin/repo_groups/repo_group_edit_${c.active}.mako"/> | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
${self.breadcrumbs_side_links()} | ||||
</div> | ||||
<div class="sidebar-col-wrapper"> | ||||
##main | ||||
<div class="sidebar"> | ||||
<ul class="nav nav-pills nav-stacked"> | ||||
r2175 | <li class="${'active' if c.active=='settings' else ''}"><a href="${h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name)}">${_('Settings')}</a></li> | |||
<li class="${'active' if c.active=='permissions' else ''}"><a href="${h.route_path('edit_repo_group_perms', repo_group_name=c.repo_group.group_name)}">${_('Permissions')}</a></li> | ||||
<li class="${'active' if c.active=='advanced' else ''}"><a href="${h.route_path('edit_repo_group_advanced', repo_group_name=c.repo_group.group_name)}">${_('Advanced')}</a></li> | ||||
r1282 | <li class="${'active' if c.active=='integrations' else ''}"><a href="${h.route_path('repo_group_integrations_home', repo_group_name=c.repo_group.group_name)}">${_('Integrations')}</a></li> | |||
</ul> | ||||
</div> | ||||
<div class="main-content-full-width"> | ||||
${self.main_content()} | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</%def> | ||||