76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
32 lines
1 KiB
Text
32 lines
1 KiB
Text
%h3.page-title
|
|
Deploy keys allow read-only access to the repository
|
|
|
|
= link_to new_namespace_project_deploy_key_path(@project.namespace, @project), class: "btn btn-new pull-right", title: "New Deploy Key" do
|
|
%i.fa.fa-plus
|
|
New Deploy Key
|
|
|
|
%p.light
|
|
Deploy keys can be used for CI, staging or production servers.
|
|
You can create a deploy key or add an existing one
|
|
|
|
%hr.clearfix
|
|
|
|
.row
|
|
.col-md-6.enabled-keys
|
|
%h5
|
|
%strong.cgreen Enabled deploy keys
|
|
for this project
|
|
%ul.bordered-list
|
|
= render @enabled_keys
|
|
- if @enabled_keys.blank?
|
|
.light-well
|
|
.nothing-here-block Create a #{link_to 'new deploy key', new_namespace_project_deploy_key_path(@project.namespace, @project)} or add an existing one
|
|
.col-md-6.available-keys
|
|
%h5
|
|
%strong Deploy keys
|
|
from projects available to you
|
|
%ul.bordered-list
|
|
= render @available_keys
|
|
- if @available_keys.blank?
|
|
.light-well
|
|
.nothing-here-block Deploy keys from projects you have access to will be displayed here
|