<%= link_to_function sprite_icon('settings', l(:label_options)), "$('##{block}-settings').toggle();", :class => 'icon-only icon-settings', :title => l(:label_options) %>

<%= "#{query.project} |" if query.project %> <%= link_to query.name, _project_issues_path(query.project, query.as_params) %> (<%= query.issue_count %>)

<% if issues.any? %> <%= render :partial => 'issues/list', :locals => { :issues => issues, :query => query, :query_options => { :sort_param => "settings[#{block}][sort]", :sort_link_options => {:method => :post, :remote => true} } } %> <% else %>

<%= l(:label_no_data) %>

<% end %> <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, _project_issues_path(query.project, query.as_params.merge(:format => 'atom', :key => User.current.atom_key)), {:title => query.name}) %> <% end %>