sortable_tree_rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/sortable_tree_helper.rb +3 -1
- data/lib/sortable_tree_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb306bf3eaf0b949fb076e0a1629925cc35988ca
|
4
|
+
data.tar.gz: a93965d1278bde9cab39d49815f6bb939d3e6645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05fc66b86daf4b8219629b9044d7ff674162439731fde56af088de871808186d16892934e24b9c02c00c40482b1eceba7c884af31733889e732825e5177a47cf
|
7
|
+
data.tar.gz: 79193480048d6240e2f18fb303b6331d0ff62c2dda720947f7a0ec987ce6e63a8806353195abe210051a933a767f58c1aee557f39e4d89cbd8ec80b5432cabfd
|
@@ -11,10 +11,12 @@ module SortableTreeHelper
|
|
11
11
|
content_tag(:li, {id: "cat_#{item.id}"} ) do
|
12
12
|
#(item.title + sortable_tree_render_nested_groups(sub_groups, opts)).html_safe
|
13
13
|
|
14
|
+
title = item.send(opts[:name_method] || :name) || ''
|
15
|
+
|
14
16
|
s = content_tag(:div, {class: 'item'}) do
|
15
17
|
(
|
16
18
|
#'<div class="cell left"><i class="handle"></i></div>'\
|
17
|
-
'<h3 class="cell left">'+
|
19
|
+
'<h3 class="cell left">'+title+'</h3>'\
|
18
20
|
'<div class="cell right controls">'+sortable_tree_build_actions(item, opts)+'</div>'
|
19
21
|
).html_safe
|
20
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sortable_tree_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Ivak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|