viniBaxter-field-active_storage 8.0.0 → 9.0.0

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: f81a22f2a62e4c0ee2372200e7760d61a2a3ea530bb475860434467d7a4c3486
4
- data.tar.gz: eb0c1f99c98ecea937e74c7e4a432a5304dbb1ec5307ea05ff3243181ff70c70
3
+ metadata.gz: c6d5ca940790c25b14fcae6e4fbbda5ba4e9a9e93b894a2b9d2460f1b8f923a2
4
+ data.tar.gz: ae3119f47aa46ec39d218d0781cdc8581e3bdc9ed7c89d7eca56988d6e78e293
5
5
  SHA512:
6
- metadata.gz: 579e7f7d7ecb23205b8b98a10bc82893b9ceaacccd19ef4b129be1b0525006516a80e8b66575c26ca7533c9277411d9729649b1ec8228ac0e1bcdfd8b589b76c
7
- data.tar.gz: fba5c8711e92b98cd9aa7b3e67b5c0bf7b38b7380116d7718d4daa90eabbb17251f4cba54fcf0a102ee7d35c71f8a2726211c56303a7a2f4fef267b3491fd691
6
+ metadata.gz: 47d56263a5fc5ee206bc848ffe0dea05a19b9df516d1f74bdd463aa335faa49d818046d2ebdbda6634e465293e88c85779a12465278765e902267d34fc55933f
7
+ data.tar.gz: 58dd1300740f61194ab4574f18d38f9333bafffce2d9066cb1ac9722ec9f99c4010c6cc8a8f889cbfb544b46a19750e321ec3a38550e7f400a84b7d7e00cf522
@@ -30,35 +30,40 @@ controlled via a boolean local variable.
30
30
  <%#= image_tag(field.variant(attachment, resize_to_limit: image_size)) %>
31
31
  <%#= link_to(field.blob_url(attachment), title: attachment.filename, class:'avatar avatar-sm mr-2') do %>
32
32
  <%#= image_tag attachment, class:"avatar-img rounded-circle" %>
33
- <%= link_to(field.blob_url(attachment), title: attachment.filename, class:'avatar avatar-sm mr-2') do %>
34
- <%= image_tag(field.variant(attachment, resize_to_limit: image_size, quality: 100, :loader => {strip: true, type: "TrueColorMatte"}), class:"avatar-img rounded-circle") %>
35
- <% end %>
36
- <% elsif attachment.image? and !field.url_only? %>
37
- <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
38
- <%= image_tag(field.url(attachment)) %>
39
- <% end %>
40
- <% elsif attachment.video? and attachment.previewable? and !field.url_only? %> <%# if ffmpeg is installed %>
41
- <%= video_tag(field.url(attachment), poster: field.preview(attachment, resize_to_limit: image_size), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
42
- <% elsif attachment.video? and !field.url_only? %>
43
- <%= video_tag(field.url(attachment), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
44
- <% elsif attachment.audio? and !field.url_only? %>
45
- <%= audio_tag(field.url(attachment), autoplay: false, controls: true) %>
46
- <% else %>
47
- <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
48
- <% if attachment.previewable? and !field.url_only? %>
49
- <%= image_tag(field.preview(attachment, resize_to_limit: [595, 842])) %>
50
- <% else %>
51
- <%= attachment.filename %>
33
+ <!-- last option/ .comment -->
34
+ <%#= link_to(field.blob_url(attachment), title: attachment.filename, class:'avatar avatar-sm mr-2') do %>
35
+ <%#= image_tag(field.variant(attachment, resize_to_limit: image_size, quality: 100, :loader => {strip: true, type: "TrueColorMatte"}), class:"avatar-img rounded-circle") %>
36
+ <%# end %>
37
+ <!-- end of last option/ .comment -->
38
+ <div class="avatar avatar-lg">
39
+ <%= image_tag field.variant(attachment,resize: "400x400"), class:"avatar-img rounded" %>
40
+ </div>
41
+ <% elsif attachment.image? and !field.url_only? %>
42
+ <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
43
+ <%= image_tag(field.url(attachment)) %>
44
+ <% end %>
45
+ <% elsif attachment.video? and attachment.previewable? and !field.url_only? %> <%# if ffmpeg is installed %>
46
+ <%= video_tag(field.url(attachment), poster: field.preview(attachment, resize_to_limit: image_size), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
47
+ <% elsif attachment.video? and !field.url_only? %>
48
+ <%= video_tag(field.url(attachment), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
49
+ <% elsif attachment.audio? and !field.url_only? %>
50
+ <%= audio_tag(field.url(attachment), autoplay: false, controls: true) %>
51
+ <% else %>
52
+ <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
53
+ <% if attachment.previewable? and !field.url_only? %>
54
+ <%= image_tag(field.preview(attachment, resize_to_limit: [595, 842])) %>
55
+ <% else %>
56
+ <%= attachment.filename %>
57
+ <% end %>
52
58
  <% end %>
53
59
  <% end %>
54
- <% end %>
55
- <% if removable %>
56
- <%#= link_to 'Remove', field.destroy_path(field, attachment), method: :delete, class: 'remove-attachment-link' %>
57
- <%= link_to 'Remove', destroy_url,
60
+ <% if removable %>
61
+ <%#= link_to 'Remove', field.destroy_path(field, attachment), method: :delete, class: 'remove-attachment-link' %>
62
+ <%= link_to 'Remove', destroy_url,
58
63
  method: :delete,
59
64
  # data: { confirm: t("administrate.actions.confirm") },
60
65
  remote: true,
61
66
  class: 'remove-attachment-link'
62
67
  %>
63
- <hr>
64
- <% end %>
68
+ <hr>
69
+ <% end %>
@@ -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 = "8.0.0"
5
+ gem.version = "9.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: 8.0.0
4
+ version: 9.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-06-30 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate