bullet_train-themes 1.37.1 → 1.39.0

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: 5dfd9f60566491051f5a91cc0b9f91529ad5aac2768e40bd11461e7000086009
4
- data.tar.gz: 12e0154529c76aaccf944778130c235d1c06658596eb0ab52f81798bc87c2171
3
+ metadata.gz: 996532867c195d63ab130be48832e471d3d390b0e7cf83f4944651ddedc87487
4
+ data.tar.gz: 9fbe12d05e1091a41b05a533d44749b1e1ce3ba40efe1543c33a5cb47e2c5ce9
5
5
  SHA512:
6
- metadata.gz: 262f988cfc7c147b006608593f0b72952cd799c6c9a399cbee843838592c184a573fdcb150edf7c5f9f5db6805dfabe9492969cdfe69e82a6321210c907053e0
7
- data.tar.gz: 2f422390d0a9f3e2cbdb11bffe4d8a74d97048fce1342a6cd5a5eaa9b5fabfa5c9a684dd2d41b48c12642830ede25cd7265cfec66c50f7e8ea1603f3c7f69cdb
6
+ metadata.gz: 9b19d2a5107c795fe6cf81861ef64271a001ada166ffe172bef4363b954b5ddc66c5f7c23a716662d4d1abe74a44f4d0d936a46b4e146cf5a3f81faf7514e21c
7
+ data.tar.gz: d13509e6e1e72af2d90ecd21d79f3a056b8517a09a3ed4a95c9a857c3171d83f7d204fc933d3a0b8be4b9408f672b045d9b5de87e699e7e1cc1e392fce91e1fb
@@ -2,9 +2,10 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
4
  <% one_line ||= false %>
5
+ <% link_html_options ||= {} %>
5
6
 
6
7
  <% if object.send(attribute).present? && !object.send(attribute).all_blank? %>
7
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
8
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
8
9
  <address class="not-italic">
9
10
  <%= address_formatted(object.send(attribute), one_line: one_line) %>
10
11
  </address>
@@ -1,8 +1,9 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
- <%= render 'shared/attributes/base', strategy: strategy, url: url, attribute: attribute do |p| %>
6
+ <%= render 'shared/attributes/base', strategy: strategy, url: url, attribute: attribute, link_html_options: link_html_options do |p| %>
6
7
  <% p.heading t("#{object.class.name.pluralize.underscore}.fields.#{attribute}.heading", default: object.class.human_attribute_name(attribute)) %>
7
8
  <% p.body yield %>
8
9
  <% end %>
@@ -2,9 +2,10 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% disable_link ||= false %>
4
4
  <% url ||= nil %>
5
+ <% link_html_options ||= {} %>
5
6
 
6
7
  <% if object.public_send(attribute).present? %>
7
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
8
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
8
9
  <% if disable_link %>
9
10
  <%= object.public_send(attribute).label_string %>
10
11
  <% else %>
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).present? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <pre><%= object.public_send(attribute) %></pre>
8
9
  <% end %>
9
10
  <% end %>
@@ -1,11 +1,12 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% default_message = local_assigns[:default_message] || t("global.not_set") %>
5
6
  <% display_when_blank = local_assigns[:display_when_blank] || false %>
6
7
 
7
8
  <% if !object[attribute].nil? || display_when_blank %>
8
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
9
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
9
10
  <% unless object[attribute].nil? %>
10
11
  <%= t("#{object.class.name.underscore.pluralize}.fields.#{attribute}.options.#{object.public_send(attribute)}") %>
11
12
  <% else %>
@@ -2,9 +2,10 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% source ||= nil %>
4
4
  <% url ||= nil %>
5
+ <% link_html_options ||= {} %>
5
6
 
6
7
  <% if object.public_send(attribute).present? %>
7
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
8
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
8
9
  <code class="text-pink-600 font-light"><%= object.send(source || attribute) %></code>
9
10
  <% end %>
10
11
  <% end %>
@@ -1,6 +1,7 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% source ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% url ||= nil %>
5
6
  <%
6
7
  snippet_class ||= ""
@@ -8,7 +9,7 @@
8
9
  %>
9
10
 
10
11
  <% if object.public_send(attribute).present? %>
11
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
12
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
12
13
  <code class="<%= snippet_class %>"><pre><%= object.send(source || attribute) %></pre></code>
13
14
  <% end %>
14
15
  <% end %>
