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: 1f7060f823543dbaf496ec499c10f9c28f02c060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- return unless current_user
- context = local_assigns.fetch(:context)
- banner_info = storage_enforcement_banner_info(context)
- return unless banner_info.present?

= render Pajamas::AlertComponent.new(variant: :warning,
  alert_options: { class: 'js-storage-enforcement-banner',
                   data: { feature_id: banner_info[:callouts_feature_name],
                           dismiss_endpoint: banner_info[:callouts_path],
                           group_id: banner_info[:namespace_id],
                           defer_links: "true" }}) do |c|
  = c.body do
    %p= banner_info[:text_paragraph_1]
    %p= banner_info[:text_paragraph_2]
    %p= banner_info[:text_paragraph_3]