viniBaxter-field-active_storage 9.0.0 → 10.0.0

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
  SHA256:
3
- metadata.gz: c6d5ca940790c25b14fcae6e4fbbda5ba4e9a9e93b894a2b9d2460f1b8f923a2
4
- data.tar.gz: ae3119f47aa46ec39d218d0781cdc8581e3bdc9ed7c89d7eca56988d6e78e293
3
+ metadata.gz: 452afc0ba0c4b88b5b123ff9e50b9308b7085d1e2b6c257009dd4023f42b9af4
4
+ data.tar.gz: 3c66ceeafb4c94b38542374c9dfd5d9c1ddb25e2460ff61cd02dbf08e8c57a0d
5
5
  SHA512:
6
- metadata.gz: 47d56263a5fc5ee206bc848ffe0dea05a19b9df516d1f74bdd463aa335faa49d818046d2ebdbda6634e465293e88c85779a12465278765e902267d34fc55933f
7
- data.tar.gz: 58dd1300740f61194ab4574f18d38f9333bafffce2d9066cb1ac9722ec9f99c4010c6cc8a8f889cbfb544b46a19750e321ec3a38550e7f400a84b7d7e00cf522
6
+ metadata.gz: d902ff278242b54a6cb5f4fd6d5d5d668a7aba2cbf1c4da99b2e0c3e28019110759e371bdc70d58d54e53b7eeee8e5307e75e22fe52984d605874e3f29cf047e
7
+ data.tar.gz: a0afc76f02abd9c955245293321ddbe17e15734d304edf915173f4b27b72dcb1353576c4806b79a2530166ba83c5f22fc9a3f14b118bca94cb6335d760aa62f5
@@ -8,11 +8,12 @@
8
8
  data-dropzonegem-add-remove-links="hello">
9
9
  <%= f.file_field field.attribute, multiple: field.many?, direct_upload: field.direct?, data: { target: 'dropzonegem.inputdropzonegem' } %>
10
10
  <div class="dropzone-msg dz-message needsclick text-gray-600">
11
- <h3 class="dropzone-msg-title">Drag & Drop here to upload or click here to browse</h3>
11
+ <h3 class="dropzone-msg-title">Drag & Drop ici ou cliquer pour selectionner</h3>
12
12
  <span class="dropzone-msg-desc text-sm">
13
13
  <%= field.drop_max_file_size? %>
14
14
  MB par fichier. Les fichiers autorisés :
15
- <%= field.drop_accepted_files? %>. Un maximum de
15
+ <%= field.drop_accepted_files? %>. <br>
16
+ Un maximum de
16
17
  <%= field.drop_max_file? %> fichiers autorisés.
17
18
  </span>
18
19
  </div>
@@ -28,7 +28,7 @@ By default, the attribute is rendered as an image tag.
28
28
  <%= render partial: 'fields/active_storage/item',
29
29
  locals: {
30
30
  field: field,
31
- attachment: attachments[0],
31
+ attachment: field.data,
32
32
  image_size: [50, 50]
33
33
  } %>
34
34
  <% end %>
@@ -20,7 +20,7 @@ module Administrate
20
20
  end
21
21
 
22
22
  def index_display_count?
23
- options.fetch(:index_display_count) { attachments.present? && attachments.count != 1 }
23
+ options.fetch(:index_display_count) { attached? && attachments.count != 1 }
24
24
  end
25
25
 
26
26
  def show_preview_size
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "viniBaxter-field-active_storage"
5
- gem.version = "9.0.0"
5
+ gem.version = "10.0.0"
6
6
  gem.authors = ["viny baxter"]
7
7
  gem.email = ["vincent.viricel@gmail.com"]
8
8
  gem.homepage = "https://github.com/Dreamersoul/administrate-field-active_storage"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viniBaxter-field-active_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - viny baxter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate