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-01-13 11:00:03 +0300
committerMarcel Amirault <mamirault@gitlab.com>2021-01-13 11:00:03 +0300
commit28df6ddadb0bf57ab251b5c86093c0f1e9d06596 (patch)
tree7952e38c9ea764256ed7734b990c6d40df895e96 /layouts/default.html
parenta75621454ed1df6425afa7ff7a08d44b350e92a6 (diff)
Add helper for production and default branch
This ought to be used when we don't want to deploy things in the stable branches, since they are considered production.
Diffstat (limited to 'layouts/default.html')
-rw-r--r--layouts/default.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/default.html b/layouts/default.html
index fc53ca9b..5398b516 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -29,7 +29,7 @@
</div>
<div class="row">
<div class="col">
- <% if @config[:show_banner] %>
+ <% if @config[:show_banner] and production_and_default_branch? %>
<div class="d-lg-block">
<%= render '/banner.*' %>
</div>