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>2020-08-21 13:46:26 +0300
committerTakuya Noguchi <takninnovationresearch@gmail.com>2020-10-26 11:11:13 +0300
commit3bc4eed848c61d8088653fcc4b10f3de9788f74b (patch)
tree4a9346550f9953f9918baf1d25aa9c07792417c5 /layouts/feedback.html
parent7231349fd40cf4109af8043973c4faa0982025d4 (diff)
Use the default branch instead of master
Diffstat (limited to 'layouts/feedback.html')
-rw-r--r--layouts/feedback.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/feedback.html b/layouts/feedback.html
index 5c69e7eb..ef091ee6 100644
--- a/layouts/feedback.html
+++ b/layouts/feedback.html
@@ -14,10 +14,10 @@
<h5 class="help-and-feedback-heading">Docs</h5>
<a class="help-and-feedback-link" href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer">Edit this page</a> to fix an error or add an improvement in a merge request<br>
<a class="help-and-feedback-link" href="https://gitlab.com/gitlab-org/gitlab/-/issues/new?issue[description]=Link%20the%20doc%20and%20describe%20what%20is%20wrong%20with%20it.%0A%0A%3C!--%20Don%27t%20edit%20below%20this%20line%20--%3E%0A%0A%2Flabel%20~Documentation%20~%22docs%5C-comments%22%20&issue[title]=Docs%20feedback:%20Write%20your%20title" target="_blank" rel="noopener noreferrer">Create an issue</a> to suggest an improvement to this doc<br>
- <%# Show comments only in production and on master branch (hide archives) %>
- <% if @item[:comments].nil? && is_production? && ENV['CI_COMMIT_REF_NAME'] == 'master' %>
- <% unless @item.identifier.to_s.split('/')[1] == 'ce' %>
- <a class="help-and-feedback-link" href="#" onclick="loadDisqus();return false;">Show and post comments</a> to review and give feedback on this doc
+ <%# Show comments only in production and on the default branch (hide archives) %>
+ <% if @item[:comments].nil? && is_production? && ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %>
+ <% unless @item.identifier.to_s.split('/')[1] == 'ce' %>
+ <a class="help-and-feedback-link" href="#" onclick="loadDisqus();return false;">Show and post comments</a> to review and give feedback on this doc
<% end %>
<% end %>
<br>