wice_grid 3.4.14 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG +38 -0
  4. data/README.rdoc +219 -210
  5. data/SAVED_QUERIES_HOWTO.rdoc +13 -13
  6. data/app/views/kaminari/wice_grid/_next_page.html.erb +1 -1
  7. data/app/views/kaminari/wice_grid/_page.html.erb +1 -1
  8. data/app/views/kaminari/wice_grid/_prev_page.html.erb +1 -1
  9. data/lib/generators/wice_grid/install_generator.rb +2 -2
  10. data/lib/generators/wice_grid/templates/{wice_grid.css.scss → wice_grid.scss} +0 -0
  11. data/lib/generators/wice_grid/templates/wice_grid.yml +87 -1
  12. data/lib/generators/wice_grid/templates/wice_grid_config.rb +21 -7
  13. data/lib/wice/active_record_column_wrapper.rb +0 -1
  14. data/lib/wice/columns.rb +0 -1
  15. data/lib/wice/columns/column_action.rb +13 -8
  16. data/lib/wice/columns/column_boolean.rb +0 -1
  17. data/lib/wice/columns/column_custom_dropdown.rb +0 -1
  18. data/lib/wice/columns/column_date.rb +1 -2
  19. data/lib/wice/columns/column_datetime.rb +33 -7
  20. data/lib/wice/columns/column_float.rb +0 -1
  21. data/lib/wice/columns/column_integer.rb +0 -1
  22. data/lib/wice/columns/column_processor_index.rb +0 -1
  23. data/lib/wice/columns/column_range.rb +0 -1
  24. data/lib/wice/columns/column_string.rb +0 -1
  25. data/lib/wice/grid_output_buffer.rb +0 -1
  26. data/lib/wice/grid_renderer.rb +4 -2
  27. data/lib/wice/helpers/bs_calendar_helpers.rb +67 -0
  28. data/lib/wice/helpers/wice_grid_misc_view_helpers.rb +0 -1
  29. data/lib/wice/helpers/wice_grid_serialized_queries_view_helpers.rb +16 -17
  30. data/lib/wice/helpers/wice_grid_view_helpers.rb +52 -54
  31. data/lib/wice/kaminari_monkey_patching.rb +0 -1
  32. data/lib/wice/table_column_matrix.rb +0 -1
  33. data/lib/wice/wice_grid_controller.rb +5 -7
  34. data/lib/wice/wice_grid_core_ext.rb +0 -2
  35. data/lib/wice/wice_grid_misc.rb +0 -1
  36. data/lib/wice/wice_grid_serialized_queries_controller.rb +0 -1
  37. data/lib/wice/wice_grid_serialized_query.rb +0 -1
  38. data/lib/wice/wice_grid_spreadsheet.rb +0 -1
  39. data/lib/wice_grid.rb +24 -14
  40. data/release_notes/RELEASE_NOTES_3.2.pre1.rdoc +1 -2
  41. data/vendor/assets/javascripts/wice_grid_init.js.coffee +58 -24
  42. data/vendor/assets/javascripts/wice_grid_processor.js.coffee +1 -1
  43. data/wice_grid.gemspec +16 -30
  44. metadata +22 -21
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice #:nodoc:
3
2
  module Columns #:nodoc:
4
3
  COLUMN_PROCESSOR_INDEX = ActiveSupport::OrderedHash[ #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
 
4
3
  module Columns #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
 
4
3
  module Columns #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
 
4
3
  class GridOutputBuffer < String #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
  class GridRenderer
4
3
 
@@ -135,6 +134,7 @@ module Wice
135
134
  # * <tt>:select_all_buttons</tt> - show/hide buttons 'Select All' and 'Deselect All' in the column header.
136
135
  # The default is +true+.
137
136
  # * <tt>:object_property</tt> - a method used to obtain the value for the HTTP parameter. The default is +id+.
137
+ # * <tt>:html_check_box</tt> - can be used to switch from a real check box to two images. The default is +true+.
138
138
  #
139
139
  # You can hide a certain action checkbox if you add the usual block to +g.action_column+, just like with the
140
140
  # +g.column+ definition. If the block returns +nil+ or +false+ no checkbox will be rendered.
@@ -149,7 +149,8 @@ module Wice
149
149
  param_name: :selected,
150
150
  html: {},
151
151
  select_all_buttons: true,
152
- object_property: :id
152
+ object_property: :id,
153
+ html_check_box: true,
153
154
  }
