decidim-proposals 0.17.2 → 0.18.0
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/proposals/proposals_controller.rb +1 -0
- data/app/controllers/decidim/proposals/versions_controller.rb +3 -2
- data/app/forms/decidim/proposals/admin/import_participatory_text_form.rb +33 -13
- data/app/helpers/decidim/proposals/control_version_helper.rb +16 -29
- data/app/models/decidim/proposals/proposal.rb +25 -1
- data/app/queries/decidim/proposals/metrics/proposal_participants_metric_measure.rb +7 -1
- data/app/services/decidim/proposals/proposal_search.rb +2 -2
- data/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_proposal.html.erb +1 -5
- data/app/views/decidim/proposals/proposals/show.html.erb +1 -1
- data/app/views/decidim/proposals/versions/show.html.erb +1 -4
- data/config/locales/ar-SA.yml +4 -0
- data/config/locales/ar.yml +801 -0
- data/config/locales/ca.yml +4 -0
- data/config/locales/cs.yml +4 -0
- data/config/locales/de.yml +4 -0
- data/config/locales/en.yml +4 -0
- data/config/locales/es-MX.yml +4 -0
- data/config/locales/es-PY.yml +4 -0
- data/config/locales/es.yml +4 -0
- data/config/locales/eu.yml +4 -0
- data/config/locales/fi-plain.yml +4 -0
- data/config/locales/fi.yml +4 -0
- data/config/locales/fr.yml +4 -0
- data/config/locales/gl.yml +4 -0
- data/config/locales/hu.yml +4 -0
- data/config/locales/id-ID.yml +4 -0
- data/config/locales/it.yml +5 -1
- data/config/locales/nl.yml +4 -0
- data/config/locales/pl.yml +4 -0
- data/config/locales/pt-BR.yml +4 -0
- data/config/locales/pt.yml +4 -0
- data/config/locales/sv.yml +4 -0
- data/config/locales/tr-TR.yml +4 -0
- data/lib/decidim/proposals/commentable_proposal.rb +4 -0
- data/lib/decidim/proposals/component.rb +2 -0
- data/lib/decidim/proposals/proposal_serializer.rb +1 -0
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +32 -17
data/config/locales/ca.yml
CHANGED
@@ -41,6 +41,10 @@ ca:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: És necessari tornar a adjuntar l'arxiu
|
44
|
+
body:
|
45
|
+
identical: I el títol no pot ser idèntic
|
46
|
+
title:
|
47
|
+
identical: I el cos no pot ser idèntic
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: S'ha acceptat la proposta
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: S'ha canviat la categoria de la proposta
|
data/config/locales/cs.yml
CHANGED
@@ -41,6 +41,10 @@ cs:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Potřebuje být znovu připojen
|
44
|
+
body:
|
45
|
+
identical: A název nemůže být totožný
|
46
|
+
title:
|
47
|
+
identical: Tělo A nemůže být totožné
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Návrh byl akceptován
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Kategorie nabídky se změnila
|
data/config/locales/de.yml
CHANGED
@@ -41,6 +41,10 @@ de:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Muss wieder angebracht werden
|
44
|
+
body:
|
45
|
+
identical: UND Titel dürfen nicht identisch sein
|
46
|
+
title:
|
47
|
+
identical: Der UND-Körper kann nicht identisch sein
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Vorschlag angenommen
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Angebotskategorie geändert
|
data/config/locales/en.yml
CHANGED
@@ -42,6 +42,10 @@ en:
|
|
42
42
|
attributes:
|
43
43
|
attachment:
|
44
44
|
needs_to_be_reattached: Needs to be reattached
|
45
|
+
body:
|
46
|
+
identical: AND title cannot be identical
|
47
|
+
title:
|
48
|
+
identical: AND body cannot be identical
|
45
49
|
models:
|
46
50
|
decidim/proposals/accepted_proposal_event: Proposal accepted
|
47
51
|
decidim/proposals/admin/update_proposal_category_event: Proposal category changed
|
data/config/locales/es-MX.yml
CHANGED
@@ -41,6 +41,10 @@ es-MX:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Es necesario volver a adjuntar el fichero
|
44
|
+
body:
|
45
|
+
identical: Y el título no puede ser idéntico
|
46
|
+
title:
|
47
|
+
identical: Y el cuerpo no puede ser idéntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Propuesta aceptada
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: La categoría de la propuesta ha cambiado
|
data/config/locales/es-PY.yml
CHANGED
@@ -41,6 +41,10 @@ es-PY:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Es necesario volver a adjuntar el fichero
|
44
|
+
body:
|
45
|
+
identical: Y el título no puede ser idéntico
|
46
|
+
title:
|
47
|
+
identical: Y el cuerpo no puede ser idéntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Propuesta aceptada
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: La categoría de la propuesta ha cambiado
|
data/config/locales/es.yml
CHANGED
@@ -41,6 +41,10 @@ es:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Es necesario volver a adjuntar el fichero
|
44
|
+
body:
|
45
|
+
identical: Y el título no puede ser idéntico
|
46
|
+
title:
|
47
|
+
identical: Y el cuerpo no puede ser idéntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Propuesta aceptada
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Categoría de la propuesta cambiada
|
data/config/locales/eu.yml
CHANGED
@@ -41,6 +41,10 @@ eu:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Berriro uzteko beharra
|
44
|
+
body:
|
45
|
+
identical: ETA izenburua ezin da berdinak izan
|
46
|
+
title:
|
47
|
+
identical: ETA gorputzak ezin du berdinak izan
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Onartutako proposamena
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Proposamen kategoria aldatu da
|
data/config/locales/fi-plain.yml
CHANGED
@@ -41,6 +41,10 @@ fi-pl:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Liitettävä uudelleen
|
44
|
+
body:
|
45
|
+
identical: JA otsikko ei voi olla täysin sama
|
46
|
+
title:
|
47
|
+
identical: JA kuvaus ei voi olla täysin sama
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Ehdotus hyväksytty
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Ehdotuksen aihepiiri muutettu
|
data/config/locales/fi.yml
CHANGED
@@ -41,6 +41,10 @@ fi:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Liitettävä uudelleen
|
44
|
+
body:
|
45
|
+
identical: JA otsikko ei voi olla täysin sama
|
46
|
+
title:
|
47
|
+
identical: JA kuvaus ei voi olla täysin sama
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Ehdotus hyväksytty
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Ehdotuksen aihepiiri muutettu
|
data/config/locales/fr.yml
CHANGED
@@ -41,6 +41,10 @@ fr:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Doit être téléchargé de nouveau
|
44
|
+
body:
|
45
|
+
identical: ET le titre ne peut pas être identique
|
46
|
+
title:
|
47
|
+
identical: ET le corps ne peut pas être identique
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Proposition acceptée
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Catégorie de proposition modifiée
|
data/config/locales/gl.yml
CHANGED
@@ -41,6 +41,10 @@ gl:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Necesita ser reenxerado
|
44
|
+
body:
|
45
|
+
identical: E o título non pode ser idéntico
|
46
|
+
title:
|
47
|
+
identical: E o corpo non pode ser idéntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: A proposta foi aceptada
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Modificouse a categoría de proposta
|
data/config/locales/hu.yml
CHANGED
@@ -41,6 +41,10 @@ hu:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Újra kell csatolni
|
44
|
+
body:
|
45
|
+
identical: A cím nem lehet azonos
|
46
|
+
title:
|
47
|
+
identical: A test nem lehet azonos
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Javaslat elfogadva
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Javaslat kategória megváltozott
|
data/config/locales/id-ID.yml
CHANGED
@@ -41,6 +41,10 @@ id:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Perlu disambungkan kembali
|
44
|
+
body:
|
45
|
+
identical: DAN judul tidak bisa sama
|
46
|
+
title:
|
47
|
+
identical: DAN tubuh tidak bisa identik
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Proposal diterima
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Kategori proposal berubah
|
data/config/locales/it.yml
CHANGED
@@ -41,6 +41,10 @@ it:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Ha bisogno di essere ricollegato
|
44
|
+
body:
|
45
|
+
identical: E il titolo non può essere identico
|
46
|
+
title:
|
47
|
+
identical: E il corpo non può essere identico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Proposta accettata
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Categoria proposta modificata
|
@@ -313,7 +317,7 @@ it:
|
|
313
317
|
title: ANTEPRIMA DEL TESTO PARTECIPATIVO
|
314
318
|
new_import:
|
315
319
|
accepted_mime_types:
|
316
|
-
md: md
|
320
|
+
md: .md
|
317
321
|
odt: odt
|
318
322
|
bottom_hint: "(Sarai in grado di visualizzare in anteprima e ordinare le sezioni del documento)"
|
319
323
|
document_legend: 'Aggiungi un documento inferiore a 2 MB, ciascuna sezione fino a quando non verranno analizzati 3 livelli in Proposte. I formati supportati sono: %{valid_mime_types}'
|
data/config/locales/nl.yml
CHANGED
@@ -41,6 +41,10 @@ nl:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Moet opnieuw worden gekoppeld
|
44
|
+
body:
|
45
|
+
identical: EN titel kan niet identiek zijn
|
46
|
+
title:
|
47
|
+
identical: EN lichaam kan niet identiek zijn
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Voorstel geaccepteerd
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Voorstelcategorie gewijzigd
|
data/config/locales/pl.yml
CHANGED
@@ -41,6 +41,10 @@ pl:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Musi zostać ponownie podłączony
|
44
|
+
body:
|
45
|
+
identical: I tytuł nie może być identyczny
|
46
|
+
title:
|
47
|
+
identical: I ciało nie może być identyczne
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Wniosek przyjęty
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Zmieniono kategorię oferty
|
data/config/locales/pt-BR.yml
CHANGED
@@ -41,6 +41,10 @@ pt-BR:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Precisa ser recolocado
|
44
|
+
body:
|
45
|
+
identical: E o título não pode ser idêntico
|
46
|
+
title:
|
47
|
+
identical: E o corpo não pode ser idêntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Proposta aceita
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Categoria da proposta alterada
|
data/config/locales/pt.yml
CHANGED
@@ -41,6 +41,10 @@ pt:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Precisa ser recolocado
|
44
|
+
body:
|
45
|
+
identical: E o título não pode ser idêntico
|
46
|
+
title:
|
47
|
+
identical: E o corpo não pode ser idêntico
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Proposta aceita
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Categoria da proposta alterada
|
data/config/locales/sv.yml
CHANGED
@@ -41,6 +41,10 @@ sv:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Behöver återbifogas
|
44
|
+
body:
|
45
|
+
identical: OCH titel kan inte vara identisk
|
46
|
+
title:
|
47
|
+
identical: OCH kropp kan inte vara identisk
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Förslag accepterat
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Förslagskategori ändrad
|
data/config/locales/tr-TR.yml
CHANGED
@@ -41,6 +41,10 @@ tr:
|
|
41
41
|
attributes:
|
42
42
|
attachment:
|
43
43
|
needs_to_be_reattached: Yeniden bağlanması gerekiyor
|
44
|
+
body:
|
45
|
+
identical: AND title aynı olamaz
|
46
|
+
title:
|
47
|
+
identical: VE vücut aynı olamaz
|
44
48
|
models:
|
45
49
|
decidim/proposals/accepted_proposal_event: Teklif kabul edildi
|
46
50
|
decidim/proposals/admin/update_proposal_category_event: Teklif kategorisi değişti
|
@@ -13,6 +13,8 @@ Decidim.register_component(:proposals) do |component|
|
|
13
13
|
|
14
14
|
component.data_portable_entities = ["Decidim::Proposals::Proposal"]
|
15
15
|
|
16
|
+
component.newsletter_participant_entities = ["Decidim::Proposals::Proposal"]
|
17
|
+
|
16
18
|
component.actions = %w(endorse vote create withdraw)
|
17
19
|
|
18
20
|
component.query_type = "Decidim::Proposals::ProposalsType"
|
@@ -35,6 +35,7 @@ module Decidim
|
|
35
35
|
body: present(proposal).body,
|
36
36
|
state: proposal.state.to_s,
|
37
37
|
reference: proposal.reference,
|
38
|
+
answer: ensure_translatable(proposal.answer),
|
38
39
|
supports: proposal.proposal_votes_count,
|
39
40
|
endorsements: proposal.endorsements.count,
|
40
41
|
comments: proposal.comments.count,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-proposals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -60,28 +60,42 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.18.0
|
64
64
|
type: :runtime
|
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.
|
70
|
+
version: 0.18.0
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-core
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.18.0
|
78
78
|
type: :runtime
|
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.
|
84
|
+
version: 0.18.0
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: diffy
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '3.3'
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.3'
|
85
99
|
- !ruby/object:Gem::Dependency
|
86
100
|
name: doc2text
|
87
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,84 +172,84 @@ dependencies:
|
|
158
172
|
requirements:
|
159
173
|
- - '='
|
160
174
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
175
|
+
version: 0.18.0
|
162
176
|
type: :development
|
163
177
|
prerelease: false
|
164
178
|
version_requirements: !ruby/object:Gem::Requirement
|
165
179
|
requirements:
|
166
180
|
- - '='
|
167
181
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
182
|
+
version: 0.18.0
|
169
183
|
- !ruby/object:Gem::Dependency
|
170
184
|
name: decidim-assemblies
|
171
185
|
requirement: !ruby/object:Gem::Requirement
|
172
186
|
requirements:
|
173
187
|
- - '='
|
174
188
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.
|
189
|
+
version: 0.18.0
|
176
190
|
type: :development
|
177
191
|
prerelease: false
|
178
192
|
version_requirements: !ruby/object:Gem::Requirement
|
179
193
|
requirements:
|
180
194
|
- - '='
|
181
195
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
196
|
+
version: 0.18.0
|
183
197
|
- !ruby/object:Gem::Dependency
|
184
198
|
name: decidim-budgets
|
185
199
|
requirement: !ruby/object:Gem::Requirement
|
186
200
|
requirements:
|
187
201
|
- - '='
|
188
202
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
203
|
+
version: 0.18.0
|
190
204
|
type: :development
|
191
205
|
prerelease: false
|
192
206
|
version_requirements: !ruby/object:Gem::Requirement
|
193
207
|
requirements:
|
194
208
|
- - '='
|
195
209
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.
|
210
|
+
version: 0.18.0
|
197
211
|
- !ruby/object:Gem::Dependency
|
198
212
|
name: decidim-dev
|
199
213
|
requirement: !ruby/object:Gem::Requirement
|
200
214
|
requirements:
|
201
215
|
- - '='
|
202
216
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.
|
217
|
+
version: 0.18.0
|
204
218
|
type: :development
|
205
219
|
prerelease: false
|
206
220
|
version_requirements: !ruby/object:Gem::Requirement
|
207
221
|
requirements:
|
208
222
|
- - '='
|
209
223
|
- !ruby/object:Gem::Version
|
210
|
-
version: 0.
|
224
|
+
version: 0.18.0
|
211
225
|
- !ruby/object:Gem::Dependency
|
212
226
|
name: decidim-meetings
|
213
227
|
requirement: !ruby/object:Gem::Requirement
|
214
228
|
requirements:
|
215
229
|
- - '='
|
216
230
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.
|
231
|
+
version: 0.18.0
|
218
232
|
type: :development
|
219
233
|
prerelease: false
|
220
234
|
version_requirements: !ruby/object:Gem::Requirement
|
221
235
|
requirements:
|
222
236
|
- - '='
|
223
237
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
238
|
+
version: 0.18.0
|
225
239
|
- !ruby/object:Gem::Dependency
|
226
240
|
name: decidim-participatory_processes
|
227
241
|
requirement: !ruby/object:Gem::Requirement
|
228
242
|
requirements:
|
229
243
|
- - '='
|
230
244
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.
|
245
|
+
version: 0.18.0
|
232
246
|
type: :development
|
233
247
|
prerelease: false
|
234
248
|
version_requirements: !ruby/object:Gem::Requirement
|
235
249
|
requirements:
|
236
250
|
- - '='
|
237
251
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
252
|
+
version: 0.18.0
|
239
253
|
description: A proposals component for decidim's participatory spaces.
|
240
254
|
email:
|
241
255
|
- josepjaume@gmail.com
|
@@ -501,6 +515,7 @@ files:
|
|
501
515
|
- app/views/decidim/proposals/versions/show.html.erb
|
502
516
|
- config/initializers/social_share_button.rb
|
503
517
|
- config/locales/ar-SA.yml
|
518
|
+
- config/locales/ar.yml
|
504
519
|
- config/locales/ca.yml
|
505
520
|
- config/locales/cs-CZ.yml
|
506
521
|
- config/locales/cs.yml
|