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
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2020-09-01 14:30:28 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-09-01 14:34:06 +0300
commit9c6511a79177762e886613fec758998dc4679dda (patch)
tree8990a7f51734eea44c78a009a5025b0353c55371 /layouts
parent20557810db24d124f3da42b8d6151dc765742226 (diff)
Make the banner configurable and disable by default
Diffstat (limited to 'layouts')
-rw-r--r--layouts/banner.html8
-rw-r--r--layouts/default.html2
2 files changed, 6 insertions, 4 deletions
diff --git a/layouts/banner.html b/layouts/banner.html
index 3eb26953..6c69e7f7 100644
--- a/layouts/banner.html
+++ b/layouts/banner.html
@@ -1,9 +1,9 @@
<div class="admonition-wrapper note d-none" id="banner-close">
<div class="admonition alert alert-banner alert-dismissible fade show text-center" role="alert">
<i class="fa fa-gitlab fa-fw" style="color:rgb(107,79,187); font-size:.85em" aria-hidden="true"></i>
- Help us understand your experience with GitLab documentation.
- <a href="https://gitlab.fra1.qualtrics.com/jfe/form/SV_eGaifkfVJ335st7?source=banner" target="_blank" rel="noopener noreferrer">
- Take our 5 minute survey!
+ Here's some text
+ <a href="" target="_blank" rel="noopener noreferrer">
+ And a link!
</a>
<i class="fa fa-gitlab fa-fw" style="color:rgb(107,79,187); font-size:.85em" aria-hidden="true"></i>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
@@ -11,4 +11,4 @@
</button>
</div>
</div>
-<script type="application/javascript" src="<%= @items['/assets/javascripts/banner.*'].path %>"></script> \ No newline at end of file
+<script type="application/javascript" src="<%= @items['/assets/javascripts/banner.*'].path %>"></script>
diff --git a/layouts/default.html b/layouts/default.html
index 2cc14ab4..d7ece7dd 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -19,9 +19,11 @@
<div id="js-nav-toggle"></div>
</div>
<div class="main class js-main-wrapper">
+ <% if @config[:show_banner] %>
<div class="d-lg-block">
<%= render '/banner.*' %>
</div>
+ <% end %>
<div class="d-none d-lg-block">
<%= render '/breadcrumbs.*' %>
</div>