154
155
 
155
156
  opts.assert_valid_keys(options.keys)
@@ -163,6 +164,7 @@ module Wice
163
164
  options[:param_name],
164
165
  options[:select_all_buttons],
165
166
  options[:object_property],
167
+ options[:html_check_box],
166
168
  @view,
167
169
  block
168
170
  )
@@ -0,0 +1,67 @@
1
+ module Wice #:nodoc:
2
+ module BsCalendarHelpers #:nodoc:
3
+
4
+ class CalendarData
5
+ attr_accessor :name,
6
+ :date_string,
7
+ :dom_id,
8
+ :datepicker_placeholder_id,
9
+ :date_div_id,
10
+ :fire_event,
11
+ :close_calendar_event_name,
12
+ :the_other_datepicker_id_to,
13
+ :the_other_datepicker_id_from
14
+ end
15
+
16
+ def date_calendar_bs(calendar_data) #:nodoc:
17
+
18
+ text_field_tag_options = {
19
+ :id => calendar_data.dom_id,
20
+ 'data-provide' => 'datepicker',
21
+ 'data-date-language' => I18n.locale,
22
+ 'data-date-autoclose' => true,
23
+ 'data-date-format' => Wice::ConfigurationProvider.value_for(:DATE_FORMAT_BOOTSTRAP),
24
+ }
25
+
26
+
27
+ text_field_tag_options['class'] = 'form-control input-sm'
28
+
29
+ if Rails.env.development?
30
+ text_field_tag_options['class'] += ' check-for-bsdatepicker'
31
+ end
32
+
33
+ if calendar_data.fire_event
34
+ text_field_tag_options['data-close-calendar-event-name'] = calendar_data.close_calendar_event_name
35
+ end
36
+
37
+ if calendar_data.the_other_datepicker_id_to
38
+ text_field_tag_options['data-the-other-bsdatepicker-id-to'] = calendar_data.the_other_datepicker_id_to
39
+ end
40
+
41
+ if calendar_data.the_other_datepicker_id_from
42
+ text_field_tag_options['data-the-other-bsdatepicker-id-from'] = calendar_data.the_other_datepicker_id_from
43
+ end
44
+
45
+ date_picker = text_field_tag(calendar_data.name, calendar_data.date_string, text_field_tag_options)
46
+
47
+ "<div id=\"#{calendar_data.datepicker_placeholder_id}\">#{date_picker}</div>"
48
+ end
49
+
50
+ def prepare_data_for_bscalendar(options) #:nodoc:
51
+
52
+ date_format = Wice::ConfigurationProvider.value_for(:DATE_FORMAT)
53
+
54
+ CalendarData.new.tap do |calendar_data|
55
+
56
+ calendar_data.name = options[:name]
57
+ calendar_data.date_string = options[:initial_date].nil? ? '' : options[:initial_date].strftime(date_format)
58
+ calendar_data.dom_id = options[:name].gsub(/([\[\(])|(\]\[)/, '_').gsub(/[\]\)]/, '').gsub(/\./, '_').gsub(/_+/, '_')
59
+ calendar_data.datepicker_placeholder_id = calendar_data.dom_id + '_date_placeholder'
60
+ calendar_data.date_div_id = calendar_data.dom_id + '_date_view'
61
+ calendar_data.close_calendar_event_name = "wg:calendarChanged_#{options[:grid_name]}"
62
+ calendar_data.fire_event = options[:fire_event]
63
+ end
64
+ end
65
+
66
+ end
67
+ end
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
  module GridViewHelper
4
3
 
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
  module GridViewHelper
4
3
 
@@ -12,18 +11,18 @@ module Wice
12
11
  raise WiceGridArgumentError.new("saved_queries_panel: the parameter must be a WiceGrid instance.")
13
12
  end
14
13
 
15
- options = {:extra_parameters => {}, :confirm => 1}
14
+ options = {extra_parameters: {}, confirm: 1}
16
15
  opts.assert_valid_keys(options.keys)
