diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2021-01-18 15:12:29 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-01-18 15:53:28 +0300 |
commit | a968c6dbc843da7f1e7e5d05b9aef93f9686db68 (patch) | |
tree | f0de035c15e3b804f90b0fdf9c5ebd587cdeec80 /content/index.erb | |
parent | f3f2bdf27d687ac9aacc9d44a0ede4769b8a8cc6 (diff) |
Hide survey banner on stable branches
We don't want the banner to be shown on stable branches.
This introduces a new function that checks if CI_COMMIT_REF_NAME
is defined, and if not, it uses Git to find the current branch name.
If show_banner is false and current_branch is not a stable branch,
hide the banner.
Diffstat (limited to 'content/index.erb')
-rw-r--r-- | content/index.erb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/content/index.erb b/content/index.erb index 08f26110..da24567a 100644 --- a/content/index.erb +++ b/content/index.erb @@ -24,11 +24,7 @@ title: GitLab Documentation <main class="content"> <div class="row px-4 pt-4"> <div class="col-12"> - <% if @config[:show_banner] %> - <div class="d-lg-block"> - <%= render '/banner.*' %> - </div> - <% end %> + <%= render '/banner.*' %> <h1 class="landing-header-title border-bottom-0 font-weight-bold">Welcome to GitLab Docs</h1> <p class="text-break">Here you can access the complete documentation for GitLab, the single application for the <span class="text-decoration-underline"><a href="https://docs.gitlab.com/ee/README.html#the-entire-devops-lifecycle">entire DevOps lifecycle</a></span>.</p> </div> |