bullet_train-themes 1.7.15 → 1.7.17

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: c62e95ab4b0d186ab6a1643a70a893685bc4ccb5f1a72de2ff056bca68bda8d2
4
- data.tar.gz: 7d4ddc45e8c4f78f29409dd160abbd62dad73eb40db69bdd6666e0b89990b1de
3
+ metadata.gz: 97706089d0a46226a1af3f0d7bb8c70a618bb3095b4eeab1cabe1af4cbf5fec3
4
+ data.tar.gz: 216fc91bd2b9b48bc303769603747ef14a8e031140dba30d9a346f8dcf2d0e5e
5
5
  SHA512:
6
- metadata.gz: ff3580cb01146b38cc78f678192ec9bf228735cda0eaa1fd34267b000501b7918509e2040ec2a92799e8153e7851daf25e8111fd3578a8c8eb9522f5269b4323
7
- data.tar.gz: 0763af09f06ba2e28af4488e110cf6520a8c2cfaae3859b82b1dda102a20b0756a3314eccf4bfa5b7886af4aa198eb76bc872c46242a1b5c49dcfb687d911935
6
+ metadata.gz: 3c4884c49c2ee57d8fd39888ddceb18d7e1fa3ae119e86d674a8ed92bd92664bafe8355c5f505d94baa9757d42a35fcff2dfc177ec2cdad967549a4135697744
7
+ data.tar.gz: 6b4556e573a8a0299c6e963ec711aed9d69bc96e7051ca2b0fcecffce5781a64853a2f07d4c501ff6da7dd36c3e2425e8a8730e6660e463a702fe0eb1a6aae63
@@ -2,7 +2,7 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
4
 
5
- <%= render 'shared/attributes/base', strategy: strategy, url: url do |p| %>
5
+ <%= render 'shared/attributes/base', strategy: strategy, url: url, attribute: attribute do |p| %>
6
6
  <% p.heading t("#{object.class.name.pluralize.underscore}.fields.#{attribute}.heading", default: object.class.human_attribute_name(attribute)) %>
7
7
  <% p.body yield %>
8
8
  <% end %>
@@ -4,9 +4,8 @@
4
4
 
5
5
  <% if object.public_send(attribute).present? %>
6
6
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
- <% # Here we manually add a trix-content class since sanitizing the body removes the Rails default. %>
8
7
  <% if object.send(attribute).is_a?(ActionText::RichText) %>
9
- <%= tag.div(html_sanitize(object.public_send(attribute).body.to_trix_html).html_safe, class:"trix-content") %>
8
+ <%= html_sanitize(object.public_send(attribute).body.to_s).html_safe %>
10
9
  <% else %>
11
10
  <% # `.to_s` is for action text. %>
12
11
  <%= html_sanitize(object.public_send(attribute).to_s).html_safe %>
@@ -7,5 +7,7 @@
7
7
  <% if cloudinary_enabled? %>
8
8
  <%= cloudinary_image_tag object.public_send(attribute), options %>
9
9
  <% else %>
10
- <%= image_tag photo_url_for_active_storage_attachment(object.public_send(attribute), options) %>
10
+ <% if object.public_send(attribute).attached? %>
11
+ <%= image_tag photo_url_for_active_storage_attachment(object.public_send(attribute), options) %>
12
+ <% end %>
11
13
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.7.15"
3
+ VERSION = "1.7.17"
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.15
4
+ version: 1.7.17
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-01 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.5.3
139
+ rubygems_version: 3.5.11
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Bullet Train Themes