trestle-active_storage 3.0.0 → 3.0.1

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: cb04373f55898190ff541b714e60a76339a9973d6c685e0361d81372e3ac51f7
4
- data.tar.gz: 7c21f06234ffa638875cf25053ab5cc4748a2b754ae7c26177dc989f279725b5
3
+ metadata.gz: 659e5f87dc5831589e18e8f1720f615a2449d6e41a5a68a9355dc15049683bb4
4
+ data.tar.gz: 77bb915b65b473bdf8696e49518c15fe5d6e4806983015ae2336c83de5d225e9
5
5
  SHA512:
6
- metadata.gz: 1f64a0a1b8b7f3c473fc52c0bc8750f7b30ae37781298963e00a66b9162422d6234eb09d3f5164b4349150854b8d622da4c2aaa770b25d1d7305e7d818844b5a
7
- data.tar.gz: d6b98ed4b70d17116d477ba9bcb77ffc56de015918c3bf0de9acb4ddf843e56db6187999d25d591521c4dfabf32a30b323a534729c47c4d48ed0bcef641fb15d
6
+ metadata.gz: bf8a035c55e8354891799b1d349798f551e59ff2d00f89e8471ec4c2d733befcaf7a0a288b1f60aa9cee203d303062545558963e21681c9cde7390dc2e0acdc2
7
+ data.tar.gz: 98878aeb47816a6ed4e311bf9e0bd0dc76fda5fecf4504c9c5d2c0ca2b4cbb9b5f5db41cd3a870ffaeecfe0ef58240049a2df430e405bdd0422a3724f3594254
data/README.md CHANGED
@@ -62,6 +62,7 @@ Thanks goes out to these wonderful people ([emoji key](https://allcontributors.o
62
62
  <td align="center"><a href="https://github.com/hoenth"><img src="https://avatars2.githubusercontent.com/u/62977?v=4" width="100px;" alt=""/><br /><sub><b>Tom Hoen</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Ahoenth" title="Bug reports">🐛</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=hoenth" title="Code">💻</a></td>
63
63
  <td align="center"><a href="https://github.com/basharabdullah"><img src="https://avatars3.githubusercontent.com/u/167290?v=4" width="100px;" alt=""/><br /><sub><b>Bashar Abdullah</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Abasharabdullah" title="Bug reports">🐛</a></td>
64
64
  <td align="center"><a href="https://github.com/McRipper"><img src="https://avatars2.githubusercontent.com/u/58031?v=4" width="100px;" alt=""/><br /><sub><b>Emanuele Barban</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=McRipper" title="Code">💻</a></td>
65
+ <td align="center"><a href="https://github.com/oleg-kiviljov"><img src="https://avatars3.githubusercontent.com/u/10065250?v=4" width="100px;" alt=""/><br /><sub><b>Oleg Kiviljov</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Aoleg-kiviljov" title="Bug reports">🐛</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=oleg-kiviljov" title="Code">💻</a></td>
65
66
  </tr>
66
67
  </table>
67
68
 
@@ -10,17 +10,18 @@
10
10
  <% elsif attachment.variable? %>
11
11
  <%= link_to image_tag(main_app.url_for(attachment.variant(resize: "300x300>")), class: "active-storage__image"),
12
12
  main_app.rails_blob_path(attachment, disposition: "attachment") %>
13
- <% else %>
13
+ <% elsif attachment.persisted? %>
14
14
  <%= link_to main_app.rails_blob_path(attachment, disposition: "attachment"), class: "btn btn-info" do %>
15
15
  <i class="fa fa-download"></i>
16
16
  <span class="btn-label">Download <%= field_name %></span>
17
17
  <% end %>
18
- <% end %>
19
-
20
- <div>
18
+ <div>
19
+ <small><%= attachment.blob.filename %></small>
20
+ <%= builder.check_box("delete_#{field_name}_#{attachment.blob_id}", label: "Delete this #{field_name.to_s.singularize}") %>
21
+ </div>
22
+ <% else %>
21
23
  <small><%= attachment.blob.filename %></small>
22
- <%= builder.check_box("delete_#{field_name}_#{attachment.blob_id}", label: "Delete this #{field_name.to_s.singularize}") %>
23
- </div>
24
+ <% end %>
24
25
  </div>
25
26
  <hr>
26
27
  <% end %>
@@ -29,7 +30,4 @@
29
30
 
30
31
  <%= builder.raw_file_field(field_name, class: 'active-storage__field', multiple: true, direct_upload: true) %>
31
32
  <% end %>
32
- </div>
33
-
34
-
35
-
33
+ </div>
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ActiveStorage
3
- VERSION = '3.0.0'
3
+ VERSION = '3.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-active_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails