The requested changes are too big and content was truncated. Show full diff
@@ -1,109 +1,114 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <% if !@query.new_record? && @query.editable_by?(User.current) %> |
|
3 | 3 | <%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %> |
|
4 | 4 | <%= delete_link query_path(@query) %> |
|
5 | 5 | <% end %> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2> |
|
9 | 9 | <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> |
|
10 | 10 | |
|
11 | 11 | <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, |
|
12 | 12 | :method => :get, :id => 'query_form') do %> |
|
13 | 13 | <div id="query_form_with_buttons" class="hide-when-print"> |
|
14 | 14 | <%= hidden_field_tag 'set_filter', '1' %> |
|
15 | 15 | <div id="query_form_content"> |
|
16 | 16 | <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
|
17 | 17 | <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
|
18 | 18 | <div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
|
19 | 19 | <%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
|
20 | 20 | </div> |
|
21 | 21 | </fieldset> |
|
22 | 22 | <fieldset class="collapsible collapsed"> |
|
23 | 23 | <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend> |
|
24 | 24 | <div style="display: none;"> |
|
25 | 25 | <table> |
|
26 | 26 | <tr> |
|
27 | 27 | <td><%= l(:field_column_names) %></td> |
|
28 | 28 | <td><%= render_query_columns_selection(@query) %></td> |
|
29 | 29 | </tr> |
|
30 | 30 | <tr> |
|
31 | 31 | <td><label for='group_by'><%= l(:field_group_by) %></label></td> |
|
32 | 32 | <td><%= select_tag('group_by', |
|
33 | 33 | options_for_select( |
|
34 | 34 | [[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, |
|
35 | 35 | @query.group_by) |
|
36 | 36 | ) %></td> |
|
37 | 37 | </tr> |
|
38 | 38 | <tr> |
|
39 | 39 | <td><%= l(:button_show) %></td> |
|
40 | 40 | <td><%= available_block_columns_tags(@query) %></td> |
|
41 | 41 | </tr> |
|
42 | 42 | </table> |
|
43 | 43 | </div> |
|
44 | 44 | </fieldset> |
|
45 | 45 | </div> |
|
46 | 46 | <p class="buttons"> |
|
47 | 47 | <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> |
|
48 | 48 | <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> |
|
49 | 49 | <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
50 | 50 | <%= link_to_function l(:button_save), |
|
51 | 51 | "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }'); submit_query_form('query_form')", |
|
52 | 52 | :class => 'icon icon-save' %> |
|
53 | 53 | <% end %> |
|
54 | 54 | </p> |
|
55 | 55 | </div> |
|
56 | 56 | <% end %> |
|
57 | 57 | |
|
58 | 58 | <%= error_messages_for 'query' %> |
|
59 | 59 | <% if @query.valid? %> |
|
60 | 60 | <% if @issues.empty? %> |
|
61 | 61 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
62 | 62 | <% else %> |
|
63 | 63 | <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> |
|
64 | 64 | <p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p> |
|
65 | 65 | <% end %> |
|
66 | 66 | |
|
67 | 67 | <% other_formats_links do |f| %> |
|
68 | 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', '3 |
|
|
69 | <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '350px'); return false;" %> | |
|
70 | 70 | <%= f.link_to 'PDF', :url => params %> |
|
71 | 71 | <% end %> |
|
72 | 72 | |
|
73 | 73 | <div id="csv-export-options" style="display:none;"> |
|
74 | <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> | |
|
74 | <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> | |
|
75 | 75 | <%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %> |
|
76 | 76 | <p> |
|
77 | 77 | <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br /> |
|
78 | 78 | <label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label> |
|
79 | 79 | </p> |
|
80 | 80 | <p> |
|
81 | 81 | <label><%= check_box_tag 'description', '1', @query.has_column?(:description) %> <%= l(:field_description) %></label> |
|
82 | 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 %> | |
|
83 | 88 | <p class="buttons"> |
|
84 | 89 | <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %> |
|
85 | 90 | <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> |
|
86 | 91 | </p> |
|
87 | 92 | <% end %> |
|
88 | 93 | </div> |
|
89 | 94 | |
|
90 | 95 | <% end %> |
|
91 | 96 | <%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %> |
|
92 | 97 | |
|
93 | 98 | <% content_for :sidebar do %> |
|
94 | 99 | <%= render :partial => 'issues/sidebar' %> |
|
95 | 100 | <% end %> |
|
96 | 101 | |
|
97 | 102 | <% content_for :header_tags do %> |
|
98 | 103 | <%= auto_discovery_link_tag(:atom, |
|
99 | 104 | {:query_id => @query, :format => 'atom', |
|
100 | 105 | :page => nil, :key => User.current.rss_key}, |
|
101 | 106 | :title => l(:label_issue_plural)) %> |
|
102 | 107 | <%= auto_discovery_link_tag(:atom, |
|
103 | 108 | {:controller => 'journals', :action => 'index', |
|
104 | 109 | :query_id => @query, :format => 'atom', |
|
105 | 110 | :page => nil, :key => User.current.rss_key}, |
|
106 | 111 | :title => l(:label_changes_details)) %> |
|
107 | 112 | <% end %> |
|
108 | 113 | |
|
109 | 114 | <%= context_menu issues_context_menu_path %> |
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now