summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/commits/show.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml
index 184cf27..578f518 100644
--- a/app/views/commits/show.html.haml
+++ b/app/views/commits/show.html.haml
@@ -2,10 +2,11 @@
= @project.name
@
#{gitlab_commit_link(@project, @commit.sha)}
- .pull-right
- = link_to project_jobs_path(@project), class: "btn btn-default btn-small" do
- %i.icon-edit.icon-white
- Edit Job
+ - if current_user.can_manage_project?(@project.gitlab_id)
+ .pull-right
+ = link_to project_jobs_path(@project), class: "btn btn-default btn-small" do
+ %i.icon-edit.icon-white
+ Edit Job
%p
= link_to project_path(@project) do