Show More
@@ -50,40 +50,6 | |||||
50 | </h3> |
|
50 | </h3> | |
51 | </div> |
|
51 | </div> | |
52 | <div class="panel-body"> |
|
52 | <div class="panel-body"> | |
53 | <% |
|
|||
54 | if c.repo: |
|
|||
55 | home_url = request.route_path('repo_integrations_home', |
|
|||
56 | repo_name=c.repo.repo_name) |
|
|||
57 | elif c.repo_group: |
|
|||
58 | home_url = request.route_path('repo_group_integrations_home', |
|
|||
59 | repo_group_name=c.repo_group.group_name) |
|
|||
60 | else: |
|
|||
61 | home_url = request.route_path('global_integrations_home') |
|
|||
62 | %> |
|
|||
63 |
|
||||
64 | <a href="${home_url}" class="btn ${not c.current_IntegrationType and 'btn-primary' or ''}">${_('All')}</a> |
|
|||
65 |
|
||||
66 | %for integration_key, IntegrationType in c.available_integrations.items(): |
|
|||
67 | % if not IntegrationType.is_dummy: |
|
|||
68 | <% |
|
|||
69 | if c.repo: |
|
|||
70 | list_url = request.route_path('repo_integrations_list', |
|
|||
71 | repo_name=c.repo.repo_name, |
|
|||
72 | integration=integration_key) |
|
|||
73 | elif c.repo_group: |
|
|||
74 | list_url = request.route_path('repo_group_integrations_list', |
|
|||
75 | repo_group_name=c.repo_group.group_name, |
|
|||
76 | integration=integration_key) |
|
|||
77 | else: |
|
|||
78 | list_url = request.route_path('global_integrations_list', |
|
|||
79 | integration=integration_key) |
|
|||
80 | %> |
|
|||
81 | <a href="${list_url}" |
|
|||
82 | class="btn ${c.current_IntegrationType and integration_key == c.current_IntegrationType.key and 'btn-primary' or ''}"> |
|
|||
83 | ${IntegrationType.display_name} |
|
|||
84 | </a> |
|
|||
85 | % endif |
|
|||
86 | %endfor |
|
|||
87 |
|
53 | |||
88 | <% |
|
54 | <% | |
89 | integration_type = c.current_IntegrationType and c.current_IntegrationType.display_name or '' |
|
55 | integration_type = c.current_IntegrationType and c.current_IntegrationType.display_name or '' |
General Comments 0
You need to be logged in to leave comments.
Login now