summaryrefslogtreecommitdiff
path: root/app/views/projects/deploy_keys
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-10-14 01:10:37 -0500
committerMike Greiling <mike@pixelcog.com>2017-10-31 12:45:42 -0500
commit2888e48b27eee4937d61c212be668f5339c4236e (patch)
tree2df0ed80643fb2c7c95c9667d4530acb2095cb61 /app/views/projects/deploy_keys
parentda4c0be012953928ac4a55f7a243a3765cc67601 (diff)
downloadgitlab-ce-2888e48b27eee4937d61c212be668f5339c4236e.tar.gz
update settings panels to place "expanded" class on the correct element
Diffstat (limited to 'app/views/projects/deploy_keys')
-rw-r--r--app/views/projects/deploy_keys/_index.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/deploy_keys/_index.html.haml b/app/views/projects/deploy_keys/_index.html.haml
index 45985a5ecef..e75ae87e771 100644
--- a/app/views/projects/deploy_keys/_index.html.haml
+++ b/app/views/projects/deploy_keys/_index.html.haml
@@ -1,5 +1,5 @@
- expanded = Rails.env.test?
-%section.settings
+%section.settings.no-animate{ class: ('expanded' if expanded) }
.settings-header
%h4
Deploy Keys
@@ -7,7 +7,7 @@
= expanded ? 'Collapse' : 'Expand'
%p
Deploy keys allow read-only or read-write (if enabled) access to your repository. Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one.
- .settings-content.no-animate{ class: ('expanded' if expanded) }
+ .settings-content
%h5.prepend-top-0
Create a new deploy key for this project
= render @deploy_keys.form_partial_path