Mercurial > hg > soundsoftware-site
comparison .svn/pristine/78/785b84786155ae8c39aca30bbef3bcc09333a1a6.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
1 <div class="contextual"> | |
2 <% if !@query.new_record? && @query.editable_by?(User.current) %> | |
3 <%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %> | |
4 <%= delete_link query_path(@query) %> | |
5 <% end %> | |
6 </div> | |
7 | |
8 <h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2> | |
9 <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> | |
10 | |
11 <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, | |
12 :method => :get, :id => 'query_form') do %> | |
13 <div id="query_form_with_buttons" class="hide-when-print"> | |
14 <%= hidden_field_tag 'set_filter', '1' %> | |
15 <div id="query_form_content"> | |
16 <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> | |
17 <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> | |
18 <div style="<%= @query.new_record? ? "" : "display: none;" %>"> | |
19 <%= render :partial => 'queries/filters', :locals => {:query => @query} %> | |
20 </div> | |
21 </fieldset> | |
22 <fieldset class="collapsible collapsed"> | |
23 <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend> | |
24 <div style="display: none;"> | |
25 <table> | |
26 <tr> | |
27 <td><%= l(:field_column_names) %></td> | |
28 <td><%= render_query_columns_selection(@query) %></td> | |
29 </tr> | |
30 <tr> | |
31 <td><label for='group_by'><%= l(:field_group_by) %></label></td> | |
32 <td><%= select_tag('group_by', | |
33 options_for_select( | |
34 [[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, | |
35 @query.group_by) | |
36 ) %></td> | |
37 </tr> | |
38 <tr> | |
39 <td><%= l(:button_show) %></td> | |
40 <td><%= available_block_columns_tags(@query) %></td> | |
41 </tr> | |
42 </table> | |
43 </div> | |
44 </fieldset> | |
45 </div> | |
46 <p class="buttons"> | |
47 <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> | |
48 <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> | |
49 <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> | |
50 <%= link_to_function l(:button_save), | |
51 "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }'); submit_query_form('query_form')", | |
52 :class => 'icon icon-save' %> | |
53 <% end %> | |
54 </p> | |
55 </div> | |
56 <% end %> | |
57 | |
58 <%= error_messages_for 'query' %> | |
59 <% if @query.valid? %> | |
60 <% if @issues.empty? %> | |
61 <p class="nodata"><%= l(:label_no_data) %></p> | |
62 <% else %> | |
63 <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> | |
64 <p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p> | |
65 <% end %> | |
66 | |
67 <% other_formats_links do |f| %> | |
68 <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> | |
69 <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '350px'); return false;" %> | |
70 <%= f.link_to 'PDF', :url => params %> | |
71 <% end %> | |
72 | |
73 <div id="csv-export-options" style="display:none;"> | |
74 <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> | |
75 <%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %> | |
76 <p> | |
77 <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br /> | |
78 <label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label> | |
79 </p> | |
80 <p> | |
81 <label><%= check_box_tag 'description', '1', @query.has_column?(:description) %> <%= l(:field_description) %></label> | |
82 </p> | |
83 <% if @issue_count > Setting.issues_export_limit.to_i %> | |
84 <p class="icon icon-warning"> | |
85 <%= l(:setting_issues_export_limit) %>: <%= Setting.issues_export_limit.to_i %> | |
86 </p> | |
87 <% end %> | |
88 <p class="buttons"> | |
89 <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %> | |
90 <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> | |
91 </p> | |
92 <% end %> | |
93 </div> | |
94 | |
95 <% end %> | |
96 <%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %> | |
97 | |
98 <% content_for :sidebar do %> | |
99 <%= render :partial => 'issues/sidebar' %> | |
100 <% end %> | |
101 | |
102 <% content_for :header_tags do %> | |
103 <%= auto_discovery_link_tag(:atom, | |
104 {:query_id => @query, :format => 'atom', | |
105 :page => nil, :key => User.current.rss_key}, | |
106 :title => l(:label_issue_plural)) %> | |
107 <%= auto_discovery_link_tag(:atom, | |
108 {:controller => 'journals', :action => 'index', | |
109 :query_id => @query, :format => 'atom', | |
110 :page => nil, :key => User.current.rss_key}, | |
111 :title => l(:label_changes_details)) %> | |
112 <% end %> | |
113 | |
114 <%= context_menu issues_context_menu_path %> |