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:
authorAchilleas Pipinellis <axil@gitlab.com>2020-05-19 12:28:17 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-05-19 12:28:17 +0300
commitb216dd3b184826c8fea84188a573491eac640c7d (patch)
tree5562cf3921fad7a8be77959989e48aae42e705f1 /layouts/feedback.html
parent331aab2e833538b551dbc39a667d8cb5a2826094 (diff)
Extract check of production in its own function
Diffstat (limited to 'layouts/feedback.html')
-rw-r--r--layouts/feedback.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/feedback.html b/layouts/feedback.html
index f0e4634a..da156bfb 100644
--- a/layouts/feedback.html
+++ b/layouts/feedback.html
@@ -15,7 +15,7 @@
<a class="help-and-feedback-link" href="<%= edit_on_gitlab(@item) %>" target="_blank">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[title]=Docs%20feedback:%20Write%20your%20title&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" target="_blank">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? && ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %>
+ <% 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
<% end %>