active_admin-sortable_tree 0.2.0 → 0.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b3425c21fe12d0b3b87c2e2778c3f2ef4abe8c6
|
|
4
|
+
data.tar.gz: d73153d137682f9611e565c6b7310a3e9c844fc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13722ad3bed450a0a7bfcfffea340b1a7e1f82962359d55fc261772f707223dea373c961038b45a7e90c418631a0bed74410d575349d4a8cf0fc7df31168a3b3
|
|
7
|
+
data.tar.gz: 4781ab0a7b610d9baa571a06112421d76aa797f36a075bc5248e3d6e261ebc7d50a5595fb2e5cce6cd175237bdfe157c616ff69f43023472d16ed5ee03f5d794
|
data/Changelog.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.2.1] - 2015-04-15
|
|
8
|
+
|
|
9
|
+
- Suppress list styles on sortable indexes when batch actions are disabled.
|
|
10
|
+
([#48](https://github.com/zorab47/activeadmin-sortable-tree/issues/48)).
|
|
11
|
+
- Do not render the extra cell for batch actions when they are disabled, which
|
|
12
|
+
removes extra whitespace to the left of items.
|
|
13
|
+
|
|
7
14
|
## [0.2.0] - 2014-12-23
|
|
8
15
|
|
|
9
16
|
- Shrink gem file size by excluding spec files and dummy application.
|
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# ActiveAdmin::SortableTree
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/active_admin-sortable_tree)
|
|
4
|
-
[](https://travis-ci.org/zorab47/activeadmin-sortable-tree)
|
|
5
5
|
|
|
6
6
|
This gem adds a tree and a list view to your ActiveAdmin resource index, both
|
|
7
7
|
sortable via drag'n'drop.
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -19,10 +19,14 @@ body.active_admin
|
|
|
19
19
|
margin: 16px 0
|
|
20
20
|
|
|
21
21
|
ol
|
|
22
|
+
list-style-type: none
|
|
23
|
+
padding: 0
|
|
24
|
+
|
|
22
25
|
li
|
|
23
26
|
cursor: default !important
|
|
24
27
|
|
|
25
28
|
&.placeholder
|
|
29
|
+
height: 3em
|
|
26
30
|
background: lighten($cOddRowBackground, 10%)
|
|
27
31
|
border: 1px dashed $cRowSelected
|
|
28
32
|
+box-sizing(border-box)
|
|
@@ -117,8 +117,10 @@ module ActiveAdmin
|
|
|
117
117
|
li :id => "#{@resource_name}_#{item.id}" do
|
|
118
118
|
|
|
119
119
|
div :class => "item " << cycle("odd", "even", :name => "list_class") do
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
if active_admin_config.batch_actions.any?
|
|
121
|
+
div :class => "cell left" do
|
|
122
|
+
resource_selection_cell(item)
|
|
123
|
+
end
|
|
122
124
|
end
|
|
123
125
|
|
|
124
126
|
if options[:collapsible] && item.send(options[:children_method]).any?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_admin-sortable_tree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francesco Disperati
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
165
|
version: '0'
|
|
166
166
|
requirements: []
|
|
167
167
|
rubyforge_project:
|
|
168
|
-
rubygems_version: 2.
|
|
168
|
+
rubygems_version: 2.4.5
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: Add drag and drop sorting to ActiveAdmin resources
|