summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Mahieu <mahieuloic@gmail.com>2015-03-18 16:16:41 +0100
committerLoïc Mahieu <mahieuloic@gmail.com>2015-03-18 16:16:41 +0100
commit68ef78922d0917c2b6c1735d4c8b7f8adadf0cac (patch)
tree449cef7d831551568b3a05b98c1cc64f13c89820
parent267436c97cf566c04855896eb95479e962a085d5 (diff)
downloadgitlab-ci-68ef78922d0917c2b6c1735d4c8b7f8adadf0cac.tar.gz
Add `Edit project` button in project view
Closes #49
-rw-r--r--app/views/admin/projects/show.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml
index f8e6b9f..54a0187 100644
--- a/app/views/admin/projects/show.html.haml
+++ b/app/views/admin/projects/show.html.haml
@@ -1,5 +1,10 @@
%h4.page-title
Project: #{@project.name}
+ - 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 admin_projects_path do