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/default.html
parent331aab2e833538b551dbc39a667d8cb5a2826094 (diff)
Extract check of production in its own function
Diffstat (limited to 'layouts/default.html')
-rw-r--r--layouts/default.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/default.html b/layouts/default.html
index b6db4f49..b4633c45 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -81,7 +81,7 @@
<script type="application/javascript" src="<%= @items['/assets/javascripts/badges.*'].path %>"></script>
<%= render '/docsearch.*' %>
<%= render '/mermaid.*' %>
- <% if ENV['NANOC_ENV'] == 'production' %>
+ <% if is_production? %>
<%# Add analytics only in production %>
<%= render '/analytics.*' %>
<% end %>