## -*- coding: utf-8 -*- <%inherit file="base.mako"/> <%def name="breadcrumbs_links()"> %if c.repo: ${h.link_to('Settings',h.url('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 %def>
${_(u'Create new integration')}
${_('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: | %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 | %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 | |