Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_storage_enforcement_banner.html.haml « header « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 92c02d6ecfd39a11c81e740a9addb034dc8a5378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- return unless current_user
- namespace = local_assigns.fetch(:namespace)
- banner_info = storage_enforcement_banner_info(namespace)
- return unless banner_info.present?

= render Pajamas::AlertComponent.new(variant: :warning,
  alert_class: 'js-storage-enforcement-banner',
  alert_data: { feature_id: banner_info[:callouts_feature_name],
                dismiss_endpoint: banner_info[:callouts_path],
                group_id: namespace.id,
                defer_links: "true" }) do
  .gl-alert-body
    = banner_info[:text]
    = banner_info[:learn_more_link]