summaryrefslogtreecommitdiff
path: root/app/views/projects/_dropdown.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 12:56:20 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 12:56:20 +0200
commit0a08c775193af3ee566700017d85517b7f9829cd (patch)
tree77c74fb168c623e2a6b183563ce866039bb37aa9 /app/views/projects/_dropdown.html.haml
parent00d6ac299e073b3117ea9d730fbffa9ef7e3b8a0 (diff)
downloadgitlab-ce-0a08c775193af3ee566700017d85517b7f9829cd.tar.gz
Improve UX for project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/_dropdown.html.haml')
-rw-r--r--app/views/projects/_dropdown.html.haml15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/projects/_dropdown.html.haml b/app/views/projects/_dropdown.html.haml
index e646d04282e..e283bd2bf1d 100644
--- a/app/views/projects/_dropdown.html.haml
+++ b/app/views/projects/_dropdown.html.haml
@@ -6,15 +6,19 @@
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
%li
= link_to url_for_new_issue, title: "New Issue" do
- Issue
+ New issue
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
%li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
- Merge Request
+ New merge request
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
%li
= link_to new_project_snippet_path(@project), title: "New Snippet" do
- Snippet
+ New snippet
+ - if can?(current_user, :admin_team_member, @project)
+ %li
+ = link_to new_project_team_member_path(@project), title: "New project member" do
+ New project member
- if can? current_user, :push_code, @project
%li.divider
%li
@@ -26,9 +30,4 @@
%i.icon-tag
Git tag
- - if can?(current_user, :admin_team_member, @project)
- %li.divider
- %li
- = link_to new_project_team_member_path(@project), title: "New project member" do
- Project member