administrate-field-active_storage 0.1.5 → 0.1.6
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: 0b058fa8ec0f06a6ed219895cd2c1556c3a0932b
|
4
|
+
data.tar.gz: 04df4bed024e9b3105ae3e6684090bdf497f3092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ed48e470ee5ac246d114e6c152732c4ff24eb7dc81c017477cee1f8f03d09af02cd6be15b1e3a87e9612957b58250cc2c0d974fb8fe9f5b08df2ff24900ebd
|
7
|
+
data.tar.gz: c930ba8c28b28caae7ae888ec2b01c5c56c71e92c6b673aee459c0610f032d7c8078d7091f7ce5d1391637873ea50c8d4d8ee5143a76ec53599e3c90c44f63d6
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "administrate-field-active_storage"
|
5
|
-
gem.version = "0.1.
|
5
|
+
gem.version = "0.1.6"
|
6
6
|
gem.authors = ["Hamad AlGhanim"]
|
7
7
|
gem.email = ["hamadyalghanim@gmail.com"]
|
8
8
|
gem.homepage = "https://github.com/Dreamersoul/administrate-field-active_storage"
|
@@ -14,13 +14,11 @@ By default, the attribute is rendered as an image tag.
|
|
14
14
|
|
15
15
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
|
16
16
|
%>
|
17
|
+
<%
|
18
|
+
attachments = Array(field.many? ? field.attachments : field.data)
|
19
|
+
%>
|
17
20
|
<% if field.attached? %>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<br/>
|
22
|
-
<% end %>
|
23
|
-
<% else %>
|
24
|
-
<%= render :partial => 'fields/active_storage/item', locals: { field: field, attachment: field.data } %>
|
25
|
-
<% end %>
|
21
|
+
<%= pluralize(attachments.count, 'Attached file') %>
|
22
|
+
<% else %>
|
23
|
+
0 Attached files
|
26
24
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-active_storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamad AlGhanim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|