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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2021-08-25 12:18:43 +0300
committerDavid O'Regan <doregan@gitlab.com>2021-08-25 12:18:43 +0300
commit7508e6196888aaef7711d25b96e8a43eb2c00a7f (patch)
tree9b59d09fb37413f1a7be73940db12ac37aab0f4d /lib
parent82ffd7ac8b036b8ed7ce7a516c4b5717a061fa71 (diff)
Move survey banner into a YAML file
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers/generic.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb
index c9254368..1f7a091c 100644
--- a/lib/helpers/generic.rb
+++ b/lib/helpers/generic.rb
@@ -46,5 +46,12 @@ module Nanoc::Helpers
def gitlab_docs_or_local?
ENV['CI_PROJECT_NAME'] == 'gitlab-docs' or ENV['CI_PROJECT_NAME'].nil?
end
+
+ #
+ # Control display of survey banner. See README.md#survey-banner
+ #
+ def show_banner?
+ @items['/_data/banner.yaml'][:show_banner]
+ end
end
end