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>2021-08-25 12:18:43 +0300
committerDavid O'Regan <doregan@gitlab.com>2021-08-25 12:18:43 +0300
commit7508e6196888aaef7711d25b96e8a43eb2c00a7f (patch)
tree9b59d09fb37413f1a7be73940db12ac37aab0f4d /layouts
parent82ffd7ac8b036b8ed7ce7a516c4b5717a061fa71 (diff)
Move survey banner into a YAML file
Diffstat (limited to 'layouts')
-rw-r--r--layouts/banner.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/layouts/banner.html b/layouts/banner.html
index 949c70f0..57aea7ad 100644
--- a/layouts/banner.html
+++ b/layouts/banner.html
@@ -1,16 +1,18 @@
-<% if @config[:show_banner] and !stable_version?(current_branch) %>
+<%
+banner_raw = @items["/_data/banner.yaml"][:description]
+%>
+<% if show_banner? and !stable_version?(current_branch) %>
<div class="d-lg-block">
<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(225,67,41); font-size:.85em" aria-hidden="true"></i>
- Help us measure the doc site's usability over time:
- <a href="https://gitlab.fra1.qualtrics.com/jfe/form/SV_7PUN2cXgMytSMyG" target="_blank" rel="noopener noreferrer">
- Take the 3-minute survey!
- </a>
- <i class="fa fa-gitlab fa-fw" style="color:rgb(225,67,41); font-size:.85em" aria-hidden="true"></i>
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
- <span aria-hidden="true">&times;</span>
- </button>
+ <div class="d-flex justify-content-center align-items-center">
+ <i class="fa fa-gitlab fa-fw" style="color:rgb(225,67,41); font-size:.85em" aria-hidden="true"></i>
+ <%= markdown(banner_raw) %>
+ <i class="fa fa-gitlab fa-fw" style="color:rgb(225,67,41); font-size:.85em" aria-hidden="true"></i>
+ <button type="button" class="close mt-n1" data-dismiss="alert" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ </div>
</div>
</div>
<script type="application/javascript" src="<%= @items['/assets/javascripts/banner.*'].path %>"></script>