Commit 8bca0df6 authored by Ragnar Hardarson's avatar Ragnar Hardarson Committed by Jacques Erasmus

Add gitlab button class

As per https://gitlab.com/groups/gitlab-org/-/epics/4001
parent 7a0c681b
...@@ -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