lato_spaces 3.1.9 → 3.1.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 118e7f9fb1b800f670083df594741f63802637c0b5b282817e72975256e6a9fb
|
4
|
+
data.tar.gz: e43bb1f28ef6e6a80f545770b3331ac816a0ed23ba44a36ccf8c87b469c845a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: :
|
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-
|
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
|
13
|
-
<div class="
|
14
|
-
<
|
15
|
-
|
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-
|
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-
|
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">
|
data/lib/lato_spaces/version.rb
CHANGED