17
16
  options.merge!(opts)
18
17
 
19
18
  grid_name = grid.name
20
19
  input_field_name = "#{grid_name}_saved_query_name"
21
- base_path_to_query_controller = create_serialized_query_url(:grid_name => grid_name, :confirm => options[:confirm])
20
+ base_path_to_query_controller = create_serialized_query_url(grid_name: grid_name, confirm: options[:confirm])
22
21
 
23
22
  parameters = grid.get_state_as_parameter_value_pairs
24
23
 
25
24
  options[:extra_parameters].each do |k, v|
26
- parameters << [ CGI.unescape({:extra => {k => ''}}.to_query.sub(/=$/,'')) , v.to_s ]
25
+ parameters << [ CGI.unescape({extra: {k => ''}}.to_query.sub(/=$/,'')) , v.to_s ]
27
26
  end
28
27
  parameters << ['authenticity_token', form_authenticity_token]
29
28
  notification_messages_id = "#{grid_name}_notification_messages"
@@ -39,10 +38,10 @@ module Wice
39
38
 
40
39
  '<div class="form-horizontal"><div class="wg-saved-query-input-controls input-append">'+
41
40
 
42
- text_field_tag(input_field_name, '', :onkeydown=>'', :class => 'wice-grid-save-query-field form-control ') +
41
+ text_field_tag(input_field_name, '', onkeydown: '', class: 'wice-grid-save-query-field form-control ') +
43
42
  button_tag(
44
43
  NlMessage['save_query_button_label'],
45
- :class => 'wice-grid-save-query-button btn btn-primary',
44
+ class: 'wice-grid-save-query-button btn btn-primary',
46
45
  'data-grid-name' => grid_name,
47
46
  'data-base-path-to-query-controller' => base_path_to_query_controller,
48
47
  'data-parameters' => parameters.to_json,
@@ -60,13 +59,13 @@ module Wice
60
59
 
61
60
  query_store_model = ::Wice::get_query_store_model
62
61
  currently_loaded_query_id = saved_query ? saved_query.id : nil
63
- with = extra_parameters.nil? ? nil : "'" + {:extra => extra_parameters}.to_query + "'"
62
+ with = extra_parameters.nil? ? nil : "'" + {extra: extra_parameters}.to_query + "'"
64
63
 
65
64
  %!<ul id="#{grid_name}_query_list" class="query-list"> ! +
66
65
  query_store_model.list(grid_name, controller).collect do |sq|
67
66
  link_opts = {
68
- :class => 'wice-grid-query-load-link',
69
- :title => "#{link_title} #{sq.name}",
67
+ class: 'wice-grid-query-load-link',
68
+ title: "#{link_title} #{sq.name}",
70
69
  'data-query-id' => sq.id,
71
70
  'data-grid-name' => grid_name
72
71
  }
@@ -75,16 +74,16 @@ module Wice
75
74
  link_to(
76
75
  content_tag(:div, '', :class => 'delete-icon'),
77
76
  delete_serialized_query_path(
78
- :grid_name => grid_name,
79
- :id => sq.id,
80
- :current => currently_loaded_query_id,
81
- :extra => extra_parameters,
82
- :confirm => confirm
77
+ grid_name: grid_name,
78
+ id: sq.id,
79
+ current: currently_loaded_query_id,
80
+ extra: extra_parameters,
81
+ confirm: confirm
83
82
  ),
84
- :class => 'wice-grid-delete-query',
83
+ class: 'wice-grid-delete-query',
85
84
  'data-wg-confirm' => deletion_confirmation,
86
- 'data-grid-name' => grid_name,
87
- :title => "#{deletion_link_title} #{sq.name}"
85
+ 'data-grid-name' => grid_name,
86
+ title: "#{deletion_link_title} #{sq.name}"
88
87
  ) + ' &nbsp; ' +
89
88
  link_to(h(sq.name), '#', link_opts) +
90
89
  if sq.respond_to? :description
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  module Wice
3
2
  module GridViewHelper
4
3
 
@@ -8,7 +7,7 @@ module Wice
8
7
  #
9
8
  # The second parameter is a hash of options:
10
9
  # * <tt>:html</tt> - a hash of HTML attributes to be included into the <tt>table</tt> tag.
11
- # * <tt>:class</tt> - a shortcut for <tt>:html => {:class => 'css_class'}</tt>
10
+ # * <tt>:class</tt> - a shortcut for <tt>html: {class: 'css_class'}</tt>
12
11
  # * <tt>:header_tr_html</tt> - a hash of HTML attributes to be included into the first <tt>tr</tt> tag
13
12
  # (or two first <tt>tr</tt>'s if the filter row is present).
14
13
  # * <tt>:show_filters</tt> - defines when the filter is shown. Possible values are:
@@ -45,13 +44,13 @@ module Wice
45
44
  # first block is called for cells of the first column for each row (each ActiveRecord instance), the
46
45
  # second block is called for cells of the second column, and so on. See the example:
47
46
  #
48
- # <%= grid(@accounts_grid, :html => {:class => 'grid_style', :id => 'accounts_grid'}, :header_tr_html => {:class => 'grid_headers'}) do |g|
47
+ # <%= grid(@accounts_grid, html: {class: 'grid_style', id: 'accounts_grid'}, header_tr_html: {class: 'grid_headers'}) do |g|
49
48
  #
50
- # g.column :name => 'Username', :attribute => 'username' do |account|
49
+ # g.column name: 'Username', attribute: 'username' do |account|
51
50
  # account.username
52
51
  # end
53
52
  #
54
- # g.column :name => 'application_account.field.identity_id'._, :attribute => 'firstname', :model => Person do |account|
53
+ # g.column name: 'application_account.field.identity_id'._, attribute: 'firstname', model: Person do |account|
55
54
  # link_to(account.identity.name, identity_path(account.identity))
56
55
  # end
57
56
  #
@@ -88,17 +87,17 @@ module Wice
88
87
  end
89
88
 
90
89
  options = {
91
- :allow_showing_all_records => Defaults::ALLOW_SHOWING_ALL_QUERIES,
92
- :class => nil,
93
- :extra_request_parameters => {},
94
- :header_tr_html => {},
95
- :hide_reset_button => false,
96
- :hide_submit_button => false,
97
- :hide_csv_button => false,
98
- :show_filters => Defaults::SHOW_FILTER,
99
- :sorting_dependant_row_cycling => false,
100
- :html => {},
101
- :upper_pagination_panel => Defaults::SHOW_UPPER_PAGINATION_PANEL
90
+ allow_showing_all_records: Defaults::ALLOW_SHOWING_ALL_RECORDS,
91
+ class: nil,
92
+ extra_request_parameters: {},
93
+ header_tr_html: {},
94
+ hide_reset_button: false,
95
+ hide_submit_button: false,
96
+ hide_csv_button: false,
97
+ show_filters: Defaults::SHOW_FILTER,
98
+ sorting_dependant_row_cycling: false,
99
+ html: {},
100
+ upper_pagination_panel: Defaults::SHOW_UPPER_PAGINATION_PANEL
102
101
  }
103
102
 
104
103
  opts.assert_valid_keys(options.keys)
@@ -242,13 +241,13 @@ module Wice
242
241
  # Ruby 1.9.x
243
242
  grid.output_buffer.force_encoding('UTF-8') if grid.output_buffer.respond_to?(:force_encoding)
244
243
 
245
- grid.output_buffer << %!<div class="wice-grid-container" data-grid-name="#{grid.name}" id="#{grid.name}"><div id="#{grid.name}_title">!
244
+ grid.output_buffer << %!<div class="wice-grid-container table-responsive" data-grid-name="#{grid.name}" id="#{grid.name}"><div id="#{grid.name}_title">!
246
245
  grid.output_buffer << content_tag(:h3, grid.saved_query.name) if grid.saved_query
247
246
  grid.output_buffer << "</div><table #{tag_options(table_html_attrs, true)}>"
248
247
  grid.output_buffer << "<caption>#{rendering.kaption}</caption>" if rendering.kaption
249
248
  grid.output_buffer << "<thead>"
250
249
 
251
- no_filters_at_all = (options[:show_filters] == :no || rendering.no_filter_needed?) ? true: false
250
+ no_filters_at_all = (options[:show_filters] == :no || rendering.no_filter_needed?)
252
251
 
253
252
  if no_filters_at_all
254
253
  no_rightmost_column = no_filter_row = no_filters_at_all
@@ -314,7 +313,7 @@ module Wice
314
313
  col_link = link_to(
315
314
  column_name,
316
315
  rendering.column_link(column, direction, params, options[:extra_request_parameters]),
317
- :class => link_style)
316
+ class: link_style)
318
317
 
