diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-19 12:28:17 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-19 12:28:17 +0300 |
commit | b216dd3b184826c8fea84188a573491eac640c7d (patch) | |
tree | 5562cf3921fad7a8be77959989e48aae42e705f1 /layouts/header.html | |
parent | 331aab2e833538b551dbc39a667d8cb5a2826094 (diff) |
Extract check of production in its own function
Diffstat (limited to 'layouts/header.html')
-rw-r--r-- | layouts/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/header.html b/layouts/header.html index a666fb10..81a18fca 100644 --- a/layouts/header.html +++ b/layouts/header.html @@ -24,7 +24,7 @@ <div class="version-dropdown-mobile"> <%= render '/versions_dropdown.*' %> </div> - <% if ENV['NANOC_ENV'] == 'production' %> + <% if is_production? %> <% @config[:products].each do |name, product| %> <% if product[:expose] == true %> <li class="nav-item"> |