2017-06-07 08:11:44 +00:00
- expanded = Rails.env.test?
2018-08-08 06:17:43 +00:00
%section.qa-deploy-keys-settings.settings.no-animate#js-deploy-keys-settings{ class: ('expanded' if expanded) }
2017-06-07 08:11:44 +00:00
.settings-header
%h4
2017-01-24 00:28:40 +00:00
Deploy Keys
2018-04-02 16:13:07 +00:00
%button.btn.js-settings-toggle.qa-expand-deploy-keys{ type: 'button' }
2017-06-22 14:32:04 +00:00
= expanded ? 'Collapse' : 'Expand'
2016-04-25 15:26:41 +00:00
%p
2017-03-08 18:14:02 +00:00
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.
2017-10-14 06:10:37 +00:00
.settings-content
2016-04-25 15:26:41 +00:00
%h5.prepend-top-0
Create a new deploy key for this project
2017-01-31 14:12:02 +00:00
= render @deploy_keys.form_partial_path
2016-04-25 15:26:41 +00:00
%hr
2018-05-07 18:21:34 +00:00
#js-deploy-keys{ data: { endpoint: project_deploy_keys_path(@project), project_id: @project.id } }