diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2020-08-21 13:46:26 +0300 |
---|---|---|
committer | Takuya Noguchi <takninnovationresearch@gmail.com> | 2020-10-26 11:11:13 +0300 |
commit | 3bc4eed848c61d8088653fcc4b10f3de9788f74b (patch) | |
tree | 4a9346550f9953f9918baf1d25aa9c07792417c5 /layouts/versions_dropdown.html | |
parent | 7231349fd40cf4109af8043973c4faa0982025d4 (diff) |
Use the default branch instead of master
Diffstat (limited to 'layouts/versions_dropdown.html')
-rw-r--r-- | layouts/versions_dropdown.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/versions_dropdown.html b/layouts/versions_dropdown.html index 0e970e62..3d86bd12 100644 --- a/layouts/versions_dropdown.html +++ b/layouts/versions_dropdown.html @@ -15,9 +15,9 @@ Version Name the label dropdown after the release version so that you know which version you're browsing. For `/archives` show 'Archives' since they're supposed to be versionless. - If we build on master and stable branches (versions), show the following + If we build on the default and stable branches (versions), show the following name in the drodown menu: - - GitLab.com if master. + - GitLab.com if the default branch. - The branch name otherwise. For local development and review apps, show "Versions". --> @@ -25,7 +25,7 @@ Version Archives <% else %> <% if is_production? %> - <% if ENV['CI_COMMIT_REF_NAME'] == 'master' %> + <% if ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> <%= dotcom %> <% else %> <%= ENV['CI_COMMIT_REF_NAME'] %> @@ -38,7 +38,7 @@ Version </a> <ul class="dropdown-menu versions-menu" aria-labelledby="versions"> <li> - <a<%= active_dropdown('master') %> href='<%= @item.identifier.without_ext + '.html' %>' class="versions-tooltip"><%= dotcom %> + <a<%= active_dropdown(ENV['CI_DEFAULT_BRANCH']) %> href='<%= @item.identifier.without_ext + '.html' %>' class="versions-tooltip"><%= dotcom %> <i class="fa fa-question-circle-o" aria-hidden="true" data-toggle="tooltip" data-placement="bottom" title="Latest pre-release version of GitLab, with features available or about to become available on GitLab.com. For self-managed GitLab installations, select your version number as listed at your GitLab instance's /help URL."></i> </a> </li> |