bullet_train-themes 1.37.0 → 1.38.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 +4 -4
- data/app/views/themes/base/attributes/_address.html.erb +2 -1
- data/app/views/themes/base/attributes/_attribute.html.erb +2 -1
- data/app/views/themes/base/attributes/_belongs_to.html.erb +2 -1
- data/app/views/themes/base/attributes/_block.html.erb +2 -1
- data/app/views/themes/base/attributes/_boolean.html.erb +2 -1
- data/app/views/themes/base/attributes/_code.html.erb +2 -1
- data/app/views/themes/base/attributes/_code_snippet.html.erb +2 -1
- data/app/views/themes/base/attributes/_date.html.erb +2 -1
- data/app/views/themes/base/attributes/_date_and_time.html.erb +2 -1
- data/app/views/themes/base/attributes/_days_ago.html.erb +2 -1
- data/app/views/themes/base/attributes/_email.html.erb +2 -1
- data/app/views/themes/base/attributes/_has_many.html.erb +2 -1
- data/app/views/themes/base/attributes/_html.html.erb +2 -1
- data/app/views/themes/base/attributes/_number.html.erb +2 -1
- data/app/views/themes/base/attributes/_option.html.erb +2 -1
- data/app/views/themes/base/attributes/_options.html.erb +2 -1
- data/app/views/themes/base/attributes/_phone_number.html.erb +2 -1
- data/app/views/themes/base/attributes/_text.html.erb +2 -1
- data/lib/bullet_train/themes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f50f9799861523851fdf1e4d4f15548700e025ba773394ee07629aad777549ae
|
|
4
|
+
data.tar.gz: 96886fd204776a22f24b88a10edd04bc2257bc9124edb0aaee64039dce0d7836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 016f35ad929e5092b04ef441d703d35448a06dd38c5d90fedbedd2db05fac992d78f7146d0f1d7de0f764bb6c75e81032a0d1d30af57178d8f2453498c1cce9d
|
|
7
|
+
data.tar.gz: 11e5c8e9d7e1baa83a357043716479ca2a008f5da210b640af48bc56b58e0a8e8ca1894d757e88381b45ac77b7140c14b617f9b1c8f58d07e25e5577cff1014f
|
|
@@ -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 %>
|