diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:08:25 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:08:25 +0300 |
commit | 085e45a81cbdac73f41702764a1b53a56a298653 (patch) | |
tree | 3b6e9e1965ee33644d1158dcc2097aa69bbd0fdc /app/views/projects/_home_panel.html.haml | |
parent | 112cca872bd7982bd2452f2f0903d21342d5ea5f (diff) |
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.haml | 9 |
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 + + = 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' |