grapple 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/config/locales/en.yml +4 -1
- data/lib/grapple/components/search_query_field.rb +1 -1
- data/lib/grapple/components/will_paginate_infobar.rb +3 -6
- data/lib/grapple/components/will_paginate_pagination.rb +0 -0
- data/spec/builders/ajax_data_grid_builder_spec.rb +0 -0
- data/spec/builders/html_table_builder_spec.rb +0 -0
- data/spec/components/will_paginate_spec.rb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a00ec50832f4583379666e80a35b898efc63c066b1b19018efeccbfadefeb531
|
4
|
+
data.tar.gz: fb7475bad8276a7f4867622aaf3fe47d09829853d12841795fb9ce4455697399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9255cd578e733a19c272c73e47fc3fae1ac17838aa61f355a0fa150e6bd31d37ba0236a0f825cd441a9e082fb26241ddad3237bf041582ae0312275c9c8a3722
|
7
|
+
data.tar.gz: 985d05b1ac0354f7ae92b5a78acf3a2236b2543bc083041009bc084539c09aa315b0f9becb1a99901944b7ece92c853f65ddb6fc6b759b3a19a04c4e4c6bd952
|
data/config/locales/en.yml
CHANGED
@@ -9,7 +9,7 @@ module Grapple
|
|
9
9
|
template.text_field_tag(
|
10
10
|
search_query_param.to_s,
|
11
11
|
params[search_query_param.to_sym],
|
12
|
-
{ :
|
12
|
+
{ class: search_query_field_class, placeholder: I18n.translate(:search) }
|
13
13
|
)
|
14
14
|
end
|
15
15
|
|
@@ -2,9 +2,6 @@ module Grapple
|
|
2
2
|
module Components
|
3
3
|
class WillPaginateInfobar < HtmlComponent
|
4
4
|
|
5
|
-
setting :message, "Displaying %s - %s of %s results"
|
6
|
-
setting :no_results_message, "0 results"
|
7
|
-
|
8
5
|
def render
|
9
6
|
if records.total_entries > 0
|
10
7
|
start_range = records.offset + 1
|
@@ -14,12 +11,12 @@ module Grapple
|
|
14
11
|
end_range = ActiveSupport::NumberHelper.number_to_delimited(end_range)
|
15
12
|
total = ActiveSupport::NumberHelper.number_to_delimited(records.total_entries)
|
16
13
|
|
17
|
-
html =
|
14
|
+
html = I18n.translate(:displaying_x_y_of_z_results, x: start_range, y: end_range, z: total)
|
18
15
|
else
|
19
|
-
html =
|
16
|
+
html = I18n.translate(:zero_results)
|
20
17
|
end
|
21
18
|
|
22
|
-
builder.row "<th colspan=\"#{num_columns}\">#{html}</th>", :
|
19
|
+
builder.row "<th colspan=\"#{num_columns}\">#{html}</th>", class: 'infobar'
|
23
20
|
end
|
24
21
|
|
25
22
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grapple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edward Potocko
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.6.
|
210
|
+
rubygems_version: 2.7.6.2
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: Customizable data grid for Rails
|