319
318
  grid.output_buffer << content_tag(:th, col_link, opts)
320
319
 
@@ -382,7 +381,7 @@ module Wice
382
381
  end
383
382
  end
384
383
  unless no_rightmost_column
385
- grid.output_buffer << content_tag(:th, reset_submit_buttons(options, grid, rendering), :class => 'filter_icons' )
384
+ grid.output_buffer << content_tag(:th, reset_submit_buttons(options, grid, rendering), class: 'filter_icons' )
386
385
  end
387
386
  grid.output_buffer << '</tr>'
388
387
  end
@@ -439,10 +438,10 @@ module Wice
439
438
  row_attributes = rendering.get_row_attributes(ar)
440
439
 
441
440
  if sorting_dependant_row_cycling
442
- cycle_class = cycle('odd', 'even', :name => grid.name) if cell_value_of_the_ordered_column != previous_cell_value_of_the_ordered_column
441
+ cycle_class = cycle('odd', 'even', name: grid.name) if cell_value_of_the_ordered_column != previous_cell_value_of_the_ordered_column
443
442
  previous_cell_value_of_the_ordered_column = cell_value_of_the_ordered_column
444
443
  else
445
- cycle_class = cycle('odd', 'even', :name => grid.name)
444
+ cycle_class = cycle('odd', 'even', name: grid.name)
446
445
  end
