debian-mirror-gitlab/app/views/projects/settings/integrations/_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
1.3 KiB
Text
Raw Normal View History

2022-07-16 23:28:13 +05:30
- if lookup_context.template_exists?('top', "shared/integrations/#{integration.to_param}", true)
= render "shared/integrations/#{integration.to_param}/top", integration: integration
2020-07-28 23:09:34 +05:30
2022-05-07 20:08:51 +05:30
- if integration.activate_disabled_reason.present? && integration.activate_disabled_reason[:trackers].any?
-# When using integration.activate_disabled_reason[:trackers], it's potentially insecure to use the raw records
-# when passed directly to the frontend. Only use specific fields that are needed for render.
-# For example, we can get the link to each tracker with scoped_edit_integration_path(tracker, tracker.project)
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(title: s_('ExternalIssueIntegration|Another issue tracker is already in use'),
2022-05-07 20:08:51 +05:30
variant: :warning,
2022-07-16 23:28:13 +05:30
dismissible: false) do |c|
= c.body do
2022-05-07 20:08:51 +05:30
= s_('ExternalIssueIntegration|Only one issue tracker integration can be active at a time. Please disable the active tracker first and try again.')
2022-06-21 17:19:12 +05:30
%h2.gl-mb-4
2021-09-04 01:27:46 +05:30
= integration.title
- if integration.operating?
2021-03-11 19:13:27 +05:30
= sprite_icon('check', css_class: 'gl-text-green-500')
2018-03-27 19:54:05 +05:30
2022-04-04 11:22:00 +05:30
= render 'shared/integration_settings', integration: integration
2022-07-16 23:28:13 +05:30
- if lookup_context.template_exists?('show', "shared/integrations/#{integration.to_param}", true)
2017-09-10 17:25:29 +05:30
%hr
2022-07-16 23:28:13 +05:30
= render "shared/integrations/#{integration.to_param}/show", integration: integration