decidim-consultations 0.27.4 → 0.27.6
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/consultations/consultation_widgets_controller.rb +12 -1
- data/app/controllers/decidim/consultations/question_widgets_controller.rb +11 -1
- data/app/permissions/decidim/consultations/permissions.rb +21 -1
- data/app/views/decidim/consultations/consultation_widgets/show.html.erb +3 -0
- data/config/locales/bg.yml +20 -0
- data/config/locales/de.yml +6 -6
- data/config/locales/eu.yml +46 -41
- data/config/locales/fi.yml +7 -7
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +5 -0
- data/config/locales/lt.yml +4 -0
- data/config/locales/pl.yml +5 -0
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/th-TH.yml +1 -0
- data/decidim-consultations.gemspec +32 -0
- data/lib/decidim/consultations/admin_engine.rb +1 -1
- data/lib/decidim/consultations/version.rb +1 -1
- metadata +19 -16
- data/config/environment.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70d308f959b191e49afa7cddadb93a6c1375e4690906f8078c71799d27ba0ea7
|
4
|
+
data.tar.gz: c19d420f1e83465d167ee2cbbb35cda7c3db64d3924fb9ab912ea553835fcc64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50752f7ece621a07b4b50164a29b60c6f36c6838936b2a935823dd56d98467e61f488e8e0dfb02d81ab11ff1d1e435859ef7f009c972444dbb810638d4174b9
|
7
|
+
data.tar.gz: 29287d203a004965f01674b3212e95760babf8f0bdad446202c3236f802c13911b315242e84cdad57e755cb1f8ad8800f31539bda49c5811ddc2bb99a3e19d09
|
@@ -4,13 +4,20 @@ module Decidim
|
|
4
4
|
module Consultations
|
5
5
|
class ConsultationWidgetsController < Decidim::WidgetsController
|
6
6
|
helper Decidim::SanitizeHelper
|
7
|
+
helper ConsultationsHelper
|
7
8
|
|
8
9
|
layout false
|
9
10
|
|
11
|
+
def show
|
12
|
+
enforce_permission_to :embed, :participatory_space, current_participatory_space: model if model
|
13
|
+
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
10
17
|
private
|
11
18
|
|
12
19
|
def model
|
13
|
-
@model ||= Consultation.find_by(slug: params[:consultation_slug])
|
20
|
+
@model ||= Consultation.where(organization: current_organization).published.find_by(slug: params[:consultation_slug])
|
14
21
|
end
|
15
22
|
|
16
23
|
def current_participatory_space
|
@@ -20,6 +27,10 @@ module Decidim
|
|
20
27
|
def iframe_url
|
21
28
|
@iframe_url ||= consultation_consultation_widget_url(model)
|
22
29
|
end
|
30
|
+
|
31
|
+
def permission_class_chain
|
32
|
+
::Decidim.permissions_registry.chain_for(::Decidim::Consultations::ApplicationController)
|
33
|
+
end
|
23
34
|
end
|
24
35
|
end
|
25
36
|
end
|
@@ -8,10 +8,16 @@ module Decidim
|
|
8
8
|
|
9
9
|
helper Decidim::SanitizeHelper
|
10
10
|
|
11
|
+
def show
|
12
|
+
enforce_permission_to :embed, :question, question: model if model
|
13
|
+
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
11
17
|
private
|
12
18
|
|
13
19
|
def model
|
14
|
-
@model ||= current_question
|
20
|
+
@model ||= current_question if current_question.published?
|
15
21
|
end
|
16
22
|
|
17
23
|
def current_participatory_space
|
@@ -21,6 +27,10 @@ module Decidim
|
|
21
27
|
def iframe_url
|
22
28
|
@iframe_url ||= question_question_widget_url(model)
|
23
29
|
end
|
30
|
+
|
31
|
+
def permission_class_chain
|
32
|
+
::Decidim.permissions_registry.chain_for(::Decidim::Consultations::ApplicationController)
|
33
|
+
end
|
24
34
|
end
|
25
35
|
end
|
26
36
|
end
|
@@ -5,6 +5,8 @@ module Decidim
|
|
5
5
|
class Permissions < Decidim::DefaultPermissions
|
6
6
|
def permissions
|
7
7
|
allowed_public_anonymous_action?
|
8
|
+
allowed_public_embed_consultation_action?
|
9
|
+
allowed_public_embed_question_action?
|
8
10
|
|
9
11
|
return permission_action unless user
|
10
12
|
|
@@ -22,7 +24,7 @@ module Decidim
|
|
22
24
|
end
|
23
25
|
|
24
26
|
def consultation
|
25
|
-
@consultation ||= context.fetch(:consultation, nil)
|
27
|
+
@consultation ||= context.fetch(:current_participatory_space, nil) || context.fetch(:consultation, nil)
|
26
28
|
end
|
27
29
|
|
28
30
|
def authorized?(permission_action, resource: nil)
|
@@ -45,6 +47,24 @@ module Decidim
|
|
45
47
|
end
|
46
48
|
end
|
47
49
|
|
50
|
+
def allowed_public_embed_consultation_action?
|
51
|
+
return unless permission_action.action == :embed &&
|
52
|
+
[:consultation, :participatory_space].include?(permission_action.subject) &&
|
53
|
+
consultation
|
54
|
+
|
55
|
+
return disallow! unless consultation.published?
|
56
|
+
|
57
|
+
allow!
|
58
|
+
end
|
59
|
+
|
60
|
+
def allowed_public_embed_question_action?
|
61
|
+
return unless permission_action.action == :embed && permission_action.subject == :question && question
|
62
|
+
|
63
|
+
return disallow! unless question.published?
|
64
|
+
|
65
|
+
allow!
|
66
|
+
end
|
67
|
+
|
48
68
|
def allowed_public_action?
|
49
69
|
return unless permission_action.scope == :public
|
50
70
|
return unless permission_action.subject == :question
|
@@ -1,3 +1,6 @@
|
|
1
|
+
<p><%= translated_attribute(model.title) %></p>
|
2
|
+
<p><%= current_organization.name %></p>
|
3
|
+
|
1
4
|
<%= render partial: "decidim/consultations/consultations/consultation_details", locals: { consultation: model } %>
|
2
5
|
<%= render partial: "decidim/consultations/consultations/highlighted_questions", locals: { consultation: model } %>
|
3
6
|
<%= render partial: "decidim/consultations/consultations/regular_questions", locals: { consultation: model } %>
|
data/config/locales/bg.yml
CHANGED
@@ -1 +1,21 @@
|
|
1
|
+
---
|
1
2
|
bg:
|
3
|
+
activerecord:
|
4
|
+
errors:
|
5
|
+
models:
|
6
|
+
decidim/consultations/vote:
|
7
|
+
attributes:
|
8
|
+
question:
|
9
|
+
invalid_num_votes: Броят на гласовете е невалиден
|
10
|
+
decidim:
|
11
|
+
admin:
|
12
|
+
consultations:
|
13
|
+
deprecation_warning: Модулът за консултации ще бъде отхвърлен в близко бъдеще. Работим върху следващата криптографски защитена версия, наречена Гласувания.
|
14
|
+
question_configuration:
|
15
|
+
disable_external_voting: Моля, деактивирайте външното гласуване за разширени конфигурации
|
16
|
+
consultations:
|
17
|
+
last_activity:
|
18
|
+
new_question_at_html: "<span>Нов въпрос в(ъв) %{link}</span>"
|
19
|
+
question_votes:
|
20
|
+
create:
|
21
|
+
error: Възникна проблем с гласуването по въпроса
|
data/config/locales/de.yml
CHANGED
@@ -24,8 +24,8 @@ de:
|
|
24
24
|
max_votes: Maximale Anzahl von Stimmen
|
25
25
|
min_votes: Mindestanzahl von Stimmen
|
26
26
|
origin_scope: Umfang
|
27
|
-
origin_title:
|
28
|
-
origin_url:
|
27
|
+
origin_title: Herkunft
|
28
|
+
origin_url: Herkunfts--URL
|
29
29
|
participatory_scope: Partizipativer Bereich
|
30
30
|
promoter_group: Promoter-Gruppe
|
31
31
|
question_context: Kontext
|
@@ -131,7 +131,7 @@ de:
|
|
131
131
|
models:
|
132
132
|
consultation:
|
133
133
|
fields:
|
134
|
-
created_at:
|
134
|
+
created_at: Erstellt am
|
135
135
|
published: Veröffentlicht
|
136
136
|
title: Titel
|
137
137
|
name:
|
@@ -139,7 +139,7 @@ de:
|
|
139
139
|
other: Konsultationen
|
140
140
|
question:
|
141
141
|
fields:
|
142
|
-
created_at:
|
142
|
+
created_at: Erstellt am
|
143
143
|
published: Veröffentlicht
|
144
144
|
title: Titel
|
145
145
|
name:
|
@@ -147,7 +147,7 @@ de:
|
|
147
147
|
other: Fragen
|
148
148
|
response:
|
149
149
|
fields:
|
150
|
-
created_at:
|
150
|
+
created_at: Erstellt am
|
151
151
|
response_group: Gruppe
|
152
152
|
title: Titel
|
153
153
|
name:
|
@@ -267,7 +267,7 @@ de:
|
|
267
267
|
title: Konsultationen
|
268
268
|
last_activity:
|
269
269
|
new_consultation: Neue Konsultation
|
270
|
-
new_question_at_html: "<span>Neue Frage
|
270
|
+
new_question_at_html: "<span>Neue Frage auf %{link}</span>"
|
271
271
|
pages:
|
272
272
|
home:
|
273
273
|
highlighted_consultations:
|
data/config/locales/eu.yml
CHANGED
@@ -5,34 +5,34 @@ eu:
|
|
5
5
|
consultation:
|
6
6
|
banner_image: Banner irudia
|
7
7
|
decidim_highlighted_scope_id: Nabarmendutako esparrua
|
8
|
-
description:
|
8
|
+
description: Deskribapena
|
9
9
|
end_voting_date: Botoaren bukaerak
|
10
10
|
introductory_image: Sarrera-irudia
|
11
11
|
introductory_video_url: Sarrera bideoaren URLa
|
12
12
|
questions: Galderak
|
13
13
|
slug: URL slug
|
14
14
|
start_voting_date: Botoa hasten da
|
15
|
-
subtitle:
|
15
|
+
subtitle: Azpititulua
|
16
16
|
title: Izenburua
|
17
17
|
question:
|
18
18
|
banner_image: Banner irudia
|
19
|
-
decidim_scope_id: Udal
|
19
|
+
decidim_scope_id: Udal Arloa
|
20
20
|
hashtag: hashtag
|
21
21
|
hero_image: Hasiera irudia
|
22
22
|
i_frame_url: Kanpoko boto-sistemaren URLa
|
23
23
|
instructions: Jarraibide osagarriak botoa emateko
|
24
24
|
max_votes: Gehieneko boto kopurua
|
25
25
|
min_votes: Gutxieneko boto kopurua
|
26
|
-
origin_scope:
|
27
|
-
origin_title:
|
26
|
+
origin_scope: Esparrua
|
27
|
+
origin_title: Jatorria
|
28
28
|
origin_url: Jatorria URLa
|
29
|
-
participatory_scope:
|
29
|
+
participatory_scope: Esparru parte-hartzailea
|
30
30
|
promoter_group: Sustatzailearen taldea
|
31
31
|
question_context: Testuingurua
|
32
32
|
reference: Erreferentzia
|
33
|
-
scope: Udal
|
33
|
+
scope: Udal Arloa
|
34
34
|
slug: URL slug
|
35
|
-
subtitle:
|
35
|
+
subtitle: Azpititulua
|
36
36
|
vote: Kanpoko boto sistema
|
37
37
|
what_is_decided: Zer erabaki
|
38
38
|
response:
|
@@ -70,30 +70,30 @@ eu:
|
|
70
70
|
admin:
|
71
71
|
actions:
|
72
72
|
back_to_responses: Itzuli erantzunetara
|
73
|
-
new_consultation:
|
74
|
-
new_question:
|
75
|
-
new_response:
|
73
|
+
new_consultation: Beste kontsulta bat
|
74
|
+
new_question: Beste galdera bat
|
75
|
+
new_response: Beste erantzun bat
|
76
76
|
new_response_group: Talde berri bat
|
77
77
|
publish_results: Argitaratu emaitzak
|
78
78
|
response_groups: Kudeatu erantzun-multzoak
|
79
79
|
unpublish_results: Argitaratu emaitzak
|
80
80
|
consultation_publications:
|
81
81
|
create:
|
82
|
-
error:
|
82
|
+
error: Arazo bat egon da kontsulta hau argitaratzean.
|
83
83
|
success: Kontsulta argitaratua.
|
84
84
|
destroy:
|
85
|
-
error:
|
85
|
+
error: Arazo bat egon da kontsulta hau desargitaratzean.
|
86
86
|
success: Kontsulta argitaratu gabe.
|
87
87
|
consultation_results_publications:
|
88
88
|
create:
|
89
|
-
error:
|
89
|
+
error: Arazo bat egon da kontsultaren emaitzak argitaratzean.
|
90
90
|
success: Kontsulta emaitzak argitaratu dira.
|
91
91
|
destroy:
|
92
|
-
error:
|
92
|
+
error: Arazo bat egon da kontsultaren emaitzak desargitaratzean.
|
93
93
|
success: Kontsulta emaitzak argitaratu gabe.
|
94
94
|
consultations:
|
95
95
|
create:
|
96
|
-
error:
|
96
|
+
error: Arazo bat egon da beste kontsulta bat sortzean.
|
97
97
|
success: Kontsulta sortu da.
|
98
98
|
deprecation_warning: Kontsulten modulua laster zaharkituta egongo da. Lantzen ari gara kriptografikoki segurua izango den hurrengo bertsioa, Bozketak izenekoa.
|
99
99
|
edit:
|
@@ -106,13 +106,13 @@ eu:
|
|
106
106
|
published: Argitaratutako
|
107
107
|
new:
|
108
108
|
create: Sortu
|
109
|
-
title:
|
109
|
+
title: Beste kontsulta bat
|
110
110
|
results:
|
111
111
|
not_visible: Emaitzak eskuragai egongo dira inkesta ixten denean
|
112
112
|
participants: "%{count} parte-hartzaile"
|
113
113
|
total_votes: 'Guztira: %{count} boto'
|
114
114
|
update:
|
115
|
-
error:
|
115
|
+
error: Arazo bat egon da kontsulta hau eguneratzean.
|
116
116
|
success: Kontsultak eguneratu egin du.
|
117
117
|
menu:
|
118
118
|
consultations: kontsultak
|
@@ -121,7 +121,7 @@ eu:
|
|
121
121
|
questions: Galderak
|
122
122
|
results: Emaitzak
|
123
123
|
questions_submenu:
|
124
|
-
attachments:
|
124
|
+
attachments: Eranskinak
|
125
125
|
categories: Kategoriak
|
126
126
|
components: Osagaiak
|
127
127
|
configuration: Konfigurazioa
|
@@ -160,14 +160,14 @@ eu:
|
|
160
160
|
title: Konfigurazio aurreratua
|
161
161
|
question_publications:
|
162
162
|
create:
|
163
|
-
error:
|
163
|
+
error: Arazo bat egon da galdera hau argitaratzean.
|
164
164
|
success: Galdera argitaratu da.
|
165
165
|
destroy:
|
166
|
-
error:
|
166
|
+
error: Arazo bat egon da galdera hau desargitaratzean.
|
167
167
|
success: Galdera argitaratu gabe.
|
168
168
|
questions:
|
169
169
|
create:
|
170
|
-
error:
|
170
|
+
error: Arazo bat egon da beste galdera bat sortzean.
|
171
171
|
success: Galdera zuzen sortu da.
|
172
172
|
destroy:
|
173
173
|
success: Galdera ezabatu da.
|
@@ -180,16 +180,16 @@ eu:
|
|
180
180
|
published: Argitaratutako
|
181
181
|
new:
|
182
182
|
create: Sortu
|
183
|
-
title:
|
183
|
+
title: Beste galdera bat
|
184
184
|
update:
|
185
|
-
error:
|
185
|
+
error: Arazo bat egon da galdera hau eguneratzean.
|
186
186
|
success: Galdera ondo eguneratu da.
|
187
187
|
response_groups:
|
188
188
|
create:
|
189
|
-
error:
|
189
|
+
error: Arazo bat egon da beste erantzun-multzo bat sortzean.
|
190
190
|
success: Erantzun-multzoa zuzen sortu da.
|
191
191
|
destroy:
|
192
|
-
error: Arazo bat
|
192
|
+
error: Arazo bat egon da erantzun-multzoa ezabatzean. Egiaztatu ez dagoela erantzunik horren menpe.
|
193
193
|
success: Erantzun-multzoa zuzen ezabatu da.
|
194
194
|
edit:
|
195
195
|
update: Eguneratu
|
@@ -198,16 +198,16 @@ eu:
|
|
198
198
|
help: Erabili multzoak aukera anitzeko galderak paketetan antolatzeko.
|
199
199
|
new:
|
200
200
|
create: Sortu
|
201
|
-
title:
|
201
|
+
title: Beste erantzun-multzo bat
|
202
202
|
update:
|
203
|
-
error:
|
203
|
+
error: Arazo bat egon da erantzun hau eguneratzean.
|
204
204
|
success: Erantzuna zuzen eguneratu da.
|
205
205
|
responses:
|
206
206
|
create:
|
207
|
-
error:
|
207
|
+
error: Arazo bat egon da beste erantzun bat sortzean.
|
208
208
|
success: Erantzun arrakastaz sortu da.
|
209
209
|
destroy:
|
210
|
-
error:
|
210
|
+
error: Arazo bat egon da erantzuna kentzean.
|
211
211
|
success: Erantzun ezabatu da.
|
212
212
|
edit:
|
213
213
|
update: eguneratzearen
|
@@ -215,9 +215,9 @@ eu:
|
|
215
215
|
title: Informazio orokorra
|
216
216
|
new:
|
217
217
|
create: Sortu
|
218
|
-
title:
|
218
|
+
title: Beste erantzun bat
|
219
219
|
update:
|
220
|
-
error:
|
220
|
+
error: Arazo bat egon da erantzun hau eguneratzean.
|
221
221
|
success: Erantzun arrakastaz eguneratu da.
|
222
222
|
titles:
|
223
223
|
consultations: kontsultak
|
@@ -251,7 +251,8 @@ eu:
|
|
251
251
|
other: "%{count} kontsultak"
|
252
252
|
filters:
|
253
253
|
active: Aktiboak
|
254
|
-
all:
|
254
|
+
all: Guztiak
|
255
|
+
date: Data
|
255
256
|
finished: Amaitu
|
256
257
|
search: Bilatu
|
257
258
|
upcoming: Datozen
|
@@ -261,12 +262,12 @@ eu:
|
|
261
262
|
filter_by: Iragazi arabera
|
262
263
|
unfold: Zabaldu
|
263
264
|
highlighted_questions:
|
264
|
-
title: '%{scope_name}
|
265
|
+
title: '%{scope_name} ren galderak'
|
265
266
|
index:
|
266
267
|
title: kontsultak
|
267
268
|
last_activity:
|
268
|
-
new_consultation:
|
269
|
-
new_question_at_html: "<span>Galdera berria %{link}</span>"
|
269
|
+
new_consultation: Beste kontsulta bat
|
270
|
+
new_question_at_html: "<span>Galdera berria hemen: %{link}</span>"
|
270
271
|
pages:
|
271
272
|
home:
|
272
273
|
highlighted_consultations:
|
@@ -300,7 +301,7 @@ eu:
|
|
300
301
|
votes: Botoak
|
301
302
|
question_votes:
|
302
303
|
create:
|
303
|
-
error:
|
304
|
+
error: Arazo abt egon da galdera bozkatzean
|
304
305
|
success: Kontsultaren amaiera arte alda dezakezu. Azken botoa baino ez da onartuko.
|
305
306
|
title_error: Boto-akatsa!
|
306
307
|
title_success: Botoa zuzen erregistratu da
|
@@ -334,10 +335,10 @@ eu:
|
|
334
335
|
show:
|
335
336
|
read_more: Irakurri gehiago
|
336
337
|
statistics:
|
337
|
-
assistants_count_title:
|
338
|
-
comments_count_title:
|
338
|
+
assistants_count_title: Laguntzaileak
|
339
|
+
comments_count_title: Iruzkinak
|
339
340
|
meetings_count_title: Bilerak
|
340
|
-
supports_count_title:
|
341
|
+
supports_count_title: Botoak
|
341
342
|
technical_info:
|
342
343
|
technical_data: Datu teknikoak
|
343
344
|
vote_button:
|
@@ -355,12 +356,16 @@ eu:
|
|
355
356
|
close_modal: Itxi leihoa
|
356
357
|
confirm: Berretsi
|
357
358
|
contextual_help: Berretsi hautatutako aukera.
|
358
|
-
title: 'Kontsulta: berretsi
|
359
|
+
title: 'Kontsulta: berretsi botoa'
|
359
360
|
resources:
|
360
361
|
consultations:
|
361
362
|
actions:
|
362
363
|
comment: Iruzkina
|
363
364
|
vote: Eman botoa
|
365
|
+
question:
|
366
|
+
actions:
|
367
|
+
comment: Iruzkina
|
368
|
+
vote: Bozkatu
|
364
369
|
statistics:
|
365
370
|
consultations_count: Kontsultak
|
366
371
|
votes_count: Botoak
|
data/config/locales/fi.yml
CHANGED
@@ -76,21 +76,21 @@ fi:
|
|
76
76
|
new_response_group: Uusi ryhmä
|
77
77
|
publish_results: Julkaise tulokset
|
78
78
|
response_groups: Hallitse vastausryhmiä
|
79
|
-
unpublish_results:
|
79
|
+
unpublish_results: Lopeta tulosten julkaisu
|
80
80
|
consultation_publications:
|
81
81
|
create:
|
82
82
|
error: Kuulemisen julkaiseminen epäonnistui.
|
83
83
|
success: Kuulemisen julkaiseminen onnistui.
|
84
84
|
destroy:
|
85
85
|
error: Kuulemisen julkaisun lopettaminen epäonnistui.
|
86
|
-
success: Kuulemisen julkaisun
|
86
|
+
success: Kuulemisen julkaisun lopettaminen onnistui.
|
87
87
|
consultation_results_publications:
|
88
88
|
create:
|
89
89
|
error: Kuulemisen tulosten julkaisu epäonnistui.
|
90
90
|
success: Kuulemisen tulosten julkaisu onnistui.
|
91
91
|
destroy:
|
92
|
-
error: Kuulemisen tulosten julkaisun
|
93
|
-
success: Kuulemisen tulosten julkaisun
|
92
|
+
error: Kuulemisen tulosten julkaisun lopettaminen epäonnistui.
|
93
|
+
success: Kuulemisen tulosten julkaisun lopettaminen onnistui.
|
94
94
|
consultations:
|
95
95
|
create:
|
96
96
|
error: Kuulemisen luonti epäonnistui.
|
@@ -163,8 +163,8 @@ fi:
|
|
163
163
|
error: Kysymyksen julkaisu epäonnistui.
|
164
164
|
success: Kysymyksen julkaisu onnistui.
|
165
165
|
destroy:
|
166
|
-
error: Kysymyksen julkaisun
|
167
|
-
success: Kysymyksen julkaisun
|
166
|
+
error: Kysymyksen julkaisun lopettaminen epäonnistui.
|
167
|
+
success: Kysymyksen julkaisun lopettaminen onnistui.
|
168
168
|
questions:
|
169
169
|
create:
|
170
170
|
error: Uuden kysymyksen luonti epäonnistui.
|
@@ -337,7 +337,7 @@ fi:
|
|
337
337
|
statistics:
|
338
338
|
assistants_count_title: Avustajaa
|
339
339
|
comments_count_title: Kommenttia
|
340
|
-
meetings_count_title:
|
340
|
+
meetings_count_title: Tapaamiset
|
341
341
|
supports_count_title: Ääntä
|
342
342
|
technical_info:
|
343
343
|
technical_data: Tekniset tiedot
|
@@ -0,0 +1 @@
|
|
1
|
+
he:
|
data/config/locales/hu.yml
CHANGED
@@ -95,6 +95,7 @@ hu:
|
|
95
95
|
create:
|
96
96
|
error: Hiba történt az új konzultáció létrehozása során.
|
97
97
|
success: Konzultáció létrehozása sikeres.
|
98
|
+
deprecation_warning: A konzultációk modul a közeljövőben elavulttá válik. Dolgozunk a következő kriptográfiailag biztonságos változaton, a Szavazásokon.
|
98
99
|
edit:
|
99
100
|
update: Frissítés
|
100
101
|
form:
|
@@ -361,6 +362,10 @@ hu:
|
|
361
362
|
actions:
|
362
363
|
comment: Megjegyzés
|
363
364
|
vote: Szavazás
|
365
|
+
question:
|
366
|
+
actions:
|
367
|
+
comment: Hozzászólás
|
368
|
+
vote: Szavazás
|
364
369
|
statistics:
|
365
370
|
consultations_count: Konzultációk
|
366
371
|
votes_count: Szavazások
|
data/config/locales/lt.yml
CHANGED
data/config/locales/pl.yml
CHANGED
@@ -268,6 +268,7 @@ pl:
|
|
268
268
|
filters:
|
269
269
|
active: Aktualne
|
270
270
|
all: Wszystko
|
271
|
+
date: Data
|
271
272
|
finished: Zakończone
|
272
273
|
search: Szukaj
|
273
274
|
upcoming: Nadchodzące
|
@@ -381,6 +382,10 @@ pl:
|
|
381
382
|
actions:
|
382
383
|
comment: Skomentuj
|
383
384
|
vote: Wspieranie
|
385
|
+
question:
|
386
|
+
actions:
|
387
|
+
comment: Skomentuj
|
388
|
+
vote: Głosuj
|
384
389
|
statistics:
|
385
390
|
consultations_count: Konsultacje
|
386
391
|
votes_count: Głosy
|
@@ -0,0 +1 @@
|
|
1
|
+
sq:
|
@@ -0,0 +1 @@
|
|
1
|
+
th:
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "decidim/consultations/version"
|
6
|
+
|
7
|
+
# Describe your gem and declare its dependencies:
|
8
|
+
Gem::Specification.new do |s|
|
9
|
+
s.version = Decidim::Consultations.version
|
10
|
+
s.authors = ["Juan Salvador Perez Garcia"]
|
11
|
+
s.email = ["jsperezg@gmail.com"]
|
12
|
+
s.license = "AGPL-3.0"
|
13
|
+
s.homepage = "https://github.com/decidim/decidim"
|
14
|
+
s.required_ruby_version = "~> 3.0.0"
|
15
|
+
|
16
|
+
s.name = "decidim-consultations"
|
17
|
+
s.summary = "Decidim consultations module"
|
18
|
+
s.description = "Extends Decidim adding a first level public consultation component"
|
19
|
+
|
20
|
+
s.files = Dir.chdir(__dir__) do
|
21
|
+
`git ls-files -z`.split("\x0").select do |f|
|
22
|
+
(File.expand_path(f) == __FILE__) ||
|
23
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
s.add_dependency "decidim-admin", Decidim::Consultations.version
|
28
|
+
s.add_dependency "decidim-comments", Decidim::Consultations.version
|
29
|
+
s.add_dependency "decidim-core", Decidim::Consultations.version
|
30
|
+
|
31
|
+
s.add_development_dependency "decidim-dev", Decidim::Consultations.version
|
32
|
+
end
|
@@ -157,7 +157,7 @@ module Decidim
|
|
157
157
|
initializer "decidim_consultations.admin_consultation_components_menu" do
|
158
158
|
Decidim.menu :admin_consultation_components_menu do |menu|
|
159
159
|
current_participatory_space.components.each do |component|
|
160
|
-
caption =
|
160
|
+
caption = decidim_escape_translated(component.name)
|
161
161
|
if component.primary_stat.present?
|
162
162
|
caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
163
163
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-consultations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.27.
|
19
|
+
version: 0.27.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.27.
|
26
|
+
version: 0.27.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-comments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.27.
|
33
|
+
version: 0.27.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.27.
|
40
|
+
version: 0.27.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.27.
|
47
|
+
version: 0.27.6
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.27.
|
54
|
+
version: 0.27.6
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-dev
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.27.
|
61
|
+
version: 0.27.6
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.27.
|
68
|
+
version: 0.27.6
|
69
69
|
description: Extends Decidim adding a first level public consultation component
|
70
70
|
email:
|
71
71
|
- jsperezg@gmail.com
|
@@ -243,7 +243,6 @@ files:
|
|
243
243
|
- app/views/layouts/decidim/question.html.erb
|
244
244
|
- app/views/layouts/decidim/question_multivote.html.erb
|
245
245
|
- config/assets.rb
|
246
|
-
- config/environment.rb
|
247
246
|
- config/locales/am-ET.yml
|
248
247
|
- config/locales/ar-SA.yml
|
249
248
|
- config/locales/ar.yml
|
@@ -276,6 +275,7 @@ files:
|
|
276
275
|
- config/locales/ga-IE.yml
|
277
276
|
- config/locales/gl.yml
|
278
277
|
- config/locales/gn-PY.yml
|
278
|
+
- config/locales/he-IL.yml
|
279
279
|
- config/locales/hr-HR.yml
|
280
280
|
- config/locales/hr.yml
|
281
281
|
- config/locales/hu.yml
|
@@ -310,9 +310,11 @@ files:
|
|
310
310
|
- config/locales/sk.yml
|
311
311
|
- config/locales/sl.yml
|
312
312
|
- config/locales/so-SO.yml
|
313
|
+
- config/locales/sq-AL.yml
|
313
314
|
- config/locales/sr-CS.yml
|
314
315
|
- config/locales/sv.yml
|
315
316
|
- config/locales/sw-KE.yml
|
317
|
+
- config/locales/th-TH.yml
|
316
318
|
- config/locales/ti-ER.yml
|
317
319
|
- config/locales/tr-TR.yml
|
318
320
|
- config/locales/uk.yml
|
@@ -361,6 +363,7 @@ files:
|
|
361
363
|
- db/seeds/city.jpeg
|
362
364
|
- db/seeds/city2.jpeg
|
363
365
|
- db/seeds/homepage_image.jpg
|
366
|
+
- decidim-consultations.gemspec
|
364
367
|
- lib/decidim/api/consultation_question_type.rb
|
365
368
|
- lib/decidim/api/consultation_type.rb
|
366
369
|
- lib/decidim/consultations.rb
|
@@ -376,15 +379,15 @@ homepage: https://github.com/decidim/decidim
|
|
376
379
|
licenses:
|
377
380
|
- AGPL-3.0
|
378
381
|
metadata: {}
|
379
|
-
post_install_message:
|
382
|
+
post_install_message:
|
380
383
|
rdoc_options: []
|
381
384
|
require_paths:
|
382
385
|
- lib
|
383
386
|
required_ruby_version: !ruby/object:Gem::Requirement
|
384
387
|
requirements:
|
385
|
-
- - "
|
388
|
+
- - "~>"
|
386
389
|
- !ruby/object:Gem::Version
|
387
|
-
version:
|
390
|
+
version: 3.0.0
|
388
391
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
389
392
|
requirements:
|
390
393
|
- - ">="
|
@@ -392,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
395
|
version: '0'
|
393
396
|
requirements: []
|
394
397
|
rubygems_version: 3.2.22
|
395
|
-
signing_key:
|
398
|
+
signing_key:
|
396
399
|
specification_version: 4
|
397
400
|
summary: Decidim consultations module
|
398
401
|
test_files: []
|
data/config/environment.rb
DELETED
File without changes
|