gitlab-org--gitlab-foss/app/views/projects/deploy_keys/_index.html.haml

38 lines
1.8 KiB
Text
Raw Normal View History

.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
Deploy Keys
%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
2017-01-31 09:12:02 -05:00
= render @deploy_keys.form_partial_path
.col-lg-9.col-lg-offset-3
%hr
2016-04-25 12:45:05 -04:00
.col-lg-9.col-lg-offset-3.append-bottom-default.deploy-keys
%h5.prepend-top-0
2017-01-31 09:12:02 -05:00
Enabled deploy keys for this project (#{@deploy_keys.enabled_keys_size})
- if @deploy_keys.any_keys_enabled?
%ul.well-list
2017-01-31 09:12:02 -05:00
- @deploy_keys.enabled_keys.each do |enabled_key|
= render partial: 'projects/deploy_keys/deploy_key', locals: {deploy_key: enabled_key}
- else
.settings-message.text-center
No deploy keys found. Create one with the form above.
2016-04-25 12:45:05 -04:00
%h5.prepend-top-default
2017-01-31 09:12:02 -05:00
Deploy keys from projects you have access to (#{@deploy_keys.available_project_keys_size})
- if @deploy_keys.any_available_project_keys_enabled?
%ul.well-list
2017-01-31 09:12:02 -05:00
- @deploy_keys.available_project_keys.each do |available_key|
= render partial: 'projects/deploy_keys/deploy_key', locals: {deploy_key: available_key}
- else
.settings-message.text-center
No deploy keys from your projects could be found. Create one with the form above or add existing one below.
2017-01-31 09:12:02 -05:00
- if @deploy_keys.any_available_public_keys_enabled?
2016-04-25 12:45:05 -04:00
%h5.prepend-top-default
2017-01-31 09:12:02 -05:00
Public deploy keys available to any project (#{@deploy_keys.available_public_keys_size})
%ul.well-list
2017-01-31 09:12:02 -05:00
- @deploy_keys.available_public_keys.each do |available_key|
= render partial: 'projects/deploy_keys/deploy_key', locals: {deploy_key: available_key}