table_sortable 0.4.5 → 0.4.6
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.
- checksums.yaml +4 -4
- data/lib/table_sortable/version.rb +1 -1
- data/lib/table_sortable/view_helpers.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c897aef9c9560c97f4e86d21c4b3c7748146930
|
4
|
+
data.tar.gz: 35bbcc31b6cee05c2bbd2487e9e220105431d3fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d17f0dd89132fac1362a5440c0725f95be281f267893e9c63e9bec86cb2b4c990d7f71327d2547998c8098171da5a03034808bb5a98be631b2dba1d23e1f60
|
7
|
+
data.tar.gz: '060482b829d5c3fe9721e9c163f30e405a671db9d75b5de0aff1bd019045ca91500443393b4f146ba985117ee2638da1bc94408069c8dc0bdc58dd85c4c2045b'
|
@@ -39,10 +39,10 @@ module TableSortable
|
|
39
39
|
end
|
40
40
|
th_options['data-value'] = filter.default_value if filter.default_value
|
41
41
|
th_options.merge!(html_options)
|
42
|
-
view_path =
|
43
|
-
view_filename = "#{col.template}_header.html"
|
44
|
-
if Dir.glob(File.join(
|
45
|
-
render
|
42
|
+
view_path = col.template_path || File.join(Rails.root, 'app', 'views', "#{controller_path}/table_sortable/")
|
43
|
+
view_filename = "_#{col.template}_header.html"
|
44
|
+
if Dir.glob(File.join(view_path, "#{view_filename}.*")).any?
|
45
|
+
render file: File.join(view_path, view_filename),
|
46
46
|
locals: {label: label,
|
47
47
|
column: col,
|
48
48
|
index: index}
|
@@ -61,10 +61,10 @@ module TableSortable
|
|
61
61
|
td_options = {}
|
62
62
|
td_options['data-text'] = value if value != content
|
63
63
|
td_options.merge!(html_options)
|
64
|
-
view_path =
|
65
|
-
view_filename = "#{col.template}_column.html"
|
66
|
-
if Dir.glob(File.join(
|
67
|
-
render
|
64
|
+
view_path = col.template_path || File.join(Rails.root, 'app', 'views', "#{controller_path}/table_sortable/")
|
65
|
+
view_filename = "_#{col.template}_column.html"
|
66
|
+
if Dir.glob(File.join(view_path, "#{view_filename}.*")).any?
|
67
|
+
render file: File.join(view_path, view_filename),
|
68
68
|
locals: {content: content,
|
69
69
|
value: value,
|
70
70
|
source: record,
|