Project

General

Profile

Patch #13774 » patch_warning_on_csv_export.diff

Patch - Version 1 - Daniel Felix, 2013-04-15 17:10

View differences:

app/controllers/issues_controller.rb
else
@limit = per_page_option
end
@csv_limit = Setting.issues_export_limit.to_i
@issue_count = @query.issue_count
@issue_pages = Paginator.new @issue_count, @limit, params['page']
app/views/issues/index.html.erb
<div id="csv-export-options" style="display:none;">
<h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
<% if @csv_limit < @issue_count %>
<div class="flash warning">
<%= l(:warning_export_limit, :export => [@csv_limit,@issue_count].min, :total => @issue_count) %>
</div>
<% end %>
<%= 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 />
config/locales/de.yml
label_today: heute
label_topic_plural: Themen
label_total: Gesamtzahl
label_total_time: Gesamtzeit
label_tracker: Tracker
label_tracker_new: Neuer Tracker
label_tracker_plural: Tracker
......
version_status_open: offen
warning_attachments_not_saved: "%{count} Datei(en) konnten nicht gespeichert werden."
label_total_time: Gesamtzeit
warning_export_limit: "Der Export wird nur %{export} von %{total} Tickets enthalten!"
config/locales/en-GB.yml
field_generate_password: Generate password
setting_default_projects_tracker_ids: Default trackers for new projects
label_total_time: Total
warning_export_limit: "Export will only contain %{export} of %{total}! issues"
config/locales/en.yml
description_date_from: Enter start date
description_date_to: Enter end date
text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
warning_export_limit: "Export will only contain %{export} of %{total}! issues"
(1-1/3)