decidim-consultations 0.26.1 → 0.26.2

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/decidim/consultations/needs_consultation.rb +1 -1
  3. data/app/controllers/concerns/decidim/consultations/needs_question.rb +3 -1
  4. data/app/views/layouts/decidim/_question_components.html.erb +19 -34
  5. data/config/locales/ar.yml +13 -1
  6. data/config/locales/ca.yml +0 -1
  7. data/config/locales/cs.yml +0 -1
  8. data/config/locales/de.yml +1 -1
  9. data/config/locales/el.yml +0 -1
  10. data/config/locales/en.yml +0 -1
  11. data/config/locales/es-MX.yml +0 -1
  12. data/config/locales/es-PY.yml +0 -1
  13. data/config/locales/es.yml +0 -1
  14. data/config/locales/eu.yml +0 -1
  15. data/config/locales/fi-plain.yml +0 -1
  16. data/config/locales/fi.yml +0 -1
  17. data/config/locales/fr-CA.yml +0 -1
  18. data/config/locales/fr.yml +0 -1
  19. data/config/locales/ga-IE.yml +0 -4
  20. data/config/locales/gl.yml +0 -1
  21. data/config/locales/hu.yml +0 -1
  22. data/config/locales/id-ID.yml +0 -1
  23. data/config/locales/is-IS.yml +0 -1
  24. data/config/locales/it.yml +0 -1
  25. data/config/locales/ja.yml +0 -1
  26. data/config/locales/lb.yml +0 -1
  27. data/config/locales/lv.yml +0 -1
  28. data/config/locales/nl.yml +0 -1
  29. data/config/locales/no.yml +0 -1
  30. data/config/locales/pl.yml +0 -1
  31. data/config/locales/pt-BR.yml +0 -1
  32. data/config/locales/pt.yml +0 -1
  33. data/config/locales/ro-RO.yml +0 -1
  34. data/config/locales/ru.yml +0 -1
  35. data/config/locales/sk.yml +0 -1
  36. data/config/locales/sv.yml +0 -1
  37. data/config/locales/tr-TR.yml +0 -1
  38. data/config/locales/uk.yml +0 -1
  39. data/config/locales/zh-CN.yml +0 -1
  40. data/lib/decidim/consultations/version.rb +1 -1
  41. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 930e1b6588758c21dd94b66d50c41f617f8cf81dda92fb6db8d305a1f9c6b26e
4
- data.tar.gz: 7ef43020414884c6ee312ffe963b9671e654e458faca8ec31c655e36fd21c7b7
3
+ metadata.gz: 36e83e1093f23673048618259e416d511410b51ff07ef504fff36b1011f4b732
4
+ data.tar.gz: c767572a5560e95927fd076f91250193f2fe82111286b56f11d24f09aff816fd
5
5
  SHA512:
6
- metadata.gz: 82f2db42b45e3d6efad06492fd63953ac0bc0277b82b7028a364ca15068c38244f0ad7af62d1e94044ebaee9e195b076f05c90b46818aaf84417e46bb33003a6
7
- data.tar.gz: 663d0de423cabe6db15d6fb4f894d06158b2a1abdc5e0c8cb619a94a1ab77e14a099378417c2282bfd68e9fe3aafdb2534a1f16daf0117e8ca818b8305c38390
6
+ metadata.gz: c66328041708960eb979b00304fcd17d067491d9b9065472b3695821f06706ca833ac32e15eedec50addbd74bfed9f57a39464c92b4b895a42d0e12e857a1edd
7
+ data.tar.gz: 58b20e8996a0f024aada27e4fd0b3dac570b3947d85c519147ae7090374ef1cce7b890c124f51f9fe32cca60ed73b773451531ae7b3377beabdf8a916950e779
@@ -38,7 +38,7 @@ module Decidim
38
38
 
39
39
  def detect_consultation
40
40
  request.env["current_consultation"] ||
41
- organization_consultations.find_by(slug: params[:consultation_slug] || params[:slug])
41
+ organization_consultations.find_by!(slug: params[:consultation_slug] || params[:slug])
42
42
  end
43
43
 
44
44
  def organization_consultations
@@ -82,8 +82,10 @@ module Decidim
82
82
  private
83
83
 
84
84
  def detect_question
