diff options
Diffstat (limited to 'layouts/archives.html')
-rw-r--r-- | layouts/archives.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/archives.html b/layouts/archives.html index 4cb800d8..83a7c8a2 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -13,8 +13,8 @@ <div class="js-article-content"> <%= yield %> </div> - <% 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) %> <div class="edit-on"> <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer">Edit this page</a> <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item, editor: :webide) %>" target="_blank" rel="noopener noreferrer">Web IDE</a> |