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
3f3ff664
Commit
3f3ff664
authored
Jul 13, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new entry point for extending/reactivating trial button
parent
8c9f8afc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ee/app/assets/javascripts/pages/groups/billings/index.js
ee/app/assets/javascripts/pages/groups/billings/index.js
+2
-0
ee/app/views/shared/billings/_billing_plan_header.html.haml
ee/app/views/shared/billings/_billing_plan_header.html.haml
+4
-0
No files found.
ee/app/assets/javascripts/pages/groups/billings/index.js
View file @
3f3ff664
import
{
shouldQrtlyReconciliationMount
}
from
'
ee/billings/qrtly_reconciliation
'
;
import
initSubscriptions
from
'
ee/billings/subscriptions
'
;
import
{
shouldExtendReactivateTrialButtonMount
}
from
'
ee/trials/extend_reactivate_trial
'
;
import
PersistentUserCallout
from
'
~/persistent_user_callout
'
;
PersistentUserCallout
.
factory
(
document
.
querySelector
(
'
.js-gold-trial-callout
'
));
initSubscriptions
();
shouldExtendReactivateTrialButtonMount
();
shouldQrtlyReconciliationMount
();
ee/app/views/shared/billings/_billing_plan_header.html.haml
View file @
3f3ff664
...
...
@@ -34,3 +34,7 @@
-
if
show_start_free_trial_messages?
(
namespace
)
-
glm_content
=
namespace_for_user
?
'user-billing'
:
'group-billing'
%p
=
link_to
'Start your free trial'
,
new_trial_registration_path
(
glm_source:
'gitlab.com'
,
glm_content:
glm_content
),
class:
'btn btn-confirm gl-button'
,
data:
{
qa_selector:
'start_your_free_trial'
}
-
if
show_extend_reactivate_trial_button?
(
namespace
)
.gl-mt-3
.js-extend-reactivate-trial-button.gl-mt-3
{
data:
extend_reactivate_trial_button_data
(
namespace
)
}
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