summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags
diff options
context:
space:
mode:
authorPeter Leitzen <pleitzen@gitlab.com>2019-04-29 15:01:28 +0000
committerFatih Acet <acetfatih@gmail.com>2019-04-29 15:01:28 +0000
commit03f136fcd9768e020a43309cce68f07e12bc7174 (patch)
tree54c5028bdb4b2f7ed6bb225076dd2033b504d90c /app/views/projects/protected_tags
parent72c179ef26284c4322bf84a7ed40eae11f40b9c4 (diff)
downloadgitlab-ce-03f136fcd9768e020a43309cce68f07e12bc7174.tar.gz
Prefer usage of helper `expanded_by_default?`
Stop using `Rails.env.test?` in views.
Diffstat (limited to 'app/views/projects/protected_tags')
-rw-r--r--app/views/projects/protected_tags/shared/_index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/protected_tags/shared/_index.html.haml b/app/views/projects/protected_tags/shared/_index.html.haml
index 9a50a51e4be..b0c87ac8c17 100644
--- a/app/views/projects/protected_tags/shared/_index.html.haml
+++ b/app/views/projects/protected_tags/shared/_index.html.haml
@@ -1,4 +1,4 @@
-- expanded = Rails.env.test?
+- expanded = expanded_by_default?
%section.settings.no-animate#js-protected-tags-settings{ class: ('expanded' if expanded) }
.settings-header