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/footer.html | |
parent | 7231349fd40cf4109af8043973c4faa0982025d4 (diff) |
Use the default branch instead of master
Diffstat (limited to 'layouts/footer.html')
-rw-r--r-- | layouts/footer.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/footer.html b/layouts/footer.html index 7ca95656..478ca15b 100644 --- a/layouts/footer.html +++ b/layouts/footer.html @@ -1,8 +1,8 @@ <footer class="pl-4 pr-3 border-top footer"> <div class="row py-2"> <div class="col-9"> - <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == 'master' %> - <%# Show Edit button only in production and on master branch (hide archives) %> + <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> + <%# Show Edit button only in production and on the default branch (hide archives) %> <a href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer"><span class="text-decoration-underline">Edit this page</span></a> <a href="<%= edit_on_gitlab(@item, editor: :webide) %>" target="_blank" rel="noopener noreferrer">(<span class="text-decoration-underline">Web IDE</span>)</a> <% end %> |