active_admin-awesome_nested_set 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b4a64c0bf017f17fbaab722bd83ec1b59cbba37
|
4
|
+
data.tar.gz: 91e7fa3009ba145c9ebda3223bdc21e9aa20bb78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225df1e178658d01875142257078aae87dbcd177bf15043c428258c3e048aa2c7bc77f54e456ab4eda07ca4df0e802a6d78109ebc38f37e2fb1742d70dd688a5
|
7
|
+
data.tar.gz: 5f59e1b3582d66ce7ee7f3bebb8b986be002c3a8f74c08e2376867982b6a1f8a459c22ea2b6426bf28cd62d8426b534ca6caebe623bcba27328e98029a5b5bd0
|
@@ -0,0 +1,10 @@
|
|
1
|
+
ru:
|
2
|
+
awesome_nested_set:
|
3
|
+
moved_to_top: "%{resource} перемещен(a) на первую позицию"
|
4
|
+
moved_up: "%{resource} перемещен(a) вверх"
|
5
|
+
moved_down: "%{resource} перемещен(a) вниз"
|
6
|
+
moved_to_bottom: "%{resource} перемещен(a) на последнюю позицию"
|
7
|
+
illegal_move_to_top: "%{resource} переместить на первую позицию не удалось"
|
8
|
+
illegal_move_up: "%{resource} переместить вверх не удалось"
|
9
|
+
illegal_move_down: "%{resource} переместить вниз не удалось"
|
10
|
+
illegal_move_to_bottom: "%{resource} переместить на последнюю позицию не удалось"
|
@@ -47,10 +47,10 @@ module ActiveAdmin
|
|
47
47
|
# end
|
48
48
|
def sortable_tree_columns
|
49
49
|
column "▲".html_safe do |resource|
|
50
|
-
link_to("▲".html_safe, self.send(:"
|
50
|
+
link_to("▲".html_safe, self.send(:"move_up_#{ActiveAdmin.application.default_namespace}_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.left_sibling
|
51
51
|
end
|
52
52
|
column "▼".html_safe do |resource|
|
53
|
-
link_to("▼".html_safe, self.send(:"
|
53
|
+
link_to("▼".html_safe, self.send(:"move_down_#{ActiveAdmin.application.default_namespace}_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.right_sibling
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -22,10 +22,10 @@ module ActiveAdmin
|
|
22
22
|
def get_nested_set class_or_item
|
23
23
|
result = []
|
24
24
|
|
25
|
-
roots = class_or_item.respond_to?(:
|
25
|
+
roots = class_or_item.respond_to?(:roots) ? class_or_item.roots : class_or_item
|
26
26
|
|
27
27
|
items = roots.each do |root|
|
28
|
-
result += root.self_and_descendants.compact
|
28
|
+
result += root.self_and_descendants.to_a.compact
|
29
29
|
end
|
30
30
|
|
31
31
|
result
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin-awesome_nested_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- Rakefile
|
239
239
|
- config/locales/active_admin-awesome_nested_set.de.yml
|
240
240
|
- config/locales/active_admin-awesome_nested_set.en.yml
|
241
|
+
- config/locales/active_admin-awesome_nested_set.ru.yml
|
241
242
|
- lib/active_admin-awesome_nested_set.rb
|
242
243
|
- lib/active_admin/awesome_nested_set/engine.rb
|
243
244
|
- lib/active_admin/awesome_nested_set/helper.rb
|
@@ -263,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
264
|
version: '0'
|
264
265
|
requirements: []
|
265
266
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.4.
|
267
|
+
rubygems_version: 2.4.8
|
267
268
|
signing_key:
|
268
269
|
specification_version: 4
|
269
270
|
summary: Provides sortable_columns helper in active admin resource definitions.
|