Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-19 00:09:57 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-19 00:09:57 +0300
commitbfce95a4c5e9d71ed523f48f3fb901d2b7af60f7 (patch)
tree6bada22ff3863edec03f928f8edcf19c6e7107f1 /app/helpers/user_callouts_helper.rb
parent85f7fa54f404f28b0f351c2be0f7a6e9d74fe65f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/user_callouts_helper.rb')
-rw-r--r--app/helpers/user_callouts_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/user_callouts_helper.rb b/app/helpers/user_callouts_helper.rb
index f1ecba6e68a..c37f86b6a92 100644
--- a/app/helpers/user_callouts_helper.rb
+++ b/app/helpers/user_callouts_helper.rb
@@ -7,6 +7,7 @@ module UserCalloutsHelper
SUGGEST_POPOVER_DISMISSED = 'suggest_popover_dismissed'
TABS_POSITION_HIGHLIGHT = 'tabs_position_highlight'
WEBHOOKS_MOVED = 'webhooks_moved'
+ CUSTOMIZE_HOMEPAGE = 'customize_homepage'
def show_admin_integrations_moved?
!user_dismissed?(ADMIN_INTEGRATIONS_MOVED)
@@ -44,6 +45,10 @@ module UserCalloutsHelper
!user_dismissed?(WEBHOOKS_MOVED)
end
+ def show_customize_homepage_banner?(customize_homepage)
+ customize_homepage && !user_dismissed?(CUSTOMIZE_HOMEPAGE)
+ end
+
private
def user_dismissed?(feature_name, ignore_dismissal_earlier_than = nil)