th_simple_data_presentation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzBhNTBjOWJhMDlmNGQ0MjdlODY2MmRkNTU3MGU3MzBhNjUyZmJjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODFmZjhiOWMyZDhlYjliZDU2ZGJhYmY3MWE5Y2MxMDIzNTI0YmEzOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2NlZjhlNTU5MzA1NGFhOGNmNzA1YjE1NWU4NzQ4NTk0MTY2OWE5Njk0MzBl
|
10
|
+
YmJjZTg3ZWEzYmY1ZDE5YWUyNmViYWE4M2Y0MTYzZTgxZjZmYjQxNDYzMzZl
|
11
|
+
MzJjOGI2OWY3OGM1ODFlNWJjOWM2N2ZjMmM1NmUxOWRhOGM4ZTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjE2YTRhNjY4M2U2YjExMDc3NDBhYmMwOGQ4MWYzZTAwMDIxZjMyM2M1YzYz
|
14
|
+
ZWY4NmY3NDhlNDFmZDRjYmQyM2U1YzM4MDVmM2Q5ZjA2OTE3MGY2NDk3Yjg5
|
15
|
+
YTNmN2YwNGVmNGQ0YzRmOWEwODQwODM5ZTkzN2M1NDgyMjcxN2Y=
|
@@ -18,7 +18,9 @@ class SimpleDataPresentation::SimpleTable::Head < SimpleDataPresentation::Simple
|
|
18
18
|
elsif !options[:label].nil?
|
19
19
|
options[:label]
|
20
20
|
elsif sort_attribute.present?
|
21
|
-
@resource_class.human_attribute_name sort_attribute
|
21
|
+
label = @resource_class.human_attribute_name sort_attribute
|
22
|
+
abbr_label = @resource_class.human_attribute_name "#{sort_attribute}_abbr", default: ""
|
23
|
+
abbr_label.present? ? @context.content_tag(:abbr, abbr_label, title: label) : label
|
22
24
|
end
|
23
25
|
!@search.nil? && options[:sortable] != false ? @context.sort_link(@search, sort_attribute, label) : label
|
24
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: th_simple_data_presentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Hinloopen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Collection of visual helpers
|
14
14
|
email:
|