Commit d3d550c4 authored by Jacques Erasmus's avatar Jacques Erasmus

Merge branch '267978-default-button-variant-for-global-storage-alert' into 'master'

Make storage banner CTA consistent across severity levels

See merge request gitlab-org/gitlab!45555
parents b160b16e 8bca0df6
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
- style = namespace_storage_alert_style(alert_level) - style = namespace_storage_alert_style(alert_level)
- icon = namespace_storage_alert_icon(alert_level) - icon = namespace_storage_alert_icon(alert_level)
- purchase_link = purchase_storage_url if can_purchase_storage_for_namespace?(namespace) && alert_level == :error - purchase_link = purchase_storage_url if can_purchase_storage_for_namespace?(namespace)
- usage_link = namespace_storage_usage_link(root_namespace) - usage_link = namespace_storage_usage_link(root_namespace)
- show_storage_banner_actions = purchase_link || usage_link - show_storage_banner_actions = purchase_link || usage_link
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
- if purchase_link - if purchase_link
= link_to(_('Purchase more storage'), purchase_link, class: "btn gl-alert-action btn-md gl-button btn-success") = link_to(_('Purchase more storage'), purchase_link, class: "btn gl-alert-action btn-md gl-button btn-success")
- if usage_link - if usage_link
= link_to(_('Manage storage usage'), usage_link, class: "btn gl-alert-action btn-md gl-button btn-#{style}") = link_to(_('Manage storage usage'), usage_link, class: "btn gl-alert-action btn-md gl-button btn-default")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment