lato_spaces 3.1.11 → 3.1.13

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: 118e7f9fb1b800f670083df594741f63802637c0b5b282817e72975256e6a9fb
4
- data.tar.gz: e43bb1f28ef6e6a80f545770b3331ac816a0ed23ba44a36ccf8c87b469c845a2
3
+ metadata.gz: f791cf71fa264c395349b35419296adda1859ec3d778ac53a9bcc5c885056f6f
4
+ data.tar.gz: dc0715dd620e34a856b5147271d6dc0d31b05708688f43069f24cecf4f8a84b3
5
5
  SHA512:
6
- metadata.gz: 224e9f07aaf4e32fe4b4bca1a706d6b4ac6633545fd65d24693a65287ee17febe5ef62842b4d47232fce2bc99b7609b6b2ffb848f90baed3fc084251b2164b64
7
- data.tar.gz: e6e599b3e61dd163f045b5f2805550bcd27a02f404bdfc43a40af0677b91708c2fe0cebdbeac591dc808301d4a567b31a798986421066f6531ba85aa28e7cbb8
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('View', lato_spaces.groups_show_path(group), class: 'btn btn-primary')
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('Resend', lato_spaces.memberships_send_invite_action_path(membership), class: 'btn btn-primary', data: { turbo_confirm: 'Are you sure?', turbo_method: :post })
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('Delete', lato_spaces.memberships_destroy_action_path(membership), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete })
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
@@ -15,7 +15,7 @@
15
15
  <i class="<%= LatoSpaces.config.group_icon %> fs-1 me-2 me-lg-0"></i><br>
16
16
  <span class="fw-bold"><%= group.name %></span>
17
17
  </div>
18
- <div class="d-flex justify-content-center align-items-center mt-2">
18
+ <div class="d-flex justify-content-center align-items-center mt-lg-2">
19
19
  <% if @session.user.lato_spaces_admin || LatoSpaces.config.permit_group_management %>
20
20
  <%= link_to lato_spaces.groups_show_path(group), class: "btn btn-light me-1", data: { turbo_frame: '_top' } do %>
21
21
  <i class="bi bi-gear"></i>
@@ -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? ? 'Update' : 'Confirm', class: %w[btn-success] %>
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 '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 'Delete', lato_spaces.groups_destroy_action_path(@group), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete } %>
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: 'New membership' }
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
  %>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <div class="d-flex justify-content-end">
12
- <%= lato_form_submit form, 'Confirm', class: %w[btn-success] %>
12
+ <%= lato_form_submit form, I18n.t('lato_spaces.cta_confirm'), class: %w[btn-success] %>
13
13
  </div>
14
14
  <% end %>
15
15
  <% end %>
@@ -1,6 +1,6 @@
1
- <%= lato_page_head 'New membership', [
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: 'Groups', path: lato_spaces.groups_path },
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module LatoSpaces
2
- VERSION = "3.1.11"
2
+ VERSION = "3.1.13"
3
3
  end
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.11
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-02 00:00:00.000000000 Z
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