viniBaxter-field-active_storage 7.0.0 → 8.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: 73dfc5dceefddd6a09069187c61ad591562dd5ff78ccd0d91c818fbb1e227896
4
- data.tar.gz: fe2be8a93954216af8d6435bf7250090a86ce8750ddd3eae67ffa25af1fe4615
3
+ metadata.gz: f81a22f2a62e4c0ee2372200e7760d61a2a3ea530bb475860434467d7a4c3486
4
+ data.tar.gz: eb0c1f99c98ecea937e74c7e4a432a5304dbb1ec5307ea05ff3243181ff70c70
5
5
  SHA512:
6
- metadata.gz: 72e96d3be372cf61c2a297005f201411bd36f958daad239bbe0de83afeee0442361188f3ccde712f83fbd9328e51410d0f8dded44a68f6e10a6898483a135266
7
- data.tar.gz: 981a00e8e41c6fe00cc3500305de74e994e6194d177c2037c5ddacd40a098de94b233491cdcf1f945f4277f9e2238b11f7f7c3c277be1946f71dd6f9b0c18a09
6
+ metadata.gz: 579e7f7d7ecb23205b8b98a10bc82893b9ceaacccd19ef4b129be1b0525006516a80e8b66575c26ca7533c9277411d9729649b1ec8228ac0e1bcdfd8b589b76c
7
+ data.tar.gz: fba5c8711e92b98cd9aa7b3e67b5c0bf7b38b7380116d7718d4daa90eabbb17251f4cba54fcf0a102ee7d35c71f8a2726211c56303a7a2f4fef267b3491fd691
@@ -28,35 +28,37 @@ controlled via a boolean local variable.
28
28
  <% if attachment.image? and attachment.variable? and !field.url_only? %>
29
29
  <%#= link_to(field.blob_url(attachment), title: attachment.filename) do %>
30
30
  <%#= image_tag(field.variant(attachment, resize_to_limit: image_size)) %>
31
- <%= link_to(field.blob_url(attachment), title: attachment.filename, class:'avatar avatar-sm mr-2') do %>
32
- <%= image_tag attachment, class:"avatar-img rounded-circle" %>
33
- <% end %>
34
- <% elsif attachment.image? and !field.url_only? %>
35
- <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
36
- <%= image_tag(field.url(attachment)) %>
37
- <% end %>
38
- <% elsif attachment.video? and attachment.previewable? and !field.url_only? %> <%# if ffmpeg is installed %>
39
- <%= video_tag(field.url(attachment), poster: field.preview(attachment, resize_to_limit: image_size), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
40
- <% elsif attachment.video? and !field.url_only? %>
41
- <%= video_tag(field.url(attachment), controls: true, autobuffer: true, style: "width: 100%; height: auto;") %>
42
- <% elsif attachment.audio? and !field.url_only? %>
43
- <%= audio_tag(field.url(attachment), autoplay: false, controls: true) %>
44
- <% else %>
45
- <%= link_to(field.blob_url(attachment), title: attachment.filename) do %>
46
- <% if attachment.previewable? and !field.url_only? %>
47
- <%= image_tag(field.preview(attachment, resize_to_limit: [595, 842])) %>
48
- <% else %>
49
- <%= attachment.filename %>
31
+ <%#= link_to(field.blob_url(attachment), title: attachment.filename, class:'avatar avatar-sm mr-2') do %>
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 %>
52
+ <% end %>
50
53
  <% end %>
51
54
  <% end %>
52
- <% end %>
53
- <% if removable %>
54
- <%#= link_to 'Remove', field.destroy_path(field, attachment), method: :delete, class: 'remove-attachment-link' %>
55
- <%= link_to 'Remove', destroy_url,
55
+ <% if removable %>
56
+ <%#= link_to 'Remove', field.destroy_path(field, attachment), method: :delete, class: 'remove-attachment-link' %>
57
+ <%= link_to 'Remove', destroy_url,
56
58
  method: :delete,
57
59
  # data: { confirm: t("administrate.actions.confirm") },
58
60
  remote: true,
59
61
  class: 'remove-attachment-link'
60
62
  %>
61
- <hr>
62
- <% end %>
63
+ <hr>
64
+ <% 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 = "7.0.0"
5
+ gem.version = "8.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viniBaxter-field-active_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - viny baxter