447
446
 
448
447
  Wice::WgHash.add_or_append_class_value!(row_attributes, cycle_class)
@@ -468,8 +467,8 @@ module Wice
468
467
 
469
468
  link_for_export = rendering.link_for_export(controller, 'csv', options[:extra_request_parameters])
470
469
 
471
- parameter_name_for_query_loading = {grid.name => {:q => ''}}.to_query
472
- parameter_name_for_focus = {grid.name => {:foc => ''}}.to_query
470
+ parameter_name_for_query_loading = {grid.name => {q: ''}}.to_query
471
+ parameter_name_for_focus = {grid.name => {foc: ''}}.to_query
473
472
 
474
473
  processor_initializer_arguments = [base_link_for_filter, base_link_for_show_all_records,
475
474
  link_for_export, parameter_name_for_query_loading, parameter_name_for_focus, Rails.env]
@@ -523,15 +522,15 @@ module Wice
523
522
  else
524
523
 
525
524
  content_tag(:div, '',
526
- :title => NlMessage['hide_filter_tooltip'],
527
- :style => styles[0],
528
- :class => 'clickable wg-hide-filter'
525
+ title: NlMessage['hide_filter_tooltip'],
526
+ style: styles[0],
527
+ class: 'clickable wg-hide-filter'
529
528
  ) +
530
529
 
531
530
  content_tag(:div, '',
532
- :title => NlMessage['show_filter_tooltip'],
533
- :style => styles[1],
534
- :class => 'clickable wg-show-filter'
531
+ title: NlMessage['show_filter_tooltip'],
532
+ style: styles[1],
533
+ class: 'clickable wg-show-filter'
535
534
  )
536
535
 
537
536
  end
@@ -542,9 +541,9 @@ module Wice
542
541
  ''
543
542
  else
544
543
  content_tag(:div, '',
545
- :title => NlMessage['filter_tooltip'],
546
- :id => grid.name + '_submit_grid_icon',
547
- :class => 'submit clickable'
544
+ title: NlMessage['filter_tooltip'],
545
+ id: grid.name + '_submit_grid_icon',
546
+ class: 'submit clickable'
548
547
  )
549
548
  end.html_safe + ' ' +
550
549
  if options[:hide_reset_button]
@@ -552,9 +551,9 @@ module Wice
552
551
  else
553
552
 
554
553
  content_tag(:div, '',
555
- :title => NlMessage['reset_filter_tooltip'],
556
- :id => grid.name + '_reset_grid_icon',
557
- :class => 'reset clickable'
554
+ title: NlMessage['reset_filter_tooltip'],
555
+ id: grid.name + '_reset_grid_icon',
556
+ class: 'reset clickable'
558
557
  )
559
558
  end.html_safe
560
559
  end
@@ -576,7 +575,7 @@ module Wice
576
575
 
577
576
  content_tag :span,
578
577
  grid.output_buffer.filter_for(filter_key),
579
- :class => "wg-detached-filter #{grid.name}_detached_filter",
578
+ class: "wg-detached-filter #{grid.name}_detached_filter",
580
579
  'data-grid-name' => grid.name
581
580
  end
582
581
 
@@ -617,11 +616,11 @@ module Wice
617
616
  html = pagination_info(grid, allow_showing_all_records)
618
617
 
619
618
  paginate(grid.resultset,
620
- :theme => 'wice_grid',
621
- :param_name => "#{grid.name}[page]",
622
- :params => extra_request_parameters,
623
- :inner_window => 4,
624
- :outer_window => 2
619
+ theme: 'wice_grid',
620
+ param_name: "#{grid.name}[page]",
621
+ params: extra_request_parameters,
622
+ inner_window: 4,
623
+ outer_window: 2
625
624
  ) +
626
625
  (' <div class="pagination_status">' + html + '</div>').html_safe
627
626
  end
@@ -633,10 +632,10 @@ module Wice
633
632
  confirmation = collection_total_entries > Defaults::START_SHOWING_WARNING_FROM ? message : nil
634
633
 
635
634
  html = content_tag(:a, NlMessage['show_all_records_label'],
636
- :href=>"#",
637
- :title => NlMessage['show_all_records_tooltip'],
638
- :class => 'wg-show-all-link',
639
- 'data-grid-state' => parameters.to_json,
635
+ href: "#",
636
+ title: NlMessage['show_all_records_tooltip'],
637
+ class: 'wg-show-all-link',
638
+ 'data-grid-state' => parameters.to_json,
640
639
  'data-confim-message' => confirmation
641
640
  )
642
641
 
@@ -648,16 +647,15 @@ module Wice
648
647
  parameters = parameters.reject{|k, v| k == pagination_override_parameter_name}
649
648
 
650
649
  content_tag(:a, NlMessage['switch_back_to_paginated_mode_label'],
651
- :href=>"#",
652
- :title => NlMessage['switch_back_to_paginated_mode_tooltip'],
653
- :class => 'wg-back-to-pagination-link',
650
+ href: "#",
651
+ title: NlMessage['switch_back_to_paginated_mode_tooltip'],
652
+ class: 'wg-back-to-pagination-link',
654
653
  'data-grid-state' => parameters.to_json
655
654
  )
656
655
  end
657
656
 
658
657
  def pagination_info(grid, allow_showing_all_records) #:nodoc:
659
658
 
660
-
661
659
  collection = grid.resultset
662
660
 
663
661
  if grid.all_record_mode?
@@ -683,11 +681,11 @@ module Wice
683
681
 
684
682
  else
685
683
  collection_total_entries = collection.total_count
686
- current_page = grid.ar_options[:page].to_i
687
- per_page = grid.ar_options[:per_page].to_i
684
+ current_page = grid.ar_options[:page].to_i
685
+ per_page = grid.ar_options[:per_page].to_i
688
686
 
689
687
  first = collection.offset_value + 1
690
- last = collection.last_page? ? collection.total_count : collection.offset_value + collection.limit_value
688
+ last = collection.last_page? ? collection.total_count : collection.offset_value + collection.limit_value
691
689
 
692
690
  num_pages = collection.num_pages
693
691
  end
@@ -702,7 +700,7 @@ module Wice
702
700
 
703
701
  show_all_records_link = allow_showing_all_records && collection_total_entries > collection.length
704
702
 
705
- if show_all_records_link && limit = Wice::ConfigurationProvider.value_for(:HIDE_ALL_LINK_FROM, strict: false)
703
+ if show_all_records_link && limit = Wice::ConfigurationProvider.value_for(:SHOW_ALL_ALLOWED_UP_TO, strict: false)
706
704
  show_all_records_link = limit > collection_total_entries
707
705
  end
708
706