lato_spaces 3.1.9 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 138e35921ac438d9b8fc8fe960bd405f306df59af2ff49fe92890178f29da04d
4
- data.tar.gz: 854e74f7a0b3ed0de3f43396391ce980d738b29a492c2b4812ae3f2c53975eed
3
+ metadata.gz: 118e7f9fb1b800f670083df594741f63802637c0b5b282817e72975256e6a9fb
4
+ data.tar.gz: e43bb1f28ef6e6a80f545770b3331ac816a0ed23ba44a36ccf8c87b469c845a2
5
5
  SHA512:
6
- metadata.gz: 3c6143b36e197207cfb694285966b12ddc6438bee8303f85cdebba9078d103812e8b32af262ae4697bb5e166bb5871aaaaa0b654ee4785126a25d79dc2de0d61
7
- data.tar.gz: 06e84a844a8458658cc1bced1a5a0d7843b08cbb83dcf72f08633742a678946fefb1f03eabdc47bd9c66f5c325bffc293fede034cd5c352d8d30bf93c40ebdb1
6
+ metadata.gz: 224e9f07aaf4e32fe4b4bca1a706d6b4ac6633545fd65d24693a65287ee17febe5ef62842b4d47232fce2bc99b7609b6b2ffb848f90baed3fc084251b2164b64
7
+ data.tar.gz: e6e599b3e61dd163f045b5f2805550bcd27a02f404bdfc43a40af0677b91708c2fe0cebdbeac591dc808301d4a567b31a798986421066f6531ba85aa28e7cbb8
@@ -5,7 +5,7 @@ module LatoSpaces::Associable
5
5
  # Relations
6
6
  ##
7
7
 
8
- has_many :lato_spaces_associations, class_name: 'LatoSpaces::Association', as: :item, dependent: :delete # HACK: delete instead of destroy to avoid infinite loop caused by AssociableRequired concern
8
+ has_many :lato_spaces_associations, class_name: 'LatoSpaces::Association', as: :item, dependent: :delete_all # HACK: delete_all instead of destroy to avoid infinite loop caused by AssociableRequired concern
9
9
  has_many :lato_spaces_groups, through: :lato_spaces_associations, class_name: 'LatoSpaces::Group'
10
10
 
11
11
  # Scopes
@@ -7,12 +7,14 @@
7
7
  <% @groups.each do |group| %>
8
8
  <% is_selected = @session.get(:spaces_group_id)&.to_i == group.id %>
9
9
 
10
- <div class="col col-12 col-md-6 col-lg-4 col-xl-3 mb-3">
10
+ <div class="col col-12 col-lg-6 col-lg-4 col-xl-3 mb-3">
11
11
  <div class="card h-100 border border-4 <%= is_selected ? 'border-success' : 'border-light' %>">
12
- <div class="card-body d-flex flex-column justify-content-center align-items-center">
13
- <div class="text-center">
14
- <i class="<%= LatoSpaces.config.group_icon %> fs-1"></i><br>
15
- <span class="fw-bold"><%= group.name %></span>
12
+ <div class="card-body">
13
+ <div class="d-flex align-items-center justify-content-between d-lg-block">
14
+ <div class="d-flex align-items-center d-lg-block text-center">
15
+ <i class="<%= LatoSpaces.config.group_icon %> fs-1 me-2 me-lg-0"></i><br>
16
+ <span class="fw-bold"><%= group.name %></span>
17
+ </div>
16
18
  <div class="d-flex justify-content-center align-items-center mt-2">
17
19
  <% if @session.user.lato_spaces_admin || LatoSpaces.config.permit_group_management %>
18
20
  <%= link_to lato_spaces.groups_show_path(group), class: "btn btn-light me-1", data: { turbo_frame: '_top' } do %>
@@ -30,7 +32,7 @@
30
32
  <% end %>
31
33
 
32
34
  <% if @session.user.lato_spaces_admin %>
33
- <div class="col col-12 col-md-6 col-lg-4 col-xl-3 mb-3">
35
+ <div class="col col-12 col-lg-6 col-lg-4 col-xl-3 mb-3">
34
36
  <%= link_to lato_spaces.groups_path, class: 'card border border-4 border-primary bg-primary text-white text-decoration-none h-100' do %>
35
37
  <div class="card-body d-flex flex-column justify-content-center align-items-center">
36
38
  <div class="text-center">
@@ -41,7 +43,7 @@
41
43
  <% end %>
42
44
  </div>
43
45
  <% elsif LatoSpaces.config.permit_group_creation %>
44
- <div class="col col-12 col-md-6 col-lg-4 col-xl-3 mb-3">
46
+ <div class="col col-12 col-lg-6 col-lg-4 col-xl-3 mb-3">
45
47
  <%= link_to lato_spaces.groups_create_path, class: 'card border border-4 border-primary bg-primary text-white text-decoration-none h-100', data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSpaces::Group.new, 'form'), action_title: I18n.t('lato_spaces.new_group') } do %>
46
48
  <div class="card-body d-flex flex-column justify-content-center align-items-center">
47
49
  <div class="text-center">
@@ -1,3 +1,3 @@
1
1
  module LatoSpaces
2
- VERSION = "3.1.9"
2
+ VERSION = "3.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato_spaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante