diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-04-29 18:01:28 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-04-29 18:01:28 +0300 |
commit | 03f136fcd9768e020a43309cce68f07e12bc7174 (patch) | |
tree | 54c5028bdb4b2f7ed6bb225076dd2033b504d90c /app/views/projects/deploy_keys | |
parent | 72c179ef26284c4322bf84a7ed40eae11f40b9c4 (diff) |
Prefer usage of helper `expanded_by_default?`
Stop using `Rails.env.test?` in views.
Diffstat (limited to 'app/views/projects/deploy_keys')
-rw-r--r-- | app/views/projects/deploy_keys/_index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/deploy_keys/_index.html.haml b/app/views/projects/deploy_keys/_index.html.haml index 24d665761cc..fcf27351a21 100644 --- a/app/views/projects/deploy_keys/_index.html.haml +++ b/app/views/projects/deploy_keys/_index.html.haml @@ -1,4 +1,4 @@ -- expanded = Rails.env.test? +- expanded = expanded_by_default? %section.qa-deploy-keys-settings.settings.no-animate#js-deploy-keys-settings{ class: ('expanded' if expanded) } .settings-header %h4 |