% if authorize_for('projects', 'add_issue') %>
<%= l(:label_issue_new) %>
<%= l(:label_tracker) %>: <%= new_issue_selector %>
<% end %>
<%= l(:label_issue_plural) %>
<%= link_to l(:label_issue_view_all), { :set_filter => 1 } %>
<%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %>
<%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
<%= l(:label_query_plural) %>
<% queries = @project.queries.find(:all,
:order => "name ASC",
:conditions => ["is_public = ? or user_id = ?", true, (User.current.logged? ? User.current.id : 0)])
queries.each do |query| %>
<%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
<% end %>