bullet_train-themes 1.7.17 → 1.7.18

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: 97706089d0a46226a1af3f0d7bb8c70a618bb3095b4eeab1cabe1af4cbf5fec3
4
- data.tar.gz: 216fc91bd2b9b48bc303769603747ef14a8e031140dba30d9a346f8dcf2d0e5e
3
+ metadata.gz: ecf4296894135cca214a929fc0fdbd05c034b639c3152493de5285cb93ffbaf5
4
+ data.tar.gz: '0453972e193889809e822925cdd303de65d57433765cc589c44aa1bfa03c35e5'
5
5
  SHA512:
6
- metadata.gz: 3c4884c49c2ee57d8fd39888ddceb18d7e1fa3ae119e86d674a8ed92bd92664bafe8355c5f505d94baa9757d42a35fcff2dfc177ec2cdad967549a4135697744
7
- data.tar.gz: 6b4556e573a8a0299c6e963ec711aed9d69bc96e7051ca2b0fcecffce5781a64853a2f07d4c501ff6da7dd36c3e2425e8a8730e6660e463a702fe0eb1a6aae63
6
+ metadata.gz: efbb56e43116baf7f9605599071d5a24b908f3461399c0ecb3895be92b819b14f41cb1ad21f6b40864e95937117ef95ee736378fd8a555af18540afd91c5d682
7
+ data.tar.gz: 8b066ac2063171e14571b8bd1ec9e8e6d0e1d748b1d7d40e359cc9357f880765ca5d01b2e168b5fdc5c35b37bd3456fa7625c162bca6998cf2ece36075127500
@@ -0,0 +1,16 @@
1
+ <% object ||= current_attributes_object %>
2
+ <% strategy ||= current_attributes_strategy || :none %>
3
+ <% url ||= nil %>
4
+ <% options ||= {} %>
5
+ <% options[:height] ||= 200 %>
6
+
7
+ <% if cloudinary_enabled? %>
8
+ <%# TODO: How do we attach mutliple cloundinary images? %>
9
+ <%= cloudinary_image_tag object.public_send(attribute), options %>
10
+ <% else %>
11
+ <% if object.public_send(attribute).attached? %>
12
+ <% object.send(attribute).each do |image| %>
13
+ <%= image_tag photo_url_for_active_storage_attachment(image, options) %>
14
+ <% end %>
15
+ <% end %>
16
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.7.17"
3
+ VERSION = "1.7.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.17
4
+ version: 1.7.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -93,6 +93,7 @@ files:
93
93
  - app/views/themes/base/attributes/_has_many.html.erb
94
94
  - app/views/themes/base/attributes/_html.html.erb
95
95
  - app/views/themes/base/attributes/_image.html.erb
96
+ - app/views/themes/base/attributes/_images.html.erb
96
97
  - app/views/themes/base/attributes/_number.html.erb
97
98
  - app/views/themes/base/attributes/_option.html.erb
98
99
  - app/views/themes/base/attributes/_options.html.erb