viniBaxter-field-active_storage 8.0.0 → 9.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: c6d5ca940790c25b14fcae6e4fbbda5ba4e9a9e93b894a2b9d2460f1b8f923a2
|
4
|
+
data.tar.gz: ae3119f47aa46ec39d218d0781cdc8581e3bdc9ed7c89d7eca56988d6e78e293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
64
|
-
|
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 = "
|
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:
|
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-
|
11
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|