lato_spaces 3.1.12 → 3.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/lato_spaces/groups_helper.rb +1 -1
- data/app/helpers/lato_spaces/memberships_helper.rb +2 -2
- data/app/views/lato_spaces/groups/_form.html.erb +1 -1
- data/app/views/lato_spaces/groups/show.html.erb +3 -3
- data/app/views/lato_spaces/memberships/_form.html.erb +1 -1
- data/app/views/lato_spaces/memberships/create.html.erb +2 -2
- data/config/locales/en.yml +7 -0
- data/config/locales/it.yml +28 -0
- data/lib/lato_spaces/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f791cf71fa264c395349b35419296adda1859ec3d778ac53a9bcc5c885056f6f
|
4
|
+
data.tar.gz: dc0715dd620e34a856b5147271d6dc0d31b05708688f43069f24cecf4f8a84b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e6b79b784871e895575e7840000117d23c155bb2827db927f90e7d89a4b630f15ec0b4fd7f883c22c8f46d0d1ab6ebd9dca4ff47a58d9ca58c84a038c1a15e
|
7
|
+
data.tar.gz: 7de4af07b22e1a131e54685fb322b4924389afc0d4b4bea0dd001e4bec84b8419596dbe6801a1e994d16dab9e3f4547f8d755166279c5db66caf06d3e62aeca0
|
@@ -4,7 +4,7 @@ module LatoSpaces
|
|
4
4
|
|
5
5
|
def lato_spaces_group_actions(group)
|
6
6
|
content_tag(:div, class: 'btn-group btn-group-sm') do
|
7
|
-
concat link_to('
|
7
|
+
concat link_to(I18n.t('lato_spaces.cta_view'), lato_spaces.groups_show_path(group), class: 'btn btn-primary')
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -17,9 +17,9 @@ module LatoSpaces
|
|
17
17
|
def lato_spaces_membership_actions(membership)
|
18
18
|
content_tag(:div, class: 'btn-group btn-group-sm') do
|
19
19
|
if membership.lato_invitation
|
20
|
-
concat link_to('
|
20
|
+
concat link_to(I18n.t('lato_spaces.cta_resend'), lato_spaces.memberships_send_invite_action_path(membership), class: 'btn btn-primary', data: { turbo_confirm: 'Are you sure?', turbo_method: :post })
|
21
21
|
end
|
22
|
-
concat link_to('
|
22
|
+
concat link_to(I18n.t('lato_spaces.cta_delete'), lato_spaces.memberships_destroy_action_path(membership), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete })
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<%= render 'layouts/lato_spaces/group-form-extra_content', form: form %>
|
12
12
|
|
13
13
|
<div class="d-flex justify-content-end">
|
14
|
-
<%= lato_form_submit form, group.persisted? ? '
|
14
|
+
<%= lato_form_submit form, group.persisted? ? I18n.t('lato_spaces.cta_update') : I18n.t('lato_spaces.cta_confirm'), class: %w[btn-success] %>
|
15
15
|
</div>
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
@@ -7,8 +7,8 @@
|
|
7
7
|
<div class="card-header d-flex justify-content-between align-items-center">
|
8
8
|
<h2 class="fs-4 mb-0"><%= I18n.t('lato_spaces.group_informations') %></h2>
|
9
9
|
<div class="btn-group btn-group-sm" role="group">
|
10
|
-
<%= link_to '
|
11
|
-
<%= link_to '
|
10
|
+
<%= link_to I18n.t('lato_spaces.cta_edit'), lato_spaces.groups_update_path(@group), class: 'btn btn-primary', data: { lato_action_target: 'trigger', turbo_frame: dom_id(@group, 'form'), action_title: I18n.t('lato_spaces.edit_group') } %>
|
11
|
+
<%= link_to I18n.t('lato_spaces.cta_delete'), lato_spaces.groups_destroy_action_path(@group), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete } %>
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
<div class="card-body">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
create: {
|
27
27
|
path: lato_spaces.memberships_create_path(@group),
|
28
28
|
icon: 'bi bi-plus',
|
29
|
-
data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSpaces::Membership.new, 'form'), action_title: '
|
29
|
+
data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSpaces::Membership.new, 'form'), action_title: I18n.t('lato_spaces.new_membership') }
|
30
30
|
}
|
31
31
|
}
|
32
32
|
%>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<%= lato_page_head '
|
1
|
+
<%= lato_page_head I18n.t('lato_spaces.new_membership'), [
|
2
2
|
{ label: I18n.t('lato_spaces.spaces'), path: lato_spaces.root_path },
|
3
|
-
{ label: '
|
3
|
+
{ label: I18n.t('lato_spaces.groups'), path: lato_spaces.groups_path },
|
4
4
|
{ label: @group.name, path: lato_spaces.groups_show_path(@group) }
|
5
5
|
] %>
|
6
6
|
|
data/config/locales/en.yml
CHANGED
@@ -11,6 +11,13 @@ en:
|
|
11
11
|
group_members: Group members
|
12
12
|
group_informations: Group informations
|
13
13
|
cta_new_group: Create new group
|
14
|
+
cta_view: View
|
15
|
+
cta_confirm: Confirm
|
16
|
+
cta_update: Update
|
17
|
+
cta_edit: Edit
|
18
|
+
cta_delete: Delete
|
19
|
+
cta_resend: Resend
|
20
|
+
new_membership: New membership
|
14
21
|
activerecord:
|
15
22
|
attributes:
|
16
23
|
lato_spaces/membership:
|
@@ -0,0 +1,28 @@
|
|
1
|
+
it:
|
2
|
+
lato_spaces:
|
3
|
+
space: Space
|
4
|
+
spaces: Spaces
|
5
|
+
group: Gruppo
|
6
|
+
groups: Gruppi
|
7
|
+
welcome: Ciao <b>%{user}</b>!<b> Seleziona il gruppo</b> con cui vuoi lavorare.
|
8
|
+
cta_manage_groups: Gestisci gruppi
|
9
|
+
new_group: Nuovo gruppo
|
10
|
+
edit_group: Modifica gruppo
|
11
|
+
group_members: Membri del gruppo
|
12
|
+
group_informations: Informazioni del gruppo
|
13
|
+
cta_new_group: Crea nuovo gruppo
|
14
|
+
cta_view: Visualizza
|
15
|
+
cta_confirm: Conferma
|
16
|
+
cta_update: Aggiorna
|
17
|
+
cta_edit: Modifica
|
18
|
+
cta_delete: Cancella
|
19
|
+
cta_resend: Reinvia
|
20
|
+
new_membership: Nuova iscrizione
|
21
|
+
activerecord:
|
22
|
+
attributes:
|
23
|
+
lato_spaces/group:
|
24
|
+
name: Nome
|
25
|
+
actions: Azioni
|
26
|
+
lato_spaces/membership:
|
27
|
+
user_infos: Utente
|
28
|
+
actions: Azioni
|
data/lib/lato_spaces/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lato_spaces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- app/views/layouts/lato_spaces/_group-form-extra_content.html.erb
|
78
78
|
- app/views/layouts/lato_spaces/_group-informations_content.html.erb
|
79
79
|
- config/locales/en.yml
|
80
|
+
- config/locales/it.yml
|
80
81
|
- config/routes.rb
|
81
82
|
- db/migrate/20231101082505_add_lato_spaces_admin_to_lato_user.rb
|
82
83
|
- db/migrate/20231102082229_create_lato_spaces_groups.rb
|