=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
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
=link_tonew_namespace_project_deploy_key_path(@project.namespace,@project),class: "btn btn-new pull-right",title: "New Deploy Key"do
=page_title
%i.fa.fa-plus
%p
New Deploy Key
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
%p.light
%h5.prepend-top-0
Deploy keys can be used for CI, staging or production servers.
Create a new deploy key for this project
You can create a deploy key or add an existing one
=render"form"
.col-lg-9.col-lg-offset-3
%hr.clearfix
%hr
.col-lg-9.col-lg-offset-3.append-bottom-default
.row
%h5.prepend-top-0
.col-md-6.enabled-keys
Enabled deploy keys for this project (#{@enabled_keys.size})
%h5
-if@enabled_keys.any?
%strong.cgreen Enabled deploy keys
%ul.well-list
for this project
%ul.bordered-list
=render@enabled_keys
=render@enabled_keys
-if@enabled_keys.blank?
-else
.light-well
.profile-settings-message.text-center
.nothing-here-block Create a #{link_to'new deploy key',new_namespace_project_deploy_key_path(@project.namespace,@project)} or add an existing one
No deploy keys found. Create one with the form above or add existing one below.
.col-md-6.available-keys
.col-lg-9.col-lg-offset-3.append-bottom-default
-# If there are available public deploy keys but no available project deploy keys, only public deploy keys are shown.