rich_table_component 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
@@ -198,14 +198,19 @@ module ComponentHelper
|
|
198
198
|
end
|
199
199
|
|
200
200
|
def row_number local_var_assignments
|
201
|
-
counter = local_var_assignments["#{local_var_assignments[:rtc_partial].split('/').last}_counter".to_sym].presence || 0
|
202
|
-
offset = local_var_assignments[:offset]
|
203
201
|
result = '<td class="numeric rtc_row_number">'
|
204
|
-
|
205
|
-
|
202
|
+
|
203
|
+
if local_var_assignments[:rtc_partial].present?
|
204
|
+
counter = local_var_assignments["#{local_var_assignments[:rtc_partial].split('/').last}_counter".to_sym].presence || 0
|
205
|
+
offset = local_var_assignments[:offset]
|
206
|
+
if offset
|
207
|
+
result << "#{counter + offset + 1}."
|
208
|
+
else
|
209
|
+
result << '(baru)'
|
210
|
+
end
|
206
211
|
else
|
207
|
-
|
208
|
-
end
|
212
|
+
result << '(update)'
|
213
|
+
end
|
209
214
|
result << '</td>'
|
210
215
|
|
211
216
|
result.html_safe
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_table_component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass-rails
|