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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f81a22f2a62e4c0ee2372200e7760d61a2a3ea530bb475860434467d7a4c3486
|
4
|
+
data.tar.gz: eb0c1f99c98ecea937e74c7e4a432a5304dbb1ec5307ea05ff3243181ff70c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
62
|
-
|
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 = "
|
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"
|