## -*- 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))} %else: ${h.link_to(_('Admin'),h.url('admin_home'))} » ${h.link_to(_('Settings'),h.url('admin_settings'))} %endif %if current_IntegrationType: » %if c.repo: ${h.link_to(_('Integrations'), request.route_url(route_name='repo_integrations_home', repo_name=c.repo.repo_name))} %else: ${h.link_to(_('Integrations'), request.route_url(route_name='global_integrations_home'))} %endif » ${current_IntegrationType.display_name} %else: » ${_('Integrations')} %endif

${_('Create New Integration')}

%if not available_integrations: ${_('No integrations available.')} %else: %for integration in available_integrations: <% if c.repo: create_url = request.route_url('repo_integrations_create', repo_name=c.repo.repo_name, integration=integration) else: create_url = request.route_url('global_integrations_create', integration=integration) %> ${integration} %endfor %endif

${_('Current Integrations')}

%for integration_type, integrations in sorted(current_integrations.items()): %for integration in sorted(integrations, key=lambda x: x.name): %endfor %endfor
${_('Enabled')} ${_('Description')} ${_('Type')} ${_('Actions')}
%if integration.enabled:
%else:
%endif
${integration.name} ${integration.integration_type} %if integration_type not in available_integrations: ${_('unknown integration')} %else: <% if c.repo: edit_url = request.route_url('repo_integrations_edit', repo_name=c.repo.repo_name, integration=integration.integration_type, integration_id=integration.integration_id) else: edit_url = request.route_url('global_integrations_edit', integration=integration.integration_type, integration_id=integration.integration_id) %> %endif