From a968c6dbc843da7f1e7e5d05b9aef93f9686db68 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 18 Jan 2021 13:12:29 +0100 Subject: 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. --- content/index.erb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'content/index.erb') 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
- <% if @config[:show_banner] %> -
- <%= render '/banner.*' %> -
- <% end %> + <%= render '/banner.*' %>

Welcome to GitLab Docs

Here you can access the complete documentation for GitLab, the single application for the entire DevOps lifecycle.

-- cgit v1.2.3