1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-28 19:29:38 +00:00
redmine/app/views/my/blocks/_issues.erb
Marius Balteanu ffce07e785 Start working on replacing old icons with SVG icons (#23980):
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.



git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-29 21:46:40 +00:00

44 lines
1.5 KiB
Plaintext

<div class="contextual">
<%= link_to_function icon_with_label('settings', l(:label_options)), "$('##{block}-settings').toggle();", :class => 'icon-only icon-settings', :title => l(:label_options) %>
</div>
<h3>
<%= "#{query.project} |" if query.project %>
<%= link_to query.name, _project_issues_path(query.project, query.as_params) %>
(<%= query.issue_count %>)
</h3>
<div id="<%= block %>-settings" style="display:none;">
<%= form_tag(my_page_path, :remote => true) do %>
<div id="list-definition">
<div class="box">
<%= render_query_columns_selection(query, :name => "settings[#{block}][columns]") %>
</div>
</div>
<p>
<%= submit_tag l(:button_save) %>
<%= link_to_function l(:button_cancel), "$('##{block}-settings').toggle();" %>
</p>
<% end %>
</div>
<% 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 %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% 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 %>