lato_spaces 3.1.4 → 3.1.6
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: 3cb95e689eb475a61d486862ded250e329c60e25b6a925cec930904cb8f3ef21
|
|
4
|
+
data.tar.gz: f9ec2d65d80d0ec50195e5fa9bf83d81fe63ee6ca119f1c4139413acc1ac61d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05acdedf498e81a921707a3d8ab7ee40bafa720f98d6b11c2388373f58520b299777d2e1eef4a5212c6edc714a2a82ffde6184ce2a1391f8abecab42fd02cbb9
|
|
7
|
+
data.tar.gz: 6781d51842829e7d93ff109b66f38db90d5b9879ff1185f275901ed4efa134b6c0b159e3ed8a7a03144ad421ced45371f7a7536c5a687dc5ffab4bf0e7680e78
|
|
@@ -16,6 +16,20 @@ module LatoSpaces::Associable
|
|
|
16
16
|
scope :without_lato_spaces_groups, -> { left_outer_joins(:lato_spaces_groups).where(lato_spaces_groups: { id: nil }) }
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# Helpers
|
|
20
|
+
##
|
|
21
|
+
|
|
22
|
+
def lato_spaces_group
|
|
23
|
+
@lato_spaces_group ||= lato_spaces_groups.first
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def lato_spaces_group_id
|
|
27
|
+
@lato_spaces_group_id ||= lato_spaces_group.try(:id)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Operations
|
|
31
|
+
##
|
|
32
|
+
|
|
19
33
|
def add_to_lato_spaces_group(group_id)
|
|
20
34
|
association = lato_spaces_associations.create(lato_spaces_group_id: group_id)
|
|
21
35
|
unless association.valid?
|
|
@@ -49,8 +63,4 @@ module LatoSpaces::Associable
|
|
|
49
63
|
|
|
50
64
|
true
|
|
51
65
|
end
|
|
52
|
-
|
|
53
|
-
def lato_spaces_group
|
|
54
|
-
lato_spaces_groups.first
|
|
55
|
-
end
|
|
56
66
|
end
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<span class="fw-bold"><%= group.name %></span>
|
|
16
16
|
<div class="d-flex justify-content-center align-items-center mt-2">
|
|
17
17
|
<% if @session.user.lato_spaces_admin || LatoSpaces.config.permit_group_management %>
|
|
18
|
-
<%= link_to lato_spaces.groups_show_path(group), class: "btn btn-light
|
|
18
|
+
<%= link_to lato_spaces.groups_show_path(group), class: "btn btn-light me-1", data: { turbo_frame: '_top' } do %>
|
|
19
19
|
<i class="bi bi-gear"></i>
|
|
20
20
|
<% end %>
|
|
21
21
|
<% end %>
|
|
22
|
-
<%= link_to lato_spaces.setgroup_path(group), class: "btn btn-#{is_selected ? 'success' : 'primary'}
|
|
22
|
+
<%= link_to lato_spaces.setgroup_path(group), class: "btn btn-#{is_selected ? 'success' : 'primary'} ms-1", data: { turbo_method: :post } do %>
|
|
23
23
|
<i class="bi bi-check-circle<%= is_selected ? '-fill' : '' %>"></i>
|
|
24
24
|
<% end %>
|
|
25
25
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<%= lato_page_head '
|
|
1
|
+
<%= lato_page_head I18n.t('lato_spaces.new_group'), [
|
|
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
|
] %>
|
|
5
5
|
|
|
6
6
|
<div class="card">
|
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.6
|
|
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-
|
|
11
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|