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
e539af51
Commit
e539af51
authored
Feb 13, 2021
by
yo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to btn-confirm and align subscription banner
parent
0bb98b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/app/views/layouts/header/_ee_subscribable_banner.html.haml
...pp/views/layouts/header/_ee_subscribable_banner.html.haml
+3
-3
No files found.
ee/app/views/layouts/header/_ee_subscribable_banner.html.haml
View file @
e539af51
...
...
@@ -6,7 +6,7 @@
.gl-alert.gitlab-ee-license-banner.hidden.js-gitlab-ee-license-banner.gl-pb-7.gl-border-1.gl-border-solid.gl-border-gray-100.gl-rounded-base
{
role:
'alert'
,
data:
{
license_expiry:
subscribable
.
expires_at
}
}
%button
.gl-alert-dismiss
{
type:
'button'
,
'aria-label'
=>
'Dismiss'
,
data:
{
track_event:
'click_button'
,
track_label:
'dismiss_subscribable_banner'
}
}
=
sprite_icon
(
'close'
,
css_class:
'gl-icon js-close'
)
.gl-display-flex.gl-flex-direction-row
.gl-display-flex.gl-flex-direction-row
.gl-align-items-center
.gl-pr-6.gl-pl-5.gl-pt-3.gl-display-none.gl-sm-display-block
-
if
subscribable
.
expired?
-
if
subscribable
.
block_changes?
...
...
@@ -19,7 +19,7 @@
=
message
-
if
subscribable
.
block_changes?
=
link_to
_
(
'Upgrade your plan'
),
upgrade_subscription_path
,
class:
'btn gl-button btn-
primary
'
,
data:
{
track_event:
'click_text'
,
track_label:
'subscribable_action'
,
track_property:
'upgrade'
}
=
link_to
_
(
'Upgrade your plan'
),
upgrade_subscription_path
,
class:
'btn gl-button btn-
confirm
'
,
data:
{
track_event:
'click_text'
,
track_label:
'subscribable_action'
,
track_property:
'upgrade'
}
-
else
=
link_to
_
(
'Renew subscription'
),
renew_subscription_path
,
class:
'btn gl-button btn-
primary
gl-mr-3 gl-mb-2'
,
data:
{
track_event:
'click_text'
,
track_label:
'subscribable_action'
,
track_property:
'renew'
}
=
link_to
_
(
'Renew subscription'
),
renew_subscription_path
,
class:
'btn gl-button btn-
confirm
gl-mr-3 gl-mb-2'
,
data:
{
track_event:
'click_text'
,
track_label:
'subscribable_action'
,
track_property:
'renew'
}
=
link_to
_
(
'That is ok, I do not want to renew'
),
'#'
,
data:
{
track_event:
'click_text'
,
track_label:
'subscribable_action'
,
track_property:
'thats_ok'
},
'aria-label'
=>
'Dismiss'
,
class:
'btn gl-button btn-info btn-info-secondary js-close gl-mb-2'
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