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
6a016824
Commit
6a016824
authored
Apr 28, 2021
by
Shreyas Agarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip display of plans if its hidden
Changelog: added EE: true
parent
0052257c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ee/app/views/shared/billings/_billing_plans.html.haml
ee/app/views/shared/billings/_billing_plans.html.haml
+2
-0
ee/changelogs/unreleased/322043-hide-card-display.yml
ee/changelogs/unreleased/322043-hide-card-display.yml
+5
-0
No files found.
ee/app/views/shared/billings/_billing_plans.html.haml
View file @
6a016824
...
...
@@ -12,8 +12,10 @@
.billing-plans
-
plans
.
each
do
|
plan
|
-
next
if
plan
.
hide_card
-
is_default_plan
=
current_plan
.
nil?
&&
plan
.
default?
-
is_current
=
plan
.
code
==
current_plan
&
.
code
||
is_default_plan
=
render
'shared/billings/billing_plan'
,
namespace:
namespace
,
plan:
plan
,
is_current:
is_current
,
plan_offer_type:
upgrade_offer_type
(
namespace
,
plan
)
...
...
ee/changelogs/unreleased/322043-hide-card-display.yml
0 → 100644
View file @
6a016824
---
title
:
Hide display of certain plans on billings page
merge_request
:
60137
author
:
type
:
added
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