<%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.route_path('admin_home'))} » ${h.link_to(_('Repository Groups'),h.route_path('repo_groups'))} » ${h.link_to(c.repo_group.group_name,h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name))} %else: ${h.link_to(_('Admin'),h.route_path('admin_home'))} » ${h.link_to(_('Settings'),h.route_path('admin_settings'))} %endif %if c.current_IntegrationType: » %if c.repo: ${h.link_to(_('Integrations'), request.route_path(route_name='repo_integrations_home', repo_name=c.repo.repo_name))} %elif c.repo_group: ${h.link_to(_('Integrations'), request.route_path(route_name='repo_group_integrations_home', repo_group_name=c.repo_group.group_name))} %else: ${h.link_to(_('Integrations'), request.route_path(route_name='global_integrations_home'))} %endif » ${c.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: ${_('Repository Group Integrations: {}').format(c.repo_group.group_name)}

%else: ${_('Current Integrations')} %endif
<% integration_type = c.current_IntegrationType and c.current_IntegrationType.display_name or '' 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') %>

${_('Create new integration')}

%if not c.integrations_list: %endif %for IntegrationType, integration in c.integrations_list: %endif %endfor
${_('Enabled')} ${_('Name')} ${_('Type')} ${_('Scope')} ${_('Actions')}
%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 c.current_IntegrationType: <% if c.repo: create_url = h.route_path('repo_integrations_create', repo_name=c.repo.repo_name, integration=c.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=c.current_IntegrationType.key) else: create_url = h.route_path('global_integrations_create', integration=c.current_IntegrationType.key) %> %endif ${_('Create one')}
${h.bool2icon(integration.enabled)}
${integration.name} %if integration.integration_type in c.available_integrations:
${c.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
${c.integrations_list.render()}