diff options
author | Evan Read <eread@gitlab.com> | 2020-11-30 09:33:47 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-11-30 09:33:47 +0300 |
commit | 0bc23e4c45b1324ae22c4c4730c8086db5983065 (patch) | |
tree | ff8a0ee5782486ac29b7beff7869f63d78e47e1e /layouts/footer.html | |
parent | 6efa4fb798ce9be931e8fcd6d8d9c9727b711082 (diff) |
Fix a Rubocop predicate name problem
Diffstat (limited to 'layouts/footer.html')
-rw-r--r-- | layouts/footer.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/footer.html b/layouts/footer.html index 478ca15b..aaa139f7 100644 --- a/layouts/footer.html +++ b/layouts/footer.html @@ -1,7 +1,7 @@ <footer class="pl-4 pr-3 border-top footer"> <div class="row py-2"> <div class="col-9"> - <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> + <% if production? && ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> <%# Show Edit button only in production and on the default branch (hide archives) %> <a href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer"><span class="text-decoration-underline">Edit this page</span></a> <a href="<%= edit_on_gitlab(@item, editor: :webide) %>" target="_blank" rel="noopener noreferrer">(<span class="text-decoration-underline">Web IDE</span>)</a> @@ -32,7 +32,7 @@ </div> <div class="col-12 py-1"> <ul class="list-unstyled list-inline my-0 d-flex flex-wrap"> - <% if is_production? %> + <% if production? %> <% @config[:products].each do |name, product| %> <% if product[:expose] == true %> <li> |