rails_admin_nestable_sb 0.0.2 → 0.0.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0035cd7bd5c2a6cb59fa86f7508f2d24534b63a476fab4cc48dd4b1c360f2cbe
|
4
|
+
data.tar.gz: 5878e9b9eee6b5ee6ac81242877aacbac47e2ae57ab6381c40f0ef828f3d4274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7dc447ff293a6da40f8bd869bc0a185861fc4b88d06a1be1bd313c39b1e005d4fe3aa985a872d42aaf9126646326df393222ce15b5bc5430a07b69d804a96e
|
7
|
+
data.tar.gz: 3043ace0db5840dffa2159850d704e3dc91fb3b217582b38064d076040d2bb538abbab5da26d9272906f658af6488b044d62568c040d389e3665bac0ec6a2650
|
@@ -134,6 +134,12 @@
|
|
134
134
|
.dd3-handle:before { content: '≡'; display: block; position: absolute; left: 0; top: 3px; width: 100%; text-align: center; text-indent: 0; color: #fff; font-size: 20px; font-weight: normal; }
|
135
135
|
.dd3-handle:hover { background: #ddd; }
|
136
136
|
|
137
|
+
.dd3-content img {
|
138
|
+
margin-top: -5px;
|
139
|
+
margin-left: -5px;
|
140
|
+
margin-right: 5px;
|
141
|
+
}
|
142
|
+
|
137
143
|
.dd3-content .links {
|
138
144
|
width: auto;
|
139
145
|
}
|
@@ -37,7 +37,13 @@ module RailsAdminNestable
|
|
37
37
|
levelone = content_tag :div, 'drag', class: 'dd-handle dd3-handle'
|
38
38
|
levelone += content_tag :div, class: 'dd3-content' do
|
39
39
|
card_abstract = RailsAdmin::AbstractModel.new(to_model_name(@child_model.name))
|
40
|
-
|
40
|
+
# resize with dragonfly
|
41
|
+
if !card.thumbnail.nil?
|
42
|
+
thumbnail_tag = image_tag(card.thumbnail.thumb('25x25>').url)
|
43
|
+
else
|
44
|
+
thumbnail_tag = ""
|
45
|
+
end
|
46
|
+
content = link_to thumbnail_tag + card.punchline, edit_path(card_abstract, card.id)
|
41
47
|
content += content_tag :div, action_links(card_abstract, card), class: 'pull-right links'
|
42
48
|
end
|
43
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_nestable_sb
|
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
|
- Andrea Dal Ponte
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-01-
|
12
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails_admin
|