summaryrefslogtreecommitdiff
path: root/app/views/admin/deploy_keys/index.html.haml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-04 21:09:56 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-04 21:09:56 +0000
commit20de59fb35360bb61806cfe690de57fef2f1873d (patch)
treeae8ccfb640c01e4836106013ebdc1fce00341983 /app/views/admin/deploy_keys/index.html.haml
parent2ecc6e22e3517a2e0d9a5bd0d4297c74e2f338d4 (diff)
downloadgitlab-ce-20de59fb35360bb61806cfe690de57fef2f1873d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/admin/deploy_keys/index.html.haml')
-rw-r--r--app/views/admin/deploy_keys/index.html.haml11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/views/admin/deploy_keys/index.html.haml b/app/views/admin/deploy_keys/index.html.haml
index 4e9cfc13af0..3409e2ffc8a 100644
--- a/app/views/admin/deploy_keys/index.html.haml
+++ b/app/views/admin/deploy_keys/index.html.haml
@@ -1,11 +1,8 @@
- page_title _('Deploy Keys')
-
-%h3.page-title.deploy-keys-title
- = _('Public deploy keys (%{deploy_keys_count})') % { deploy_keys_count: @deploy_keys.load.size }
- .float-right
- = link_to _('New deploy key'), new_admin_deploy_key_path, class: 'btn btn-success btn-sm btn-inverted'
-
- if @deploy_keys.any?
+ %h3.page-title.deploy-keys-title
+ = _('Public deploy keys (%{deploy_keys_count})') % { deploy_keys_count: @deploy_keys.load.size }
+ = link_to _('New deploy key'), new_admin_deploy_key_path, class: 'float-right btn btn-success btn-md gl-button'
.table-holder.deploy-keys-list
%table.table
%thead
@@ -32,3 +29,5 @@
.float-right
= link_to _('Edit'), edit_admin_deploy_key_path(deploy_key), class: 'btn btn-sm'
= link_to _('Remove'), admin_deploy_key_path(deploy_key), data: { confirm: _('Are you sure?') }, method: :delete, class: 'btn btn-sm btn-remove delete-key'
+- else
+ = render 'shared/empty_states/deploy_keys'