summaryrefslogtreecommitdiff
path: root/app/views/admin/deploy_keys/index.html.haml
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-22 16:06:42 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-22 17:31:27 +0800
commit28102ec28e1ef3d3203db3d05aa89ab3da234e70 (patch)
tree522d3d898cdf12f947f4d08f3d5487284eb244dc /app/views/admin/deploy_keys/index.html.haml
parent60fe975452f6781198188ae985bad7329d1aff05 (diff)
downloadgitlab-ce-28102ec28e1ef3d3203db3d05aa89ab3da234e70.tar.gz
Allow admin to set keys with write access, and
show write access information when showing the key. TODO: It's ugly right now, need help!
Diffstat (limited to 'app/views/admin/deploy_keys/index.html.haml')
-rw-r--r--app/views/admin/deploy_keys/index.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/deploy_keys/index.html.haml b/app/views/admin/deploy_keys/index.html.haml
index 149593e7f46..dee611ae014 100644
--- a/app/views/admin/deploy_keys/index.html.haml
+++ b/app/views/admin/deploy_keys/index.html.haml
@@ -11,6 +11,7 @@
%tr
%th Title
%th Fingerprint
+ %th Write access
%th Added at
%th
%tbody
@@ -21,6 +22,11 @@
%td
%code.key-fingerprint= deploy_key.fingerprint
%td
+ - if deploy_key.can_push?
+ Yes
+ - else
+ No
+ %td
%span.cgray
added #{time_ago_with_tooltip(deploy_key.created_at)}
%td