85
+ return unless request.env["current_question"] || params[:question_slug] || params[:slug]
86
+
85
87
  request.env["current_question"] ||
86
- OrganizationQuestions.for(current_organization).find_by(slug: params[:question_slug] || params[:slug])
88
+ OrganizationQuestions.for(current_organization).find_by!(slug: params[:question_slug] || params[:slug])
87
89
  end
88
90
 
89
91
  def detect_consultation
@@ -1,36 +1,21 @@
1
- <div class="row column">
2
- <div class="process-nav consultations-nav">
3
- <button class="process-nav__trigger hide-for-medium" data-toggle="process-nav-content">
4
- <%= icon "caret-bottom", class: "icon--small process-nav__trigger__icon", aria_label: t(".unfold"), role: "img" %>
5
- <span class="process-nav__link">
6
- <% if self.try(:current_component) %>
7
- <%= component_icon(current_component) %>
8
- <%= translated_attribute(current_component.name) %>
9
- <% else %>
10
- <%= external_icon "media/images/decidim_pages.svg", role: "img", "aria-hidden": true %>
11
- <%= t ".question_menu_item" %>
12
- <% end %>
13
- </span>
14
- </button>
1
+ <div class="row column consultations-nav">
2
+ <%
3
+ components = question.components.published.or(Decidim::Component.where(id: self.try(:current_component)))
4
+ %>
15
5
 
16
- <%
17
- components = question.components.published.or(Decidim::Component.where(id: self.try(:current_component)))
18
- %>
19
-
20
- <%=
21
- extended_navigation_bar([
22
- {
23
- name: t(".question_menu_item"),
24
- url: decidim_consultations.question_path(question),
25
- active: is_active_link?(decidim_consultations.question_path(question), :exclusive)
26
- }
27
- ] + components.map do |component|
28
- {
29
- name: translated_attribute(component.name),
30
- url: main_component_path(component),
31
- active: is_active_link?(main_component_path(component), :inclusive)
32
- }
33
- end)
34
- %>
35
- </div>
6
+ <%=
7
+ extended_navigation_bar([
8
+ {
9
+ name: t(".question_menu_item"),
10
+ url: decidim_consultations.question_path(question),
11
+ active: is_active_link?(decidim_consultations.question_path(question), :exclusive)
12
+ }
13
+ ] + components.map do |component|
14
+ {
15
+ name: translated_attribute(component.name),
16
+ url: main_component_path(component),
17
+ active: is_active_link?(main_component_path(component), :inclusive)
18
+ }
19
+ end)
20
+ %>
36
21
  </div>
@@ -37,6 +37,11 @@ ar:
37
37
  response:
38
38
  decidim_consultations_response_group_id: الفريق
39
39
  errors:
40
+ models:
41
+ question:
42
+ attributes:
43
+ max_votes:
44
+ lower_than_min: يجب أن يكون الحد الأقصى لعدد الأصوات أعلى أو يساوي الحد الأدنى.
40
45
  vote:
41
46
  decidim_consultations_response_id:
42
47
  not_found: الرد غير موجود.
@@ -85,6 +90,7 @@ ar:
85
90
  new_response: استجابة جديدة
86
91
  new_response_group: فريق جديد
87
92
  publish_results: نشر النتائج
93
+ response_groups: إدارة مجموعات الاستجابة
88
94
  unpublish_results: نتائج غير منشورة
89
95
  consultation_publications:
90
96
  create:
@@ -248,6 +254,8 @@ ar:
248
254
  label: 'ترتيب المشاورات حسب:'
249
255
  random: عشوائية
250
256
  recent: الأحدث
257
+ show:
258
+ dates: التواريخ
251
259
  content_blocks:
252
260
  highlighted_consultations:
253
261
  name: مشاورات أبرزت
@@ -359,24 +367,28 @@ ar:
359
367
  verification_required: تحقق من حسابك قبل التصويت
360
368
  vote: تصويت
361
369
  vote_modal:
370
+ close_modal: اغلاق النموذج
362
371
  contextual_help: من فضلك ، حدد خيار.
363
372
  title: 'التشاور: التصويت السؤال'
364
373
  vote_modal_confirm:
365
374
  change: يتغيرون
375
+ close_modal: اغلاق النموذج
366
376
  confirm: تؤكد
367
377
  contextual_help: يرجى تأكيد الخيار المحدد.
