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/footer.html | |
parent | 331aab2e833538b551dbc39a667d8cb5a2826094 (diff) |
Extract check of production in its own function
Diffstat (limited to 'layouts/footer.html')
-rw-r--r-- | layouts/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/footer.html b/layouts/footer.html index 8a74cc88..24fbd432 100644 --- a/layouts/footer.html +++ b/layouts/footer.html @@ -5,7 +5,7 @@ <a href='https://gitlab.com/gitlab-org/gitlab-docs' target='_blank'>Created</a> with Nanoc, hosted on <a href='https://about.gitlab.com/stages-devops-lifecycle/pages/' target='_blank'>GitLab Pages</a> <a href='https://creativecommons.org/licenses/by-sa/4.0/' target='_blank' rel="license" alt="Creative Commons License"><img src='/assets/images/by-sa.svg'></a> <a href='/cookies-policy/' alt='Cookies Policy'>Cookies Policy</a> - <% if ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %> + <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Show Edit button only in production and on master branch (hide archives) %> <div class="edit-on"> <i class="fa fa-code-fork" aria-hidden="true"></i> |