diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:00:54 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 16:00:54 +0300 |
commit | b66694d236f71474054c63b1e8a683abacf7fdc3 (patch) | |
tree | 56f2c4331caa7079dc6d1a10f06ab051a96b15a4 /app/views/shared/_merge_requests.html.haml | |
parent | 09e712c0fb721059e4b2619eb9fc104257fc492d (diff) |
Add "New X" link to dashboard/group milestone project-specific issue/MR panels
Diffstat (limited to 'app/views/shared/_merge_requests.html.haml')
-rw-r--r-- | app/views/shared/_merge_requests.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/shared/_merge_requests.html.haml b/app/views/shared/_merge_requests.html.haml index c02c5af008a..be17a511b26 100644 --- a/app/views/shared/_merge_requests.html.haml +++ b/app/views/shared/_merge_requests.html.haml @@ -3,8 +3,11 @@ .panel.panel-default.panel-small - project = group[0] .panel-heading - = link_to_project project - = link_to 'show all', namespace_project_merge_requests_path(project.namespace, project), class: 'pull-right' + = link_to project.name_with_namespace, namespace_project_merge_requests_path(project.namespace, project) + - if can?(current_user, :create_merge_request, project) + .pull-right + = link_to 'New merge request', new_namespace_project_merge_request_path(project.namespace, project) + %ul.well-list.mr-list - group[1].each do |merge_request| = render 'projects/merge_requests/merge_request', merge_request: merge_request |