##// END OF EJS Templates
vcs: handle excessive slashes in from of the repo name path, fixes #5522
vcs: handle excessive slashes in from of the repo name path, fixes #5522

File last commit:

r2576:ccf58279 default
r3329:e2c979bc stable
Show More
new.mako
68 lines | 2.8 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 ## -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%namespace name="widgets" file="/widgets.mako"/>
<%def name="breadcrumbs_links()">
%if c.repo:
repo-settings: converted repo settings to pyramid...
r1716 ${h.link_to('Settings',h.route_path('edit_repo', repo_name=c.repo.repo_name))}
templating: use .mako as extensions for template files.
r1282 &raquo;
${h.link_to(_('Integrations'),request.route_url(route_name='repo_integrations_home', repo_name=c.repo.repo_name))}
%elif c.repo_group:
audit-logs: introduced new view to replace admin journal....
r1758 ${h.link_to(_('Admin'),h.route_path('admin_home'))}
templating: use .mako as extensions for template files.
r1282 &raquo;
repo-groups: moved to pyramid
r2175 ${h.link_to(_('Repository Groups'),h.route_path('repo_groups'))}
templating: use .mako as extensions for template files.
r1282 &raquo;
repo-groups: moved to pyramid
r2175 ${h.link_to(c.repo_group.group_name,h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name))}
templating: use .mako as extensions for template files.
r1282 &raquo;
${h.link_to(_('Integrations'),request.route_url(route_name='repo_group_integrations_home', repo_group_name=c.repo_group.group_name))}
%else:
audit-logs: introduced new view to replace admin journal....
r1758 ${h.link_to(_('Admin'),h.route_path('admin_home'))}
templating: use .mako as extensions for template files.
r1282 &raquo;
admin: ported settings controller to pyramid....
r2333 ${h.link_to(_('Settings'),h.route_path('admin_settings'))}
templating: use .mako as extensions for template files.
r1282 &raquo;
${h.link_to(_('Integrations'),request.route_url(route_name='global_integrations_home'))}
%endif
&raquo;
${_('Create new integration')}
</%def>
<%widgets:panel class_='integrations'>
<%def name="title()">
%if c.repo:
${_('Create New Integration for repository: {repo_name}').format(repo_name=c.repo.repo_name)}
%elif c.repo_group:
${_('Create New Integration for repository group: {repo_group_name}').format(repo_group_name=c.repo_group.group_name)}
%else:
${_('Create New Global Integration')}
%endif
</%def>
integrations: expose EE integrations as dummy objects to show...
r2138 %for integration, IntegrationObject in c.available_integrations.items():
templating: use .mako as extensions for template files.
r1282 <%
if c.repo:
create_url = request.route_path('repo_integrations_create',
repo_name=c.repo.repo_name,
integration=integration)
elif c.repo_group:
create_url = request.route_path('repo_group_integrations_create',
repo_group_name=c.repo_group.group_name,
integration=integration)
else:
create_url = request.route_path('global_integrations_create',
integration=integration)
integrations: expose EE integrations as dummy objects to show...
r2138 if IntegrationObject.is_dummy:
create_url = request.current_route_path()
templating: use .mako as extensions for template files.
r1282 %>
integrations: expose EE integrations as dummy objects to show...
r2138 <a href="${create_url}" class="integration-box ${'dummy-integration' if IntegrationObject.is_dummy else ''}">
templating: use .mako as extensions for template files.
r1282 <%widgets:panel>
<h2>
<div class="integration-icon">
integrations: use classmethod for icon extraction for easier code readability.
r2576 ${IntegrationObject.icon()|n}
templating: use .mako as extensions for template files.
r1282 </div>
integrations: expose EE integrations as dummy objects to show...
r2138 ${IntegrationObject.display_name}
templating: use .mako as extensions for template files.
r1282 </h2>
integrations: expose EE integrations as dummy objects to show...
r2138 ${IntegrationObject.description or _('No description available')}
templating: use .mako as extensions for template files.
r1282 </%widgets:panel>
</a>
%endfor
<div style="clear:both"></div>
</%widgets:panel>