bullet_train-themes 1.7.17 → 1.7.19
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: 37312f14389917211606fc29756ea3e3b806ef8a6db0f6f661ecbc48dfbd2eec
|
4
|
+
data.tar.gz: 33920546e7f0c5c9ddbd223570e8e5cd586e7e2231355b9c77615f3a4946f7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4837b93e513540de4e02bc9ea62cd903729f8791aaf92b2a689f375700e749c8b60a8311e18252ec6249abe6c1eae6556267e2eabdedaf018771a92d97d78d
|
7
|
+
data.tar.gz: 97f716d212c27c8837612e87ccba65612f840b10f86451266d7fd0a06c2b26ccf2cec00cf543de8e48a43238b9c5a21b03e494183ea3f5e19570b79dd7e71f09
|
@@ -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 %>
|
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.
|
4
|
+
version: 1.7.19
|
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
|
+
date: 2024-07-16 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
|