# HG changeset patch # User Chris Cannam # Date 1301581284 -3600 # Node ID 361602c5e6bb86ca86454c11b4ceb606bfbf05c2 # Parent 3564e1ae2ff7213987b57f84bc92497ae08b3f3a Do not show issue tracking box if there are no open issues to track diff -r 3564e1ae2ff7 -r 361602c5e6bb app/views/projects/show.rhtml --- a/app/views/projects/show.rhtml Thu Mar 31 11:13:21 2011 +0100 +++ b/app/views/projects/show.rhtml Thu Mar 31 15:21:24 2011 +0100 @@ -23,7 +23,8 @@ <% end %> - <% if User.current.allowed_to?(:view_issues, @project) %> + <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %> +

<%=l(:label_issue_tracking)%>

+ <% end %> <%= call_hook(:view_projects_show_left, :project => @project) %>