@@ -1,11 +1,12 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% default_message = local_assigns[:default_message] || t('global.formats.timestamp_unavailable') %>
5
6
  <% display_when_blank = local_assigns[:display_when_blank] || false %>
6
7
 
7
8
  <% if object.public_send(attribute).present? || display_when_blank %>
8
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
9
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
9
10
  <% if object.public_send(attribute).present? %>
10
11
  <%= display_date(object.public_send(attribute), **local_assigns.slice(:format), **local_assigns.slice(:date_format)) %>
11
12
  <% else %>
@@ -1,11 +1,12 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% default_message = local_assigns[:default_message] || t('global.formats.timestamp_unavailable') %>
5
6
  <% display_when_blank = local_assigns[:display_when_blank] || false %>
6
7
 
7
8
  <% if object.public_send(attribute).present? || display_when_blank %>
8
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
9
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
9
10
  <% if object.public_send(attribute).present? %>
10
11
  <%= display_date_and_time(object.public_send(attribute), **local_assigns.slice(:format), **local_assigns.slice(:date_format), **local_assigns.slice(:time_format)) %>
11
12
  <% else %>
@@ -1,11 +1,12 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% default_message = local_assigns[:default_message] || t("global.never") %>
5
6
  <% display_when_blank = local_assigns[:display_when_blank] || false %>
6
7
 
7
8
  <% if object.public_send(attribute) || display_when_blank %>
8
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
9
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
9
10
  <% if object.public_send(attribute).present? %>
10
11
  <%= t("global.time_ago", time: time_ago_in_words(object.send(attribute))) %>
11
12
  <% else %>
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).present? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <%= link_to object.public_send(attribute), "mailto:#{object.public_send(attribute)}" %>
8
9
  <% end %>
9
10
  <% end %>
@@ -3,10 +3,11 @@
3
3
  <% link_source ||= nil %>
4
4
  <% disable_links ||= false %>
5
5
  <% link_options ||= {} %>
6
+ <% link_html_options ||= {} %>
6
7
  <% label_string_method ||= :label_string %>
7
8
 
8
9
  <% if object.public_send(attribute).any? %>
9
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy do %>
10
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, link_html_options: link_html_options do %>
10
11
  <%= object.public_send(attribute).map do |child_object| %>
11
12
  <% label_string = child_object.public_send(label_string_method) %>
12
13
 
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).present? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <% if object.send(attribute).is_a?(ActionText::RichText) %>
8
9
  <%= html_sanitize(object.public_send(attribute).body.to_s).html_safe %>
9
10
  <% else %>
@@ -1,13 +1,14 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
  <% format ||= nil %>
5
6
  <% format_helper ||= nil %>
6
7
  <% format_helper_args ||= {} %>
7
8
  <% options ||= {} %>
8
9
 
9
10
  <% if object.public_send(attribute).present? %>
10
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy do %>
11
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, link_html_options: link_html_options do %>
11
12
  <% if format %>
12
13
  <%= sprintf(format, object.public_send(attribute)) %>
13
14
  <% elsif format_helper %>
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).present? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <%= t("#{object.class.name.underscore.pluralize}.fields.#{attribute}.options.#{object.public_send(attribute)}") %>
8
9
  <% end %>
9
10
  <% end %>
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).any? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <%# TODO: Multiple option partials return arrays with blank characters in them. Is this expected? %>
8
9
  <%= object.public_send(attribute).reject(&:blank?).map do |value| %>
9
10
  <% t("#{object.class.name.underscore.pluralize}.fields.#{attribute}.options.#{value}") %>
@@ -1,9 +1,10 @@
1
1
  <% object ||= current_attributes_object %>
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
+ <% link_html_options ||= {} %>
4
5
 
5
6
  <% if object.public_send(attribute).present? %>
6
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
7
8
  <%= display_phone_number(object.public_send(attribute)) %>
8
9
  <% end %>
9
10
  <% end %>
@@ -2,9 +2,10 @@
2
2
  <% strategy ||= current_attributes_strategy || :none %>
3
3
  <% url ||= nil %>
4
4
  <% options ||= {} %>
5
+ <% link_html_options ||= {} %>
5
6
 
6
7
  <% if object.public_send(attribute).present? %>
7
- <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
8
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url, link_html_options: link_html_options do %>
8
9
  <%= options[:password] ? "●" * object.public_send(attribute).length : object.public_send(attribute) %>
9
10
  <% end %>
10
11
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.37.1"
3
+ VERSION = "1.39.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.1
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver