bullet_train-themes 1.7.14 → 1.7.16

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: 7f6bfd78bfaa53dedbccc857c8a51e0a0a0f782e5d13b97314236b183e854927
4
- data.tar.gz: a9489130ac7466f9220f65200366c4a410871a465e9823d49bba3bd6ead7e70c
3
+ metadata.gz: 1c904293926045140031ece8d356bc8bccd535e5bdae06f076f1b1885858532d
4
+ data.tar.gz: '027628f9adc91284dcd7bfcccc8fc49d7aa9d4f667b32bf8585c9dd41b386a7e'
5
5
  SHA512:
6
- metadata.gz: 7551ba3ba8123bb60bc48ca2a039c8f61a3317f59357d3959cb90e86d4623c4564663636e6a2a95c8ef71ed73c0df0853ddac4d5a88298db1ba4a9eb349c955a
7
- data.tar.gz: 9985128bcdcfcb6de49fa2fd853fd784a155265d34c42d77713a6b3330b54707636199a8c8dda1cdcaebe352fcaeabdcda90a4fad253016734a92bfb971d7095
6
+ metadata.gz: 634ae16dfdad8c59b653800bf80bdac4e501b5810bd9da491d2d83507592694d67175d4f2ae602b98efd2ee6ba79eef34e750a122f9a91605263505602da0003
7
+ data.tar.gz: 6f72b4579d81a99d806998f874788cd5ef329e9ccbe16a8e5b16797fcc0b0324c6ae6ea118863eb7060d758b1cdb0fb6b38a82ea277a1de1e90e1610cbf9dc3e
@@ -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,7 +7,7 @@ other_options ||= {}
7
7
  options[:class] = "formatted_content trix-content #{options[:class]}"
8
8
  options[:placeholder] ||= labels.placeholder if labels.placeholder
9
9
  options[:data] ||= {}
10
- if defined?(current_team)
10
+ if defined?(current_team) && current_team.present?
11
11
  options[:data][:mentions] ||= ([current_team].map { |team|
12
12
  {key: team.name, value: team.id, protocol: 'bullettrain', model: 'teams', id: team.id, label: team.name, photo: photo_for(team)}
13
13
  } + current_team.memberships.current_and_invited.map { |membership|
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.7.14"
3
+ VERSION = "1.7.16"
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.14
4
+ version: 1.7.16
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-06-24 00:00:00.000000000 Z
11
+ date: 2024-07-09 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