summaryrefslogtreecommitdiff
path: root/app/views/projects/_home_panel.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:08:25 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:08:25 +0100
commit085e45a81cbdac73f41702764a1b53a56a298653 (patch)
tree3b6e9e1965ee33644d1158dcc2097aa69bbd0fdc /app/views/projects/_home_panel.html.haml
parent112cca872bd7982bd2452f2f0903d21342d5ea5f (diff)
downloadgitlab-ce-085e45a81cbdac73f41702764a1b53a56a298653.tar.gz
Add edit and RSS buttons to project home panel
Diffstat (limited to 'app/views/projects/_home_panel.html.haml')
-rw-r--r--app/views/projects/_home_panel.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index d94a279eafd..695da7f07d1 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -17,6 +17,15 @@
.cover-controls.left
= visibility_level_label(@project.visibility_level)
+ .cover-controls
+ - if can?(current_user, :admin_project, @project)
+ = link_to edit_project_path(@project), class: 'btn btn-gray' do
+ = icon('pencil')
+ - if current_user
+ &nbsp;
+ = link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), class: 'btn btn-gray' do
+ = icon('rss')
+
.project-repo-buttons
.split-one
= render 'projects/buttons/star'