summaryrefslogtreecommitdiff
path: root/app/views/shared/_auto_devops_implicitly_enabled_banner.html.haml
blob: d378e6cb22c0857591e1a849766ddf7fec6542e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- if show_auto_devops_implicitly_enabled_banner?(project, current_user)
  .qa-auto-devops-banner.auto-devops-implicitly-enabled-banner.alert.alert-info
    - more_information_link = link_to _('More information'), help_page_path('topics/autodevops/index.md'), target: '_blank', class: 'alert-link'
    - auto_devops_message = s_("AutoDevOps|The Auto DevOps pipeline has been enabled and will be used if no alternative CI configuration file is found. %{more_information_link}") % { more_information_link: more_information_link }
    = auto_devops_message.html_safe
    .alert-link-group
      = link_to _('Settings'), project_settings_ci_cd_path(project), class: 'alert-link'
      |
      = link_to _('Dismiss'), '#', class: 'hide-auto-devops-implicitly-enabled-banner alert-link', data: { project_id: project.id }
    - unless Gitlab.config.registry.enabled
      %div
        = icon('exclamation-triangle')
        = _('Container registry is not enabled on this GitLab instance. Ask an administrator to enable it in order for Auto DevOps to work.')