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:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-28 18:43:31 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-03-28 18:43:31 +0300
commit3c5d1e6d14df548041f6cad780d87659e7c62cd8 (patch)
tree54ca754492879d5b04c918f2a4a2038a7c3131f4 /app/helpers
parent62b7082992124ac211ff5e1747ff46c1ee843111 (diff)
parent3eedb2aede34165d7a34fa0dc77ed6c919f7dcb9 (diff)
Merge branch 'user-callout-refactor' into 'master'
Refactored the user callout class Closes #29955 See merge request !10213
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a3213581498..e5b811f3300 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -306,4 +306,8 @@ module ApplicationHelper
def active_when(condition)
'active' if condition
end
+
+ def show_user_callout?
+ cookies[:user_callout_dismissed] == 'true'
+ end
end