decidim-assemblies 0.28.3 → 0.28.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +19 -4
- data/app/permissions/decidim/assemblies/permissions.rb +1 -1
- data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +2 -2
- data/app/views/layouts/decidim/admin/assemblies.html.erb +1 -1
- data/config/locales/ca.yml +3 -3
- data/config/locales/de.yml +12 -12
- data/config/locales/sv.yml +13 -13
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a96e6c34d80c5256ca5da335a25de147e9fee9ab6a451eae435ecefbc41c4aec
|
4
|
+
data.tar.gz: b0f0a58481be26eb3acb13a63e6894fdaa8c72ff00b2830c84e80e277dfc691f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aadfbbffa02fa1773355e37e3db335cd9ebd51edb7d143297ecf89398393af62b43310cea35a66ca653f7ab7a3a05b9934ca0a31614ccfa7bd3cc19ca427b7be
|
7
|
+
data.tar.gz: fd37d3cd9f695dbec77149a28219b3d7e7e2aa7ca6a603eca61a1209885124386cd1e74a314b2de3d57d1e110c8c33364a29cfe3e20c8946a1b25bfbd1ae263d
|
@@ -17,13 +17,13 @@ module Decidim
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def new
|
20
|
-
enforce_permission_to :create, :assembly
|
20
|
+
enforce_permission_to :create, :assembly, assembly: parent_assembly
|
21
21
|
@form = form(AssemblyForm).instance
|
22
22
|
@form.parent_id = params[:parent_id]
|
23
23
|
end
|
24
24
|
|
25
25
|
def create
|
26
|
-
enforce_permission_to :create, :assembly
|
26
|
+
enforce_permission_to :create, :assembly, assembly: parent_assembly
|
27
27
|
@form = form(AssemblyForm).from_params(params)
|
28
28
|
|
29
29
|
CreateAssembly.call(@form) do
|
@@ -66,7 +66,7 @@ module Decidim
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def copy
|
69
|
-
enforce_permission_to :create, :assembly
|
69
|
+
enforce_permission_to :create, :assembly, assembly: collection.find_by(id: params[:parent_id])
|
70
70
|
end
|
71
71
|
|
72
72
|
private
|
@@ -84,7 +84,22 @@ module Decidim
|
|
84
84
|
alias current_participatory_space current_assembly
|
85
85
|
|
86
86
|
def parent_assembly
|
87
|
-
@parent_assembly ||= collection.find_by(id:
|
87
|
+
@parent_assembly ||= collection.find_by(id: parent_assembly_id)
|
88
|
+
end
|
89
|
+
|
90
|
+
def parent_assembly_id
|
91
|
+
# Return the parent_id from Ransack parameters if it exists
|
92
|
+
return ransack_params[:parent_id_eq] if ransack_params[:parent_id_eq].present?
|
93
|
+
|
94
|
+
# If the assembly parameter is present, return its parent_id
|
95
|
+
return assembly_parent_id if params[:assembly].present?
|
96
|
+
|
97
|
+
# Otherwise, return the parent_id from the params hash
|
98
|
+
params[:parent_id]
|
99
|
+
end
|
100
|
+
|
101
|
+
def assembly_parent_id
|
102
|
+
params[:assembly][:parent_id]
|
88
103
|
end
|
89
104
|
|
90
105
|
def assembly_params
|
@@ -176,7 +176,7 @@ module Decidim
|
|
176
176
|
return unless permission_action.action == :create &&
|
177
177
|
permission_action.subject == :assembly
|
178
178
|
|
179
|
-
toggle_allow(user.admin? || admin_assembly?
|
179
|
+
toggle_allow(user.admin? || admin_assembly?)
|
180
180
|
end
|
181
181
|
|
182
182
|
def user_can_export_assembly?
|
@@ -77,7 +77,7 @@
|
|
77
77
|
<% else %>
|
78
78
|
<span class="action-space icon"></span>
|
79
79
|
<% end %>
|
80
|
-
<% if assembly.children.count.positive? || allowed_to?(:
|
80
|
+
<% if assembly.children.count.positive? || allowed_to?(:read, :assembly, assembly:) %>
|
81
81
|
<%= icon_link_to "government-line",
|
82
82
|
url_for(query_params_with(parent_id_eq: assembly.id)),
|
83
83
|
t("decidim.admin.titles.assemblies"),
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<% else %>
|
86
86
|
<span class="action-space icon"></span>
|
87
87
|
<% end %>
|
88
|
-
|
88
|
+
<% if allowed_to? :copy, :assembly, assembly: assembly, assembly: parent_assembly %>
|
89
89
|
<%= icon_link_to "file-copy-line", new_assembly_copy_path(assembly), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
90
90
|
<% else %>
|
91
91
|
<span class="action-space icon"></span>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% content_for :breadcrumb_context_menu do %>
|
2
2
|
<div class="process-title-content-breadcrumb-container-right">
|
3
|
-
<% if allowed_to? :create, :assembly %>
|
3
|
+
<% if allowed_to? :create, :assembly, assembly: parent_assembly %>
|
4
4
|
<% link = defined?(parent_assembly) ? new_assembly_path(parent_id: parent_assembly&.id) : new_assembly_path %>
|
5
5
|
<%= link_to link, class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
|
6
6
|
<%= icon "add-line", class: "w-4 h-4" %>
|
data/config/locales/ca.yml
CHANGED
@@ -207,7 +207,7 @@ ca:
|
|
207
207
|
attachments: Adjunts
|
208
208
|
categories: Categories
|
209
209
|
components: Components
|
210
|
-
info:
|
210
|
+
info: Quant a aquesta assemblea
|
211
211
|
landing_page: Pàgina d'inici
|
212
212
|
moderations: Moderacions
|
213
213
|
private_users: Participants privades
|
@@ -339,13 +339,13 @@ ca:
|
|
339
339
|
participatory_scope: Què es decideix
|
340
340
|
participatory_structure: Com es decideix
|
341
341
|
target: Qui participa
|
342
|
-
title:
|
342
|
+
title: Quant a aquesta assemblea
|
343
343
|
filters:
|
344
344
|
names:
|
345
345
|
all: Totes
|
346
346
|
type: Tipus
|
347
347
|
show:
|
348
|
-
title:
|
348
|
+
title: Quant a aquesta assemblea
|
349
349
|
assembly_members:
|
350
350
|
index:
|
351
351
|
members: Membres
|
data/config/locales/de.yml
CHANGED
@@ -10,15 +10,15 @@ de:
|
|
10
10
|
assembly_type: Versammlungstyp
|
11
11
|
assembly_type_other: Sonstiger Versammlungstyp
|
12
12
|
banner_image: Banner-Bild
|
13
|
-
closing_date:
|
14
|
-
closing_date_reason:
|
13
|
+
closing_date: Auflösungsdatum
|
14
|
+
closing_date_reason: Grund der Auflösung
|
15
15
|
composition: Zusammensetzung
|
16
16
|
copy_categories: Kategorien kopieren
|
17
17
|
copy_components: Komponenten kopieren
|
18
18
|
copy_features: Funktionen kopieren
|
19
19
|
created_by: Erstellt von
|
20
20
|
created_by_other: Erstellt von anderen
|
21
|
-
creation_date:
|
21
|
+
creation_date: Gründungsdatum
|
22
22
|
decidim_area_id: Bereich
|
23
23
|
decidim_assemblies_type_id: Versammlungstyp
|
24
24
|
decidim_scope_id: Umfang
|
@@ -26,7 +26,7 @@ de:
|
|
26
26
|
developer_group: Promoter-Gruppe
|
27
27
|
document: Dokument
|
28
28
|
domain: Domain
|
29
|
-
duration:
|
29
|
+
duration: Aktiv bis
|
30
30
|
facebook: Facebook
|
31
31
|
github: GitHub
|
32
32
|
hashtag: Hashtag
|
@@ -34,7 +34,7 @@ de:
|
|
34
34
|
import_attachments: Anhänge importieren
|
35
35
|
import_categories: Kategorien importieren
|
36
36
|
import_components: Komponenten importieren
|
37
|
-
included_at:
|
37
|
+
included_at: Hinzugefügt am
|
38
38
|
instagram: Instagram
|
39
39
|
internal_organisation: Interne Organisation
|
40
40
|
is_transparent: Ist transparent
|
@@ -47,7 +47,7 @@ de:
|
|
47
47
|
private_space: Privatsphäre
|
48
48
|
promoted: Hervorgehoben
|
49
49
|
published_at: Veröffentlicht am
|
50
|
-
purpose_of_action:
|
50
|
+
purpose_of_action: Handlungszweck
|
51
51
|
scope_id: Umfang
|
52
52
|
scopes_enabled: Bereiche aktiviert
|
53
53
|
short_description: Kurze Beschreibung
|
@@ -283,11 +283,11 @@ de:
|
|
283
283
|
assemblies:
|
284
284
|
form:
|
285
285
|
announcement_help: Der Text, den Sie hier eingeben, wird dem Benutzer direkt unter den Gremien-Informationen angezeigt.
|
286
|
-
duration:
|
287
|
-
duration_help: Wenn die Dauer
|
286
|
+
duration: Aktiv bis
|
287
|
+
duration_help: Wenn die Dauer dieses Gremiums begrenzt ist, dann wählen Sie hier das Enddatum aus. Andernfalls wird das Datum als unbestimmt angezeigt.
|
288
288
|
filters: Filter
|
289
289
|
images: Bilder
|
290
|
-
included_at_help: Wählen Sie das Datum aus, an dem dieses Gremium
|
290
|
+
included_at_help: Wählen Sie das Datum aus, an dem dieses Gremium zur Plattform hinzugefügt wurde. Das Datum muss nicht zwingend mit dem Gründungsdatum übereinstimmen.
|
291
291
|
metadata: Metadaten
|
292
292
|
other: Andere
|
293
293
|
select_a_created_by: Wählen Sie eine erstellt von aus
|
@@ -331,8 +331,8 @@ de:
|
|
331
331
|
creation_date: Erstellungsdatum
|
332
332
|
data: Gremiendaten
|
333
333
|
developer_group: Gruppe der Unterstützenden
|
334
|
-
duration:
|
335
|
-
included_at:
|
334
|
+
duration: Aktiv bis
|
335
|
+
included_at: Hinzugefügt am
|
336
336
|
indefinite_duration: Unbestimmt
|
337
337
|
local_area: Gebiet der Organisation
|
338
338
|
meta_scope: Bereich
|
@@ -396,7 +396,7 @@ de:
|
|
396
396
|
member_of: Mitglied von
|
397
397
|
show:
|
398
398
|
assembly_type: Montageart
|
399
|
-
duration:
|
399
|
+
duration: Aktiv bis
|
400
400
|
is_transparent:
|
401
401
|
'false': undurchsichtig
|
402
402
|
'true': transparent
|
data/config/locales/sv.yml
CHANGED
@@ -11,7 +11,7 @@ sv:
|
|
11
11
|
assembly_type_other: Annan typ av samråd
|
12
12
|
banner_image: Bannerbild
|
13
13
|
closing_date: Slutdatum
|
14
|
-
closing_date_reason:
|
14
|
+
closing_date_reason: Anledning till avslut
|
15
15
|
composition: Sammansättning
|
16
16
|
copy_categories: Kopiera kategorier
|
17
17
|
copy_components: Kopiera komponenter
|
@@ -34,20 +34,20 @@ sv:
|
|
34
34
|
import_attachments: Importera bilagor
|
35
35
|
import_categories: Importera kategorier
|
36
36
|
import_components: Importera komponenter
|
37
|
-
included_at:
|
37
|
+
included_at: Publicerad
|
38
38
|
instagram: Instagram
|
39
|
-
internal_organisation:
|
39
|
+
internal_organisation: Organisation
|
40
40
|
is_transparent: Är transparent
|
41
41
|
local_area: Område
|
42
42
|
meta_scope: Metadata för indelning
|
43
43
|
parent_id: Överordnat samråd
|
44
44
|
participatory_processes_ids: Relaterade deltagandeprocesser
|
45
|
-
participatory_scope: Vad
|
46
|
-
participatory_structure: Hur
|
45
|
+
participatory_scope: Vad beslutas
|
46
|
+
participatory_structure: Hur fattas beslut
|
47
47
|
private_space: Privat utrymme
|
48
|
-
promoted:
|
48
|
+
promoted: Utvald
|
49
49
|
published_at: Publicerad
|
50
|
-
purpose_of_action: Syfte
|
50
|
+
purpose_of_action: Syfte
|
51
51
|
scope_id: Indelning
|
52
52
|
scopes_enabled: Aktivera indelningar
|
53
53
|
short_description: Kort beskrivning
|
@@ -85,7 +85,7 @@ sv:
|
|
85
85
|
models:
|
86
86
|
decidim/assembly:
|
87
87
|
one: Samråd
|
88
|
-
other:
|
88
|
+
other: Samråd
|
89
89
|
decidim/assembly_member:
|
90
90
|
one: Medlem i samråd
|
91
91
|
other: Medlemmar i samråd
|
@@ -223,7 +223,7 @@ sv:
|
|
223
223
|
actions: Åtgärder
|
224
224
|
created_at: Skapad
|
225
225
|
private: Privat
|
226
|
-
promoted:
|
226
|
+
promoted: Utvald
|
227
227
|
published: Publicerad
|
228
228
|
title: Titel
|
229
229
|
name: Samråd
|
@@ -336,7 +336,7 @@ sv:
|
|
336
336
|
indefinite_duration: Permanent
|
337
337
|
local_area: Organisationsområde
|
338
338
|
meta_scope: Indelning
|
339
|
-
participatory_scope: Vad
|
339
|
+
participatory_scope: Vad beslutas
|
340
340
|
participatory_structure: Så fattas beslut
|
341
341
|
target: Deltagare
|
342
342
|
title: Om samrådet
|
@@ -365,7 +365,7 @@ sv:
|
|
365
365
|
extra_data:
|
366
366
|
name: Typ & varaktighet
|
367
367
|
highlighted_assemblies:
|
368
|
-
name: Viktiga samråd
|
368
|
+
name: Viktiga samråd just nu
|
369
369
|
related_assemblies:
|
370
370
|
name: Relaterade samråd
|
371
371
|
created_by:
|
@@ -389,7 +389,7 @@ sv:
|
|
389
389
|
pages:
|
390
390
|
home:
|
391
391
|
highlighted_assemblies:
|
392
|
-
active_spaces:
|
392
|
+
active_spaces: Pågående samråd
|
393
393
|
see_all_spaces: Visa alla samråd
|
394
394
|
user_profile:
|
395
395
|
member_of:
|
@@ -452,7 +452,7 @@ sv:
|
|
452
452
|
more_info: Mer information
|
453
453
|
take_part: Delta
|
454
454
|
index:
|
455
|
-
promoted_assemblies: Viktiga samråd
|
455
|
+
promoted_assemblies: Viktiga samråd just nu
|
456
456
|
metadata:
|
457
457
|
children_item:
|
458
458
|
one: "%{count} samråd"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.28.
|
21
|
+
version: 0.28.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.28.
|
28
|
+
version: 0.28.4
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.28.
|
35
|
+
version: 0.28.4
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.28.
|
42
|
+
version: 0.28.4
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-dev
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.28.
|
49
|
+
version: 0.28.4
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.28.
|
56
|
+
version: 0.28.4
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-meetings
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.28.
|
63
|
+
version: 0.28.4
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.28.
|
70
|
+
version: 0.28.4
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-proposals
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.28.
|
77
|
+
version: 0.28.4
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.28.
|
84
|
+
version: 0.28.4
|
85
85
|
description: Assemblies component for decidim.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|