## -*- coding: utf-8 -*- <%inherit file="base.mako"/> <%def name="breadcrumbs_links()"> %if c.repo: ${h.link_to('Settings',h.route_path('edit_repo', repo_name=c.repo.repo_name))} %elif c.repo_group: ${h.link_to(_('Admin'),h.url('admin_home'))} » ${h.link_to(_('Repository Groups'),h.url('repo_groups'))} » ${h.link_to(c.repo_group.group_name,h.url('edit_repo_group', group_name=c.repo_group.group_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))} %elif c.repo_group: ${h.link_to(_('Integrations'), request.route_url(route_name='repo_group_integrations_home', repo_group_name=c.repo_group.group_name))} %else: ${h.link_to(_('Integrations'), request.route_url(route_name='global_integrations_home'))} %endif » ${current_IntegrationType.display_name} %else: » ${_('Integrations')} %endif

%if c.repo: ${_('Current Integrations for Repository: {repo_name}').format(repo_name=c.repo.repo_name)} %elif c.repo_group: ${_('Current Integrations for repository group: {repo_group_name}').format(repo_group_name=c.repo_group.group_name)} %else: ${_('Current Integrations')} %endif

<% if c.repo: home_url = request.route_path('repo_integrations_home', repo_name=c.repo.repo_name) elif c.repo_group: home_url = request.route_path('repo_group_integrations_home', repo_group_name=c.repo_group.group_name) else: home_url = request.route_path('global_integrations_home') %> ${_('All')} %for integration_key, IntegrationType in available_integrations.items(): <% if c.repo: list_url = request.route_path('repo_integrations_list', repo_name=c.repo.repo_name, integration=integration_key) elif c.repo_group: list_url = request.route_path('repo_group_integrations_list', repo_group_name=c.repo_group.group_name, integration=integration_key) else: list_url = request.route_path('global_integrations_list', integration=integration_key) %> ${IntegrationType.display_name} %endfor <% if c.repo: create_url = h.route_path('repo_integrations_new', repo_name=c.repo.repo_name) elif c.repo_group: create_url = h.route_path('repo_group_integrations_new', repo_group_name=c.repo_group.group_name) else: create_url = h.route_path('global_integrations_new') %>

${_(u'Create new integration')}

%if not integrations_list: %endif %for IntegrationType, integration in integrations_list: %endif %endfor
${_('Enabled')} ${_('Name')} ${_('Type')} ${_('Scope')} ${_('Actions')}
<% integration_type = current_IntegrationType and current_IntegrationType.display_name or '' %> %if c.repo: ${_('No {type} integrations for repo {repo} exist yet.').format(type=integration_type, repo=c.repo.repo_name)} %elif c.repo_group: ${_('No {type} integrations for repogroup {repogroup} exist yet.').format(type=integration_type, repogroup=c.repo_group.group_name)} %else: ${_('No {type} integrations exist yet.').format(type=integration_type)} %endif %if current_IntegrationType: <% if c.repo: create_url = h.route_path('repo_integrations_create', repo_name=c.repo.repo_name, integration=current_IntegrationType.key) elif c.repo_group: create_url = h.route_path('repo_group_integrations_create', repo_group_name=c.repo_group.group_name, integration=current_IntegrationType.key) else: create_url = h.route_path('global_integrations_create', integration=current_IntegrationType.key) %> %endif ${_(u'Create one')}
%if integration.enabled:
%else:
%endif
${integration.name} %if integration.integration_type in available_integrations:
${available_integrations[integration.integration_type].icon|n}
%else: ? %endif
${integration.integration_type} %if integration.repo: ${_('repo')}:${integration.repo.repo_name} %elif integration.repo_group: ${_('repogroup')}:${integration.repo_group.group_name} %if integration.child_repos_only: ${_('child repos only')} %else: ${_('cascade to all')} %endif %else: %if integration.child_repos_only: ${_('top level repos only')} %else: ${_('global')} %endif %if not IntegrationType: ${_('unknown integration')} %else: <% if c.repo: edit_url = request.route_path('repo_integrations_edit', repo_name=c.repo.repo_name, integration=integration.integration_type, integration_id=integration.integration_id) elif c.repo_group: edit_url = request.route_path('repo_group_integrations_edit', repo_group_name=c.repo_group.group_name, integration=integration.integration_type, integration_id=integration.integration_id) else: edit_url = request.route_path('global_integrations_edit', integration=integration.integration_type, integration_id=integration.integration_id) %> %endif
${integrations_list.pager('$link_previous ~2~ $link_next')}