bullet_train-themes 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/themes/base/attributes/_date.html.erb +1 -1
- data/app/views/themes/base/attributes/_date_and_time.html.erb +1 -1
- data/app/views/themes/base/fields/_trix_editor.html.erb +2 -2
- data/lib/bullet_train/themes/engine.rb +0 -3
- data/lib/bullet_train/themes/version.rb +1 -1
- data/lib/bullet_train/themes.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddeee9af23fa75c999d7d38040998ec689cc206639f895f69222e0ed50956109
|
4
|
+
data.tar.gz: 26818ca49ac9da86e291b1f626e033f1fbb17b2558dd25aaa29209cc88c44a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e29e207a667b7477207429251d6d9f622e860ddb6028c1b159e76fdfe5f75f3c03b3f604a97228617443fd565e1e97702be95a5541883a97007007d3053714c
|
7
|
+
data.tar.gz: 73606ae27fa14274a9b490b34330b4c2675fdcf5be934b1654b07a20c50ffc69476b439e83aae2aae7d480c5ba002e2697982dc04323ac344b9ae70fc55559fc
|
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
<% if object.send(attribute).present? %>
|
6
6
|
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
|
7
|
-
<%= display_date(object.send(attribute)) %>
|
7
|
+
<%= display_date(object.send(attribute), local_assigns[:date_format]) %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
<% if object.send(attribute).present? %>
|
6
6
|
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
|
7
|
-
<%= display_date_and_time(object.send(attribute)) %>
|
7
|
+
<%= display_date_and_time(object.send(attribute), local_assigns[:date_format], local_assigns[:time_format]) %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
@@ -7,12 +7,12 @@ 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
|
-
options[:data][:mentions]
|
10
|
+
options[:data][:mentions] ||= ([current_team].map { |team|
|
11
11
|
{key: team.name, value: team.id, protocol: 'bullettrain', model: 'teams', id: team.id, label: team.name, photo: photo_for(team)}
|
12
12
|
} + current_team.memberships.current_and_invited.map { |membership|
|
13
13
|
{key: membership.name, value: membership.id, protocol: 'bullettrain', model: 'memberships', id: membership.id, label: membership.name, photo: membership_profile_photo_url(membership)}
|
14
14
|
}).to_json
|
15
|
-
options[:data][:topics]
|
15
|
+
options[:data][:topics] ||= []
|
16
16
|
# current_team.scaffolding_things.map { |scaffolding_thing|
|
17
17
|
# {key: scaffolding_thing.name, value: scaffolding_thing.id, protocol: 'bullettrain', model: 'scaffolding/things', id: scaffolding_thing.id, label: scaffolding_thing.name, photo: photo_for(scaffolding_thing)}
|
18
18
|
# }.to_json
|
data/lib/bullet_train/themes.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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: 2022-
|
11
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: standard
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rails
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - ">="
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
33
|
+
version: 6.0.0
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
40
|
+
version: 6.0.0
|
27
41
|
description: Bullet Train Themes
|
28
42
|
email:
|
29
43
|
- andrew.culver@gmail.com
|