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:
authorEvan Read <eread@gitlab.com>2020-11-30 09:33:47 +0300
committerEvan Read <eread@gitlab.com>2020-11-30 09:33:47 +0300
commit0bc23e4c45b1324ae22c4c4730c8086db5983065 (patch)
treeff8a0ee5782486ac29b7beff7869f63d78e47e1e /layouts/canonical_urls.html
parent6efa4fb798ce9be931e8fcd6d8d9c9727b711082 (diff)
Fix a Rubocop predicate name problem
Diffstat (limited to 'layouts/canonical_urls.html')
-rw-r--r--layouts/canonical_urls.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/canonical_urls.html b/layouts/canonical_urls.html
index 94a316ef..b260d426 100644
--- a/layouts/canonical_urls.html
+++ b/layouts/canonical_urls.html
@@ -16,7 +16,7 @@ if the link doesn't end with README.md or index.md
if the link doesn't start with ce
use its initial path
<% end %>
-<% if is_production? %>
+<% if production? %>
<% if (@item.identifier =~ /(index|README)\.md$/) == 0 %>
<% if @item.identifier.to_s.split('/')[1] == 'ce' %>
<link rel="canonical" href="<%= @config[:base_url] %>/ee/<%= @item.identifier.to_s.split('/')[2..-2].join('/') %><% unless @item.identifier.to_s.split('/')[2..-2].join('/').length == 0 %>/<% end %>" />