Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8bca0df6
Commit
8bca0df6
authored
Oct 21, 2020
by
Ragnar Hardarson
Committed by
Jacques Erasmus
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gitlab button class
As per
https://gitlab.com/groups/gitlab-org/-/epics/4001
parent
7a0c681b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/views/shared/_namespace_storage_limit_alert.html.haml
ee/app/views/shared/_namespace_storage_limit_alert.html.haml
+2
-2
No files found.
ee/app/views/shared/_namespace_storage_limit_alert.html.haml
View file @
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
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment