=link_to'Remove',disable_namespace_project_deploy_key_path(@project.namespace,@project,deploy_key),data: {confirm: 'You are going to remove deploy key. Are you sure?'},method: :put,class: "btn btn-remove delete-key btn-sm pull-right"
=link_todisable_namespace_project_deploy_key_path(@project.namespace,@project,deploy_key),data: {confirm: "You are going to remove deploy key. Are you sure?"},method: :put,class: "btn btn-warning btn-sm prepend-left-10"do
Deploy keys allow read-only access to the repository
=link_tonew_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
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
=page_title
%p
Deploy keys allow read-only 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.
.col-lg-9
%h5.prepend-top-0
Create a new deploy key for this project
=render"form"
.col-lg-9.col-lg-offset-3
%hr
.col-lg-9.col-lg-offset-3.append-bottom-default
%h5.prepend-top-0
Enabled deploy keys for this project (#{@enabled_keys.size})
-if@enabled_keys.any?
%ul.well-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
-# If there are available public deploy keys but no available project deploy keys, only public deploy keys are shown.