##// END OF EJS Templates
git: use force fetch and update for target ref. This solves a case...
git: use force fetch and update for target ref. This solves a case when in PRs a target is force updated and is out of sync. Before we used a pull which --ff-only fails obviosly because two are out of sync. This change uses new logic that resets the target branch according to the source target branch allowing smooth merge simulation.

File last commit:

r2042:e367c94a default
r2784:e8c62649 default
Show More
permissions.mako
62 lines | 2.0 KiB | application/x-mako | MakoHtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="/base/base.mako"/>
<%def name="title()">
${_('Permissions Administration')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="breadcrumbs_links()">
${h.link_to(_('Admin'),h.route_path('admin_home'))}
&raquo;
${_('Permissions')}
</%def>
<%def name="menu_bar_nav()">
${self.menu_items(active='admin')}
</%def>
<%def name="main()">
<div class="box">
<div class="title">
${self.breadcrumbs()}
</div>
<div class="sidebar-col-wrapper scw-small">
##main
<div class="sidebar">
<ul class="nav nav-pills nav-stacked">
<li class="${'active' if c.active=='application' else ''}">
<a href="${h.route_path('admin_permissions_application')}">${_('Application')}</a>
</li>
<li class="${'active' if c.active=='global' else ''}">
<a href="${h.route_path('admin_permissions_global')}">${_('Global')}</a>
</li>
<li class="${'active' if c.active=='objects' else ''}">
<a href="${h.route_path('admin_permissions_object')}">${_('Object')}</a>
</li>
<li class="${'active' if c.active=='ips' else ''}">
<a href="${h.route_path('admin_permissions_ips')}">${_('IP Whitelist')}</a>
</li>
<li class="${'active' if c.active=='auth_token_access' else ''}">
<a href="${h.route_path('admin_permissions_auth_token_access')}">${_('AuthToken Access')}</a>
</li>
<li class="${'active' if c.active=='ssh_keys' else ''}">
<a href="${h.route_path('admin_permissions_ssh_keys')}">${_('SSH Keys')}</a>
</li>
<li class="${'active' if c.active=='perms' else ''}">
<a href="${h.route_path('admin_permissions_overview')}">${_('Overview')}</a>
</li>
</ul>
</div>
<div class="main-content-full-width">
<%include file="/admin/permissions/permissions_${c.active}.mako"/>
</div>
</div>
</div>
</%def>