decidim-proposals 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/decidim_proposals_manifest.js +1 -0
- data/app/cells/decidim/proposals/collaborative_draft_m_cell.rb +2 -2
- data/app/cells/decidim/proposals/participatory_text_proposal_cell.rb +6 -2
- data/app/cells/decidim/proposals/proposal_activity_cell.rb +2 -2
- data/app/cells/decidim/proposals/proposal_m_cell.rb +2 -2
- data/app/helpers/decidim/proposals/participatory_texts_helper.rb +2 -1
- data/app/presenters/decidim/proposals/collaborative_draft_presenter.rb +4 -4
- data/app/presenters/decidim/proposals/proposal_presenter.rb +4 -4
- data/app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb +1 -1
- data/app/views/decidim/proposals/admin/shared/_info_proposal.html.erb +4 -4
- data/app/views/decidim/proposals/collaborative_drafts/show.html.erb +2 -2
- data/app/views/decidim/proposals/proposals/_linked_proposals.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_proposal_preview.html.erb +2 -2
- data/app/views/decidim/proposals/proposals/_proposal_similar.html.erb +2 -2
- data/app/views/decidim/proposals/proposals/participatory_texts/_index.html.erb +2 -2
- data/app/views/decidim/proposals/proposals/show.html.erb +2 -2
- data/config/locales/ar-SA.yml +11 -10
- data/config/locales/ca.yml +138 -138
- data/config/locales/es.yml +105 -105
- data/config/locales/fr.yml +1 -1
- data/config/locales/it.yml +11 -11
- data/config/locales/sv.yml +1 -1
- data/lib/decidim/proposals/test/factories.rb +15 -6
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +18 -18
data/config/locales/fr.yml
CHANGED
data/config/locales/it.yml
CHANGED
@@ -74,7 +74,7 @@ it:
|
|
74
74
|
proposals:
|
75
75
|
actions:
|
76
76
|
create: Creare
|
77
|
-
endorse:
|
77
|
+
endorse: Sostieni
|
78
78
|
vote: Votazione
|
79
79
|
withdraw: ritirarsi
|
80
80
|
name: proposte
|
@@ -313,7 +313,7 @@ it:
|
|
313
313
|
title: ANTEPRIMA DEL TESTO PARTECIPATIVO
|
314
314
|
new_import:
|
315
315
|
accepted_mime_types:
|
316
|
-
md:
|
316
|
+
md: md
|
317
317
|
odt: odt
|
318
318
|
bottom_hint: "(Sarai in grado di visualizzare in anteprima e ordinare le sezioni del documento)"
|
319
319
|
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}'
|
@@ -521,7 +521,7 @@ it:
|
|
521
521
|
other: e altre %{count} persone
|
522
522
|
info-message: Si tratta di un <strong>progetto collaborativo</strong> per una proposta. Ciò significa che puoi aiutare i loro autori a modellare la proposta utilizzando la sezione dei commenti qui sotto o migliorarla direttamente richiedendo l'accesso per modificarla. Una volta che gli autori ti concederanno l'accesso, sarai in grado di apportare modifiche a questa bozza.
|
523
523
|
of_versions: "(di %{number})"
|
524
|
-
publish:
|
524
|
+
publish: Pubblica
|
525
525
|
publish_info: Pubblica questa versione della bozza o
|
526
526
|
published_proposal: proposta pubblicata
|
527
527
|
request_access: Richiesta di accesso
|
@@ -541,7 +541,7 @@ it:
|
|
541
541
|
back: Indietro
|
542
542
|
info: Stai creando una bozza collaborativa <strong></strong>.
|
543
543
|
wizard_steps:
|
544
|
-
see_steps:
|
544
|
+
see_steps: visualizza le fasi
|
545
545
|
step_1: Crea la tua bozza collaborativa
|
546
546
|
step_2: Confronta con bozze collaborative
|
547
547
|
step_3: Completa la tua bozza collaborativa
|
@@ -581,7 +581,7 @@ it:
|
|
581
581
|
amend: emendare
|
582
582
|
comment: Commento
|
583
583
|
comments: Commenti
|
584
|
-
endorse:
|
584
|
+
endorse: Sostieni
|
585
585
|
proposal_endorsements:
|
586
586
|
create:
|
587
587
|
error: Ci sono stati errori nel sostenere la proposta.
|
@@ -591,9 +591,9 @@ it:
|
|
591
591
|
proposal_endorsements_helper:
|
592
592
|
endorsement_button:
|
593
593
|
already_endorsed: approvato
|
594
|
-
endorse:
|
594
|
+
endorse: Sostieni
|
595
595
|
render_endorsements_button_card_part:
|
596
|
-
endorse:
|
596
|
+
endorse: Sostieni
|
597
597
|
proposal_votes:
|
598
598
|
create:
|
599
599
|
error: Ci sono stati errori durante la votazione della proposta.
|
@@ -621,7 +621,7 @@ it:
|
|
621
621
|
send: Anteprima
|
622
622
|
title: Modifica bozza di proposta
|
623
623
|
endorsement_identities_cabin:
|
624
|
-
endorse:
|
624
|
+
endorse: Sostieni
|
625
625
|
endorsements_card_row:
|
626
626
|
comments: Commenti
|
627
627
|
filters:
|
@@ -664,9 +664,9 @@ it:
|
|
664
664
|
preview:
|
665
665
|
modify: Modifica la proposta
|
666
666
|
proposal_edit_before_minutes:
|
667
|
-
one: Sarai in grado di modificare questa proposta durante il primo minuto dopo la pubblicazione della proposta. Una volta passata
|
668
|
-
other:
|
669
|
-
publish:
|
667
|
+
one: Sarai in grado di modificare questa proposta durante il primo minuto dopo la pubblicazione della proposta. Una volta passata questo periodo, non sarai più in grado di modificare la proposta.
|
668
|
+
other: Potrai modificare questa proposta durante i primi %{count} minuti dopo la pubblicazione della proposta. Una volta passato questo periodo, non sarai più in grado di modificare la proposta.
|
669
|
+
publish: Pubblica
|
670
670
|
title: Pubblica la tua proposta
|
671
671
|
proposal:
|
672
672
|
creation_date: 'Creazione: %{date}'
|
data/config/locales/sv.yml
CHANGED
@@ -246,10 +246,19 @@ FactoryBot.define do
|
|
246
246
|
users { nil }
|
247
247
|
# user_groups correspondence to users is by sorting order
|
248
248
|
user_groups { [] }
|
249
|
+
skip_injection { false }
|
249
250
|
end
|
250
251
|
|
251
|
-
title
|
252
|
-
|
252
|
+
title do
|
253
|
+
content = generate(:title).dup
|
254
|
+
content.prepend("<script>alert('TITLE');</script> ") unless skip_injection
|
255
|
+
content
|
256
|
+
end
|
257
|
+
body do
|
258
|
+
content = Faker::Lorem.sentences(3).join("\n")
|
259
|
+
content.prepend("<script>alert('BODY');</script> ") unless skip_injection
|
260
|
+
content
|
261
|
+
end
|
253
262
|
component { create(:proposal_component) }
|
254
263
|
published_at { Time.current }
|
255
264
|
address { "#{Faker::Address.street_name}, #{Faker::Address.city}" }
|
@@ -364,8 +373,8 @@ FactoryBot.define do
|
|
364
373
|
user_groups { [] }
|
365
374
|
end
|
366
375
|
|
367
|
-
title { generate(:title) }
|
368
|
-
body { Faker::Lorem.sentences(3).join("\n") }
|
376
|
+
title { "<script>alert(\"TITLE\");</script> " + generate(:title) }
|
377
|
+
body { "<script>alert(\"BODY\");</script>\n" + Faker::Lorem.sentences(3).join("\n") }
|
369
378
|
component { create(:proposal_component) }
|
370
379
|
address { "#{Faker::Address.street_name}, #{Faker::Address.city}" }
|
371
380
|
state { "open" }
|
@@ -395,8 +404,8 @@ FactoryBot.define do
|
|
395
404
|
end
|
396
405
|
|
397
406
|
factory :participatory_text, class: "Decidim::Proposals::ParticipatoryText" do
|
398
|
-
title {
|
399
|
-
description { Faker::Lorem.sentences(3).join("\n") }
|
407
|
+
title { "<script>alert(\"TITLE\");</script> " + generate(:title) }
|
408
|
+
description { "<script>alert(\"DESCRIPTION\");</script>\n" + Faker::Lorem.sentences(3).join("\n") }
|
400
409
|
component { create(:proposal_component) }
|
401
410
|
end
|
402
411
|
end
|
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.17.
|
4
|
+
version: 0.17.1
|
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: 2019-
|
13
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: acts_as_list
|
@@ -60,28 +60,28 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.17.
|
63
|
+
version: 0.17.1
|
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.17.
|
70
|
+
version: 0.17.1
|
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.17.
|
77
|
+
version: 0.17.1
|
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.17.
|
84
|
+
version: 0.17.1
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: doc2text
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,84 +158,84 @@ dependencies:
|
|
158
158
|
requirements:
|
159
159
|
- - '='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.17.
|
161
|
+
version: 0.17.1
|
162
162
|
type: :development
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
166
|
- - '='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.17.
|
168
|
+
version: 0.17.1
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: decidim-assemblies
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
173
|
- - '='
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.17.
|
175
|
+
version: 0.17.1
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
178
|
version_requirements: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
180
|
- - '='
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.17.
|
182
|
+
version: 0.17.1
|
183
183
|
- !ruby/object:Gem::Dependency
|
184
184
|
name: decidim-budgets
|
185
185
|
requirement: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - '='
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.17.
|
189
|
+
version: 0.17.1
|
190
190
|
type: :development
|
191
191
|
prerelease: false
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
194
|
- - '='
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.17.
|
196
|
+
version: 0.17.1
|
197
197
|
- !ruby/object:Gem::Dependency
|
198
198
|
name: decidim-dev
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - '='
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.17.
|
203
|
+
version: 0.17.1
|
204
204
|
type: :development
|
205
205
|
prerelease: false
|
206
206
|
version_requirements: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
208
|
- - '='
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 0.17.
|
210
|
+
version: 0.17.1
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: decidim-meetings
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
215
|
- - '='
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.17.
|
217
|
+
version: 0.17.1
|
218
218
|
type: :development
|
219
219
|
prerelease: false
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
221
221
|
requirements:
|
222
222
|
- - '='
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.17.
|
224
|
+
version: 0.17.1
|
225
225
|
- !ruby/object:Gem::Dependency
|
226
226
|
name: decidim-participatory_processes
|
227
227
|
requirement: !ruby/object:Gem::Requirement
|
228
228
|
requirements:
|
229
229
|
- - '='
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.17.
|
231
|
+
version: 0.17.1
|
232
232
|
type: :development
|
233
233
|
prerelease: false
|
234
234
|
version_requirements: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
236
|
- - '='
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.17.
|
238
|
+
version: 0.17.1
|
239
239
|
description: A proposals component for decidim's participatory spaces.
|
240
240
|
email:
|
241
241
|
- josepjaume@gmail.com
|