|
|
## -*- coding: utf-8 -*-
|
|
|
<%inherit file="base.html"/>
|
|
|
|
|
|
<%def name="breadcrumbs_links()">
|
|
|
%if c.repo:
|
|
|
${h.link_to('Settings',h.url('edit_repo', repo_name=c.repo.repo_name))}
|
|
|
»
|
|
|
${h.link_to(_('Integrations'),request.route_url(route_name='repo_integrations_home', repo_name=c.repo.repo_name))}
|
|
|
»
|
|
|
${h.link_to(current_IntegrationType.display_name,
|
|
|
request.route_url(route_name='repo_integrations_list',
|
|
|
repo_name=c.repo.repo_name,
|
|
|
integration=current_IntegrationType.key))}
|
|
|
%else:
|
|
|
${h.link_to(_('Admin'),h.url('admin_home'))}
|
|
|
»
|
|
|
${h.link_to(_('Settings'),h.url('admin_settings'))}
|
|
|
»
|
|
|
${h.link_to(_('Integrations'),request.route_url(route_name='global_integrations_home'))}
|
|
|
»
|
|
|
${h.link_to(current_IntegrationType.display_name,
|
|
|
request.route_url(route_name='global_integrations_list',
|
|
|
integration=current_IntegrationType.key))}
|
|
|
%endif
|
|
|
%if integration:
|
|
|
»
|
|
|
${integration.name}
|
|
|
%endif
|
|
|
</%def>
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<h2 class="panel-title">
|
|
|
%if integration:
|
|
|
${current_IntegrationType.display_name} - ${integration.name}
|
|
|
%else:
|
|
|
${_('Create new %(integration_type)s integration') % {'integration_type': current_IntegrationType.display_name}}
|
|
|
%endif
|
|
|
</h2>
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
${form.render() | n}
|
|
|
</div>
|
|
|
</div>
|
|
|
|