bullet_train 1.19.0 → 1.19.1
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/helpers/account/teams_helper.rb +6 -1
- data/app/views/account/invitations/_form.html.erb +1 -1
- data/app/views/account/memberships/_form.html.erb +1 -1
- data/app/views/account/onboarding/invitation_lists/new.html.erb +1 -1
- data/app/views/account/teams/_form.html.erb +1 -1
- data/app/views/account/teams/new.html.erb +1 -1
- data/docs/super-scaffolding/delegated-types.md +1 -1
- data/lib/bullet_train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '06129b8c8df0c811543bfd4e835ea0fe682650252b2cfcc7b022b6197a00757b'
|
4
|
+
data.tar.gz: 7d1f4b16768e4c9237b6b0bb504555f2b332d26dc8d3ba5d4bf91a53ee15757e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5abcc0e72948889f2c87f514e2b3199529d6857f34ef9970454097c7e102d4a49940304f03a51d6d898140fc862958f08a753c4f31d506b3f486deeda94b5bf
|
7
|
+
data.tar.gz: 4940c1815521e9c4eca289625e38d6215c13483ca5c8d730b50a672f335f6086be4a2ab40937287f3a4e84e38fb8cab05d04e3ad6f5f321b975472856d7dc70d
|
@@ -26,11 +26,16 @@ module Account::TeamsHelper
|
|
26
26
|
|
27
27
|
def photo_for(object)
|
28
28
|
background_color = Colorizer.colorize_similarly((object.name.to_s + object.created_at.to_s).to_s, 0.5, 0.6).delete("#")
|
29
|
+
avatar_name = if object.name.present?
|
30
|
+
"#{object.name.first}#{object.name.split.one? ? "" : object.name.split.first(2).last.first}"
|
31
|
+
else
|
32
|
+
"??"
|
33
|
+
end
|
29
34
|
"https://ui-avatars.com/api/?" + {
|
30
35
|
color: "ffffff",
|
31
36
|
background: background_color,
|
32
37
|
bold: true,
|
33
|
-
name:
|
38
|
+
name: avatar_name,
|
34
39
|
size: 200,
|
35
40
|
}.to_param
|
36
41
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_with(model: [:account, (@team unless invitation.persisted?), invitation], class: 'form'
|
1
|
+
<%= form_with(model: [:account, (@team unless invitation.persisted?), invitation], class: 'form') do |form| %>
|
2
2
|
<%= render "shared/limits/form", form: form, model: invitation.membership, cancel_path: @cancel_path || [:account, invitation] do %>
|
3
3
|
<%= render 'account/shared/forms/errors', form: form %>
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_with(model: [:account, (@team unless membership.persisted?), membership], class: 'form'
|
1
|
+
<%= form_with(model: [:account, (@team unless membership.persisted?), membership], class: 'form') do |form| %>
|
2
2
|
<%= render 'account/shared/forms/errors', form: form %>
|
3
3
|
|
4
4
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<% box.title @title %>
|
5
5
|
<% box.body do %>
|
6
6
|
<% within_fields_namespace(:self) do %>
|
7
|
-
<%= form_with(model: @account_onboarding_invitation_list, class: 'form'
|
7
|
+
<%= form_with(model: @account_onboarding_invitation_list, class: 'form') do |f| %>
|
8
8
|
<% f.object.errors.each do |error| %>
|
9
9
|
<%= render 'account/shared/forms/errors', form: f, attributes: [error.attribute], resource: @account_onboarding_invitation_list %>
|
10
10
|
<% end %>
|
@@ -9,7 +9,7 @@ end
|
|
9
9
|
<%= render 'account/shared/workflow/box' do |box| %>
|
10
10
|
<% box.title @title %>
|
11
11
|
<% box.body do %>
|
12
|
-
<%= form_with model: @team, url: [:account, @team],
|
12
|
+
<%= form_with model: @team, url: [:account, @team], class: 'form' do |form| %>
|
13
13
|
<%= render 'account/shared/notices' %>
|
14
14
|
<%= render 'account/shared/forms/errors', form: form %>
|
15
15
|
|
@@ -107,7 +107,7 @@ The first of these two forms is actually not shared between `new.html.erb` and `
|
|
107
107
|
<% if @entry.entryable_type %>
|
108
108
|
<%= render 'form', entry: @entry %>
|
109
109
|
<% else %>
|
110
|
-
<%= form_with model: @entry, url: [:new, :account, @team, :entry], method: :get,
|
110
|
+
<%= form_with model: @entry, url: [:new, :account, @team, :entry], method: :get, class: 'form' do |form| %>
|
111
111
|
<%= render 'account/shared/forms/errors', form: form %>
|
112
112
|
<% with_field_settings form: form do %>
|
113
113
|
<%= render 'shared/fields/buttons', method: :entryable_type, html_options: {autofocus: true} %>
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: standard
|