2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Deploy Keys"
|
2015-08-26 09:51:28 +00:00
|
|
|
|
2013-08-06 14:58:45 +00:00
|
|
|
%h3.page-title
|
2013-08-15 18:19:29 +00:00
|
|
|
Deploy keys allow read-only access to the repository
|
2012-09-05 05:56:59 +00:00
|
|
|
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to new_namespace_project_deploy_key_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Deploy Key" do
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-plus
|
2013-05-06 12:10:55 +00:00
|
|
|
New Deploy Key
|
|
|
|
|
2013-08-01 19:35:40 +00:00
|
|
|
%p.light
|
2013-08-15 18:19:29 +00:00
|
|
|
Deploy keys can be used for CI, staging or production servers.
|
|
|
|
You can create a deploy key or add an existing one
|
2013-08-01 19:35:40 +00:00
|
|
|
|
2013-05-06 12:10:55 +00:00
|
|
|
%hr.clearfix
|
|
|
|
|
|
|
|
.row
|
2014-01-08 16:59:23 +00:00
|
|
|
.col-md-6.enabled-keys
|
2013-08-06 14:58:45 +00:00
|
|
|
%h5
|
|
|
|
%strong.cgreen Enabled deploy keys
|
|
|
|
for this project
|
2013-05-06 12:10:55 +00:00
|
|
|
%ul.bordered-list
|
|
|
|
= render @enabled_keys
|
2013-05-06 17:41:08 +00:00
|
|
|
- if @enabled_keys.blank?
|
|
|
|
.light-well
|
2015-01-24 18:02:58 +00:00
|
|
|
.nothing-here-block Create a #{link_to 'new deploy key', new_namespace_project_deploy_key_path(@project.namespace, @project)} or add an existing one
|
2014-01-08 16:59:23 +00:00
|
|
|
.col-md-6.available-keys
|
2015-04-03 10:22:44 +00:00
|
|
|
- # If there are available public deploy keys but no available project deploy keys, only public deploy keys are shown.
|
|
|
|
- if @available_project_keys.any? || @available_public_keys.blank?
|
2015-03-27 13:43:48 +00:00
|
|
|
%h5
|
|
|
|
%strong Deploy keys
|
|
|
|
from projects you have access to
|
|
|
|
%ul.bordered-list
|
|
|
|
= render @available_project_keys
|
|
|
|
- if @available_project_keys.blank?
|
|
|
|
.light-well
|
|
|
|
.nothing-here-block Deploy keys from projects you have access to will be displayed here
|
|
|
|
|
|
|
|
- if @available_public_keys.any?
|
|
|
|
%h5
|
|
|
|
%strong Public deploy keys
|
|
|
|
available to any project
|
|
|
|
%ul.bordered-list
|
|
|
|
= render @available_public_keys
|