diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-22 11:06:42 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-22 12:31:27 +0300 |
commit | 28102ec28e1ef3d3203db3d05aa89ab3da234e70 (patch) | |
tree | 522d3d898cdf12f947f4d08f3d5487284eb244dc /app/views/projects/deploy_keys | |
parent | 60fe975452f6781198188ae985bad7329d1aff05 (diff) |
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/projects/deploy_keys')
-rw-r--r-- | app/views/projects/deploy_keys/_deploy_key.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/deploy_keys/_deploy_key.html.haml b/app/views/projects/deploy_keys/_deploy_key.html.haml index 450aaeb367c..d360f1bab28 100644 --- a/app/views/projects/deploy_keys/_deploy_key.html.haml +++ b/app/views/projects/deploy_keys/_deploy_key.html.haml @@ -6,6 +6,9 @@ = deploy_key.title .description = deploy_key.fingerprint + - if deploy_key.can_push? + .can-write + Can write .deploy-key-content.prepend-left-default.deploy-key-projects - deploy_key.projects.each do |project| - if can?(current_user, :read_project, project) |