368
378
  title: 'التشاور: تأكيد التصويت'
369
379
  resources:
370
380
  consultations:
371
381
  actions:
382
+ comment: تعليق
372
383
  vote: صوِّت
384
+ statistics:
385
+ votes_count: الأصوات
373
386
  layouts:
374
387
  decidim:
375
388
  consultation_voting_data:
376
389
  start_voting_date: يبدأ التصويت
377
390
  question_components:
378
391
  question_menu_item: السؤال
379
- unfold: كشف
380
392
  question_header:
381
393
  back_to_consultation: انظر جميع المشاورات
382
394
  back_to_question: العودة إلى السؤال
@@ -370,7 +370,6 @@ ca:
370
370
  start_voting_date: Comença la votació
371
371
  question_components:
372
372
  question_menu_item: La pregunta
373
- unfold: Desplegar
374
373
  question_header:
375
374
  back_to_consultation: Veure totes les consultes
376
375
  back_to_question: Tornar a la pregunta
@@ -390,7 +390,6 @@ cs:
390
390
  start_voting_date: Hlasování začíná
391
391
  question_components:
392
392
  question_menu_item: Otázka
393
- unfold: Rozvinout
394
393
  question_header:
395
394
  back_to_consultation: Podívejte se na všechny konzultace
396
395
  back_to_question: Zpět k otázce
@@ -359,6 +359,7 @@ de:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Kommentar
362
363
  vote: Abstimmung
363
364
  statistics:
364
365
  consultations_count: Beratungen
@@ -369,7 +370,6 @@ de:
369
370
  start_voting_date: Die Abstimmung beginnt
370
371
  question_components:
371
372
  question_menu_item: Die Frage
372
- unfold: Entfalten
373
373
  question_header:
374
374
  back_to_consultation: Sehen Sie alle Konsultationen
375
375
  back_to_question: Zurück zur Frage
@@ -363,7 +363,6 @@ el:
363
363
  start_voting_date: Η ψηφοφορία αρχίζει
364
364
  question_components:
365
365
  question_menu_item: Η ερώτηση
366
- unfold: Αποκάλυψη
367
366
  question_header:
368
367
  back_to_consultation: Δείτε όλες τις διαβουλεύσεις
369
368
  back_to_question: Επιστροφή στην ερώτηση
@@ -371,7 +371,6 @@ en:
371
371
  start_voting_date: Voting begins
372
372
  question_components:
373
373
  question_menu_item: The question
374
- unfold: Unfold
375
374
  question_header:
376
375
  back_to_consultation: See all consultations
377
376
  back_to_question: Back to the question
@@ -370,7 +370,6 @@ es-MX:
370
370
  start_voting_date: Empieza la votación
371
371
  question_components:
372
372
  question_menu_item: La pregunta
373
- unfold: Desplegar
374
373
  question_header:
375
374
  back_to_consultation: Ver todas las consultas
376
375
  back_to_question: Volver a la pregunta
@@ -370,7 +370,6 @@ es-PY:
370
370
  start_voting_date: Empieza la votación
371
371
  question_components:
372
372
  question_menu_item: La pregunta
373
- unfold: Desplegar
374
373
  question_header:
375
374
  back_to_consultation: Ver todas las consultas
376
375
  back_to_question: Volver a la pregunta
@@ -370,7 +370,6 @@ es:
370
370
  start_voting_date: Empieza la votación
371
371
  question_components:
372
372
  question_menu_item: La pregunta
373
- unfold: Desplegar
374
373
  question_header:
375
374
  back_to_consultation: Ver todas las consultas
376
375
  back_to_question: Volver a la pregunta
@@ -370,7 +370,6 @@ eu:
370
370
  start_voting_date: Botoa hasten da
371
371
  question_components:
372
372
  question_menu_item: Galdera
373
- unfold: Zabaldu
374
373
  question_header:
375
374
  back_to_consultation: Ikusi kontsulta guztiak
376
375
  back_to_question: Itzuli galderara
@@ -370,7 +370,6 @@ fi-pl:
370
370
  start_voting_date: Äänestys alkaa
371
371
  question_components:
372
372
  question_menu_item: Kysymys
373
- unfold: Avaa
374
373
  question_header:
375
374
  back_to_consultation: Näytä kaikki kuulemiset
