Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Noguchi <takninnovationresearch@gmail.com>2021-04-26 05:30:23 +0300
committerTakuya Noguchi <takninnovationresearch@gmail.com>2021-04-26 05:30:23 +0300
commita046523a8d49d48d9cf145e9d2f5024d5d62b8b9 (patch)
treec73d8e97e1202b58ba622f3ebcaf6df52637e369 /layouts/archives.html
parentef136cdcc09493a5585dc90aafbc0c943a9339d7 (diff)
Remove edit buttons from archive page
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'layouts/archives.html')
-rw-r--r--layouts/archives.html7
1 files changed, 0 insertions, 7 deletions
diff --git a/layouts/archives.html b/layouts/archives.html
index e28f648d..3728b4ea 100644
--- a/layouts/archives.html
+++ b/layouts/archives.html
@@ -13,13 +13,6 @@
<div class="js-article-content">
<%= yield %>
</div>
- <% if 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>
- </div>
- <% end %>
<% if @item[:last_updated] %>
<hr>
<p class="last-updated" style="padding-bottom: 24px;">