summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-19 18:40:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-19 18:40:38 +0000
commitb56f77322ac2f6a900ba011e767446e17401cf6f (patch)
tree49c20060c56b77bbb93802589dbd31bbf48ac6a6 /app/views/issues
parentdcc569fa34f7c961c2d2a5ba1f9da7b7a85b2f3b (diff)
downloadredmine-b56f77322ac2f6a900ba011e767446e17401cf6f.tar.gz
redmine-b56f77322ac2f6a900ba011e767446e17401cf6f.zip
Adds a "New issue" link on the global issue list (#6204).
git-svn-id: http://svn.redmine.org/redmine/trunk@15345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb
index 2e971711f..7dcba2629 100644
--- a/app/views/issues/index.html.erb
+++ b/app/views/issues/index.html.erb
@@ -1,6 +1,6 @@
<div class="contextual">
- <% if @project && User.current.allowed_to?(:add_issues, @project) && @project.trackers.any? %>
- <%= link_to l(:label_issue_new), new_project_issue_path(@project), :class => 'icon icon-add new-issue' %>
+ <% if User.current.allowed_to?(:add_issues, @project, :global => true) && (@project.nil? || @project.trackers.any?) %>
+ <%= link_to l(:label_issue_new), _new_project_issue_path(@project), :class => 'icon icon-add new-issue' %>
<% end %>
</div>