376
375
  back_to_question: Takaisin kysymykseen
@@ -370,7 +370,6 @@ fi:
370
370
  start_voting_date: Äänestys alkaa
371
371
  question_components:
372
372
  question_menu_item: Kysymys
373
- unfold: Avaa
374
373
  question_header:
375
374
  back_to_consultation: Näytä kaikki kuulemiset
376
375
  back_to_question: Takaisin kysymykseen
@@ -370,7 +370,6 @@ fr-CA:
370
370
  start_voting_date: Le vote commence le
371
371
  question_components:
372
372
  question_menu_item: La question
373
- unfold: Voir la suite
374
373
  question_header:
375
374
  back_to_consultation: Voir toutes les votations
376
375
  back_to_question: Retour à la question
@@ -370,7 +370,6 @@ fr:
370
370
  start_voting_date: Le vote commence le
371
371
  question_components:
372
372
  question_menu_item: La question
373
- unfold: Voir la suite
374
373
  question_header:
375
374
  back_to_consultation: Voir toutes les votations
376
375
  back_to_question: Retour à la question
@@ -131,7 +131,3 @@ ga:
131
131
  vote: Vótáil
132
132
  statistics:
133
133
  votes_count: Vótaí
134
- layouts:
135
- decidim:
136
- question_components:
137
- unfold: Oscail
@@ -285,6 +285,5 @@ gl:
285
285
  start_voting_date: Comeza a votación
286
286
  question_components:
287
287
  question_menu_item: A pregunta
288
- unfold: Despregar
289
288
  question_header:
290
289
  back_to_consultation: Ver todas as consultas
@@ -359,7 +359,6 @@ hu:
359
359
  start_voting_date: Szavazás kezdése
360
360
  question_components:
361
361
  question_menu_item: A kérdés
362
- unfold: Kibontás
363
362
  question_header:
364
363
  back_to_consultation: Összes konzultáció megtekintése
365
364
  back_to_question: Vissza a kérdéshez
@@ -272,6 +272,5 @@ id:
272
272
  start_voting_date: Voting dimulai
273
273
  question_components:
274
274
  question_menu_item: Pertanyaan
275
- unfold: Membuka
276
275
  question_header:
277
276
  back_to_consultation: Lihat semua konsultasi
@@ -178,6 +178,5 @@ is-IS:
178
178
  decidim:
179
179
  question_components:
180
180
  question_menu_item: Spurningin
181
- unfold: Fella út
182
181
  question_header:
183
182
  back_to_consultation: Sjá öll samráð
@@ -370,7 +370,6 @@ it:
370
370
  start_voting_date: Inizia la votazione
371
371
  question_components:
372
372
  question_menu_item: Il quesito
373
- unfold: spiegare
374
373
  question_header:
375
374
  back_to_consultation: Vedi tutte le consultazioni
376
375
  back_to_question: Torna al quesito
@@ -360,7 +360,6 @@ ja:
360
360
  start_voting_date: 投票が始まります
361
361
  question_components:
362
362
  question_menu_item: 質問
363
- unfold: 展開する
364
363
  question_header:
365
364
  back_to_consultation: すべての議案を見る
366
365
  back_to_question: 質問に戻る
@@ -285,7 +285,6 @@ lb:
285
285
  start_voting_date: Die Abstimmung beginnt
286
286
  question_components:
287
287
  question_menu_item: Die Frage
288
- unfold: Entfalten
289
288
  question_header:
290
289
  back_to_consultation: Sehen Sie alle Konsultationen
291
290
  back_to_question: Zurück zur Frage
@@ -369,7 +369,6 @@ lv:
369
369
  start_voting_date: Balsojums sākas
370
370
  question_components:
371
371
  question_menu_item: Jautājums
372
- unfold: Atritināt
373
372
  question_header:
374
373
  back_to_consultation: Skatīt visas konsultācijas
375
374
  back_to_question: Atpakaļ pie jautājuma
@@ -368,7 +368,6 @@ nl:
368
368
  start_voting_date: Stemmen begint
369
369
  question_components:
370
370
  question_menu_item: De vraag
371
- unfold: Uitklappen
372
371
  question_header:
373
372
  back_to_consultation: Bekijk alle burgerinspraken
374
373
  back_to_question: Terug naar de vraag
