rails_admin_nestable 0.3.1 → 0.3.2
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/MIT-LICENSE +1 -1
- data/README.md +3 -3
- data/app/assets/javascripts/rails_admin/rails_admin_nestable.js.coffee +1 -1
- data/app/views/rails_admin/main/nestable.html.haml +12 -11
- data/config/locales/nestable.ru.yml +14 -0
- data/lib/rails_admin_nestable/version.rb +1 -1
- metadata +5 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad20ed53c12762241b3b761e9ea19f7cb9882431
|
4
|
+
data.tar.gz: 8b1912f3a811f4741e1f6799c37c7df3c63b168b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbef815453c46eb330fd0d445ffe5915b9bfdcbf8298e55533cae3def56040b86c39f92b379dc6e0633a900e423d236af1212556270e69cbe20c14a4f893217f
|
7
|
+
data.tar.gz: 8b97a67437d20e1e50c3d561aaf4b05de7932c96d0c4b1c14834e95051246dc1a6c43ebb8aa80ba01ffe27e74b1426b3a665add284641c51bf0d4ace7c5fc6b3
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rails Admin Nestable
|
2
2
|
|
3
|
-
RailsAdmin Drag and drop tree view for Ancestry gem
|
3
|
+
RailsAdmin Drag and drop tree view for `Ancestry` and `mongoid-ancestry` gem
|
4
4
|
|
5
5
|
Sample demo available at: https://github.com/dalpo/rails_admin_nestable_demo
|
6
6
|
|
@@ -12,7 +12,7 @@ Sample demo available at: https://github.com/dalpo/rails_admin_nestable_demo
|
|
12
12
|
To enable rails_admin_nestable, add the following to your `Gemfile`:
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
gem 'rails_admin_nestable', '~> 0.3.
|
15
|
+
gem 'rails_admin_nestable', '~> 0.3.2'
|
16
16
|
```
|
17
17
|
|
18
18
|
Add in your `config/initializers/rails_admin.rb` initializer the configuration:
|
@@ -152,7 +152,7 @@ Submitting a Pull Request:
|
|
152
152
|
## License
|
153
153
|
**This project rocks and uses MIT-LICENSE.**
|
154
154
|
|
155
|
-
Copyright
|
155
|
+
Copyright 2015 Andrea Dal Ponte
|
156
156
|
|
157
157
|
Permission is hereby granted, free of charge, to any person obtaining
|
158
158
|
a copy of this software and associated documentation files (the
|
@@ -9,7 +9,7 @@ jQuery ->
|
|
9
9
|
tree_nodes: serialized_tree
|
10
10
|
success: (data) ->
|
11
11
|
$flash = $('<div>')
|
12
|
-
.addClass('nestable-flash alert')
|
12
|
+
.addClass('nestable-flash alert alert-success')
|
13
13
|
.append( $('<button>').addClass('close').data('dismiss', 'alert').html('×') )
|
14
14
|
.append( $('<span>').addClass('body').html( data ) )
|
15
15
|
|
@@ -1,16 +1,17 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
-
|
4
|
-
.
|
5
|
-
%label
|
6
|
-
|
7
|
-
|
1
|
+
#rails_admin_nestable
|
2
|
+
- if [false, :only].exclude?(@options[:live_update])
|
3
|
+
.form-group
|
4
|
+
.checkbox
|
5
|
+
%label
|
6
|
+
= check_box_tag 'rails_admin_nestable_live_update'
|
7
|
+
= t('admin.actions.nestable.live_update')
|
8
|
+
.form-group
|
9
|
+
#tree_nodes.dd{ data: { update_path: nestable_path(model_name: @abstract_model), max_depth: tree_max_depth } }
|
8
10
|
%ol.dd-list
|
9
11
|
= nested_tree_nodes @tree_nodes
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
- if @options[:live_update] != :only
|
13
|
+
.form-group
|
14
|
+
%button.btn.btn-primary{ type: 'submit' }= t('admin.actions.nestable.update')
|
14
15
|
|
15
16
|
= stylesheet_link_tag 'rails_admin/rails_admin_nestable'
|
16
17
|
= javascript_include_tag 'rails_admin/jquery.nestable'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
ru:
|
2
|
+
admin:
|
3
|
+
actions:
|
4
|
+
nestable:
|
5
|
+
title: "Сортировка по %{model_label}"
|
6
|
+
menu: "Сортировка"
|
7
|
+
breadcrumb: "Сортировка"
|
8
|
+
link: "Сортировка"
|
9
|
+
bulk_link: "Сортировать выбранные %{model_label_plural}"
|
10
|
+
done: "Отсортирован"
|
11
|
+
success: "Успешно"
|
12
|
+
error: "Ошибка"
|
13
|
+
update: "Обновление"
|
14
|
+
live_update: "Живое обновление"
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_nestable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Dal Ponte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.1'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.1'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rails_admin
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +87,7 @@ files:
|
|
101
87
|
- config/locales/nestable.es.yml
|
102
88
|
- config/locales/nestable.it.yml
|
103
89
|
- config/locales/nestable.nl.yml
|
90
|
+
- config/locales/nestable.ru.yml
|
104
91
|
- config/locales/nestable.sv.yml
|
105
92
|
- config/locales/nestable.vi.yml
|
106
93
|
- lib/rails_admin_nestable.rb
|
@@ -130,8 +117,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
117
|
version: '0'
|
131
118
|
requirements: []
|
132
119
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.4.
|
120
|
+
rubygems_version: 2.4.6
|
134
121
|
signing_key:
|
135
122
|
specification_version: 4
|
136
123
|
summary: RailsAdmin Drag and drop tree view for Ancestry gem
|
137
124
|
test_files: []
|
125
|
+
has_rdoc:
|