debian-mirror-gitlab/app/views/projects/deploy_keys/index.html.haml

43 lines
1.5 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Deploy Keys"
2014-09-02 18:07:02 +05:30
%h3.page-title
Deploy keys allow read-only access to the repository
2015-04-26 12:48:37 +05:30
= 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
2014-09-02 18:07:02 +05:30
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
2015-04-26 12:48:37 +05:30
.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-09-02 18:07:02 +05:30
.col-md-6.available-keys
2015-04-26 12:48:37 +05:30
- # 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?
%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