@@ -370,7 +370,6 @@
370
370
  start_voting_date: Stemming begynner
371
371
  question_components:
372
372
  question_menu_item: Spørsmålet
373
- unfold: Åpne
374
373
  question_header:
375
374
  back_to_consultation: Se alle konsultasjonene
376
375
  back_to_question: Tilbake til spørsmålet
@@ -390,7 +390,6 @@ pl:
390
390
  start_voting_date: Głosowanie rozpoczyna się
391
391
  question_components:
392
392
  question_menu_item: Pytanie
393
- unfold: Rozwiń
394
393
  question_header:
395
394
  back_to_consultation: Zobacz wszystkie konsultacje
396
395
  back_to_question: Wróć do pytania
@@ -369,7 +369,6 @@ pt-BR:
369
369
  start_voting_date: A votação começa
370
370
  question_components:
371
371
  question_menu_item: A questão
372
- unfold: Desdobrar
373
372
  question_header:
374
373
  back_to_consultation: Veja todas as consultas
375
374
  back_to_question: Voltar à pergunta
@@ -370,7 +370,6 @@ pt:
370
370
  start_voting_date: A votação começa
371
371
  question_components:
372
372
  question_menu_item: A questão
373
- unfold: Desdobrar
374
373
  question_header:
375
374
  back_to_consultation: Ver todas as consultas
376
375
  back_to_question: Retroceder à pergunta
@@ -380,7 +380,6 @@ ro:
380
380
  start_voting_date: Votarea începe
381
381
  question_components:
382
382
  question_menu_item: Întrebarea
383
- unfold: Desfășurat
384
383
  question_header:
385
384
  back_to_consultation: Vezi toate consultările
386
385
  back_to_question: Înapoi la întrebare
@@ -276,6 +276,5 @@ ru:
276
276
  start_voting_date: Голосование начинается
277
277
  question_components:
278
278
  question_menu_item: Вопрос
279
- unfold: Развернуть
280
279
  question_header:
281
280
  back_to_consultation: Просмотреть все консультации
@@ -379,7 +379,6 @@ sk:
379
379
  start_voting_date: Hlasovanie začína
380
380
  question_components:
381
381
  question_menu_item: Otázka
382
- unfold: Rozbaliť
383
382
  question_header:
384
383
  back_to_consultation: Zobraziť všetky konzultácie
385
384
  back_to_question: Späť na otázku
@@ -370,7 +370,6 @@ sv:
370
370
  start_voting_date: Omröstningen börjar
371
371
  question_components:
372
372
  question_menu_item: Frågan
373
- unfold: Veckla ut
374
373
  question_header:
375
374
  back_to_consultation: Visa alla samråd
376
375
  back_to_question: Tillbaka till frågan
@@ -365,7 +365,6 @@ tr:
365
365
  start_voting_date: Oylama başlıyor
366
366
  question_components:
367
367
  question_menu_item: Soru
368
- unfold: açılmak
369
368
  question_header:
370
369
  back_to_consultation: Tüm istişarelere bakın
371
370
  back_to_question: Soruya geri dön
@@ -276,6 +276,5 @@ uk:
276
276
  start_voting_date: Голосування починається
277
277
  question_components:
278
278
  question_menu_item: Питання
279
- unfold: Розгорнути
280
279
  question_header:
281
280
  back_to_consultation: Переглянути всі консультації
@@ -353,7 +353,6 @@ zh-CN:
353
353
  start_voting_date: 投票开始
354
354
  question_components:
355
355
  question_menu_item: 问题
356
- unfold: 展开...
357
356
  question_header:
358
357
  back_to_consultation: 查看所有协商
359
358
  back_to_question: 回到问题
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.26.1"
6
+ "0.26.2"
7
7
  end
8
8
  end
9
9
  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.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-06-14 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.26.1
19
+ version: 0.26.2
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.26.1
26
+ version: 0.26.2
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.26.1
33
+ version: 0.26.2
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.26.1
40
+ version: 0.26.2
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.26.1
47
+ version: 0.26.2
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.26.1
54
+ version: 0.26.2
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.26.1
61
+ version: 0.26.2
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.26.1
68
+ version: 0.26.2
69
69
  description: Extends Decidim adding a first level public consultation component
70
70
  email:
71
71
  - jsperezg@gmail.com