diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-12 10:39:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-12 10:39:42 +0000 |
commit | f890c775f1b1d36192e7db1dc78fbc6912768856 (patch) | |
tree | f97ba8c4aa4b1d087bfe7b89b4988a388bd69b55 /app/views/issues/index.html.erb | |
parent | 682f0231ff4c4fac35ad3740a9aeb562e11300a5 (diff) | |
download | redmine-f890c775f1b1d36192e7db1dc78fbc6912768856.tar.gz redmine-f890c775f1b1d36192e7db1dc78fbc6912768856.zip |
Show warning when exported issues exceed the limit (#13770).
git-svn-id: http://svn.redmine.org/redmine/trunk@12663 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/index.html.erb')
-rw-r--r-- | app/views/issues/index.html.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 4c0528b79..41660f741 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -66,12 +66,12 @@ <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> - <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %> + <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '350px'); return false;" %> <%= f.link_to 'PDF', :url => params %> <% end %> <div id="csv-export-options" style="display:none;"> - <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> + <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> <%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %> <p> <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br /> @@ -80,6 +80,11 @@ <p> <label><%= check_box_tag 'description', '1', @query.has_column?(:description) %> <%= l(:field_description) %></label> </p> + <% if @issue_count > Setting.issues_export_limit.to_i %> + <p class="icon icon-warning"> + <%= l(:setting_issues_export_limit) %>: <%= Setting.issues_export_limit.to_i %> + </p> + <% end %> <p class="buttons"> <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %> <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> |