zable 0.0.4 → 0.0.5
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.
- data/lib/zable/html.rb +5 -5
- metadata +1 -1
data/lib/zable/html.rb
CHANGED
@@ -32,7 +32,7 @@ module Zable
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def header_cell_id(klass, attr)
|
35
|
-
"#{idify klass.name}
|
35
|
+
"#{idify klass.name}_#{idify attr[:name]}".html_safe
|
36
36
|
end
|
37
37
|
|
38
38
|
def current_url
|
@@ -57,7 +57,7 @@ module Zable
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def sort_arrow_image_file(attr)
|
60
|
-
attr[:sort_order] == :desc ? "
|
60
|
+
attr[:sort_order] == :desc ? "ascending.gif" : "descending.gif"
|
61
61
|
end
|
62
62
|
|
63
63
|
def header_cell_href(attr, columns)
|
@@ -124,11 +124,11 @@ module Zable
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def body_row_id(elem)
|
127
|
-
"#{idify_class_name(elem)}
|
127
|
+
"#{idify_class_name(elem)}_#{elem.id}".html_safe
|
128
128
|
end
|
129
129
|
|
130
130
|
def body_cell_id(ac, elem)
|
131
|
-
"#{idify_class_name(elem)}
|
131
|
+
"#{idify_class_name(elem)}_#{elem.id}_#{idify ac[:name]}".html_safe
|
132
132
|
end
|
133
133
|
|
134
134
|
def body_row_class
|
@@ -141,7 +141,7 @@ module Zable
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def idify(val)
|
144
|
-
val.to_s.demodulize.underscore
|
144
|
+
val.to_s.demodulize.underscore
|
145
145
|
end
|
146
146
|
|
147
147
|
def tag_args(args)
|