diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 14:00:54 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 14:00:54 +0100 |
commit | b66694d236f71474054c63b1e8a683abacf7fdc3 (patch) | |
tree | 56f2c4331caa7079dc6d1a10f06ab051a96b15a4 /app/views/shared/_issues.html.haml | |
parent | 09e712c0fb721059e4b2619eb9fc104257fc492d (diff) | |
download | gitlab-ce-b66694d236f71474054c63b1e8a683abacf7fdc3.tar.gz |
Add "New X" link to dashboard/group milestone project-specific issue/MR panels
Diffstat (limited to 'app/views/shared/_issues.html.haml')
-rw-r--r-- | app/views/shared/_issues.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/shared/_issues.html.haml b/app/views/shared/_issues.html.haml index 0dbb6a04393..4b4c9e9eabe 100644 --- a/app/views/shared/_issues.html.haml +++ b/app/views/shared/_issues.html.haml @@ -3,8 +3,10 @@ .panel.panel-default.panel-small - project = group[0] .panel-heading - = link_to_project project - = link_to 'show all', namespace_project_issues_path(project.namespace, project), class: 'pull-right' + = link_to project.name_with_namespace, namespace_project_issues_path(project.namespace, project) + - if can?(current_user, :create_issue, project) + .pull-right + = link_to 'New issue', new_namespace_project_issue_path(project.namespace, project) %ul.well-list.issues-list - group[1].each do |issue| @@ -12,4 +14,3 @@ = paginate @issues, theme: "gitlab" - else .nothing-here-block No issues to show - |