decidim-debates 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/gamification/badges/commented_debates.svg +1 -78
  3. data/app/cells/decidim/debates/debate_m/data.erb +1 -1
  4. data/app/cells/decidim/debates/debate_m/footer.erb +1 -1
  5. data/app/cells/decidim/debates/debate_m/multiple_dates.erb +1 -1
  6. data/app/events/decidim/debates/create_debate_event.rb +0 -2
  7. data/app/queries/decidim/debates/metrics/debates_metric_manage.rb +2 -8
  8. data/app/views/decidim/debates/admin/debates/_form.html.erb +1 -1
  9. data/app/views/decidim/debates/debates/_filters.html.erb +17 -5
  10. data/app/views/decidim/debates/debates/index.html.erb +4 -5
  11. data/app/views/decidim/debates/debates/new.html.erb +2 -2
  12. data/app/views/decidim/debates/debates/show.html.erb +6 -0
  13. data/config/locales/bg-BG.yml +7 -0
  14. data/config/locales/ca.yml +3 -0
  15. data/config/locales/cs.yml +42 -39
  16. data/config/locales/da-DK.yml +1 -0
  17. data/config/locales/de.yml +3 -0
  18. data/config/locales/el.yml +153 -0
  19. data/config/locales/en.yml +3 -0
  20. data/config/locales/es-MX.yml +3 -0
  21. data/config/locales/es-PY.yml +3 -0
  22. data/config/locales/es.yml +3 -0
  23. data/config/locales/et-EE.yml +1 -0
  24. data/config/locales/fi-plain.yml +3 -0
  25. data/config/locales/fi.yml +8 -5
  26. data/config/locales/fr-CA.yml +154 -0
  27. data/config/locales/fr.yml +3 -0
  28. data/config/locales/ga-IE.yml +1 -0
  29. data/config/locales/hr-HR.yml +1 -0
  30. data/config/locales/hu.yml +2 -0
  31. data/config/locales/it.yml +12 -9
  32. data/config/locales/ja-JP.yml +152 -0
  33. data/config/locales/lt-LT.yml +1 -0
  34. data/config/locales/lv-LV.yml +135 -0
  35. data/config/locales/mt-MT.yml +1 -0
  36. data/config/locales/nl.yml +3 -0
  37. data/config/locales/no.yml +73 -70
  38. data/config/locales/pl.yml +43 -40
  39. data/config/locales/pt-BR.yml +1 -3
  40. data/config/locales/pt.yml +38 -35
  41. data/config/locales/ro-RO.yml +156 -0
  42. data/config/locales/sk-SK.yml +156 -0
  43. data/config/locales/sk.yml +156 -0
  44. data/config/locales/sl.yml +10 -0
  45. data/config/locales/sr-CS.yml +6 -0
  46. data/config/locales/sv.yml +3 -0
  47. data/db/migrate/20200320105918_index_foreign_keys_in_decidim_debates_debates.rb +7 -0
  48. data/lib/decidim/debates/version.rb +1 -1
  49. metadata +34 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24ecd1ca0fa6741a77421c6b5112305b9201676dd84b2919c2a9928d9dbd733d
4
- data.tar.gz: 74033142cb4faa0833f9825c922b6aec32a9b2ed45f14928f6277686641b0405
3
+ metadata.gz: ddc30c91b8b1754325501a2d193748df71ddf35344a6162a56784189faf5e37b
4
+ data.tar.gz: 1baf08c4025770f4d6bfce209a279ea90312d05118857b8b96d61c6eb8c0416f
5
5
  SHA512:
6
- metadata.gz: 8816ad224e66345561250ca0b7c53639c1d3984262cc38642e4d194e3a4533687e38edeeb492765e51c078775f325237e3a05414109c9ce52cfea8378fc6cbd1
7
- data.tar.gz: 422fb26a1ea59bd93f421527d7608c420d6b21c78c3c7353b49944af77b4c71d2a2cf221a4c39d1fcfdd514a2ccb7543ecc16a4587af3c42a72f755315783a6c
6
+ metadata.gz: 56c4b2858559a7a96eb0fbfd727b9c352ec109083255f403f4433752372d71a60843f558e98fa3bc47fed4427aa27c70fcb986bdcdcd11ffebf07238ae54c613
7
+ data.tar.gz: e2dc00d6efd0687e86a44119c35d28e1e14c08eca9a1062762d0681e5e238bc4b6af8944f1e66a2c0dc93ade4aa007207f1623199930567ec986e9b2d8eca1d0
@@ -1,78 +1 @@
1
- <svg version="1.1" id="debates-svg"
2
- xmlns="http://www.w3.org/2000/svg"
3
- xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
4
- y="0px" width="1080px" height="1080px" viewBox="0 0 1080 1080" enable-background="new 0 0 1080 1080" xml:space="preserve">
5
- <g id="debates" class="stroke-primary">
6
- <g id="bubble">
7
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
8
- M787.237,226.039H282.916c-21.99,0-39.815,17.825-39.815,39.815v18.882l-97.325,60.747h97.325
9
- c0,21.989,17.826,39.815,39.815,39.815h504.321c21.989,0,39.814-17.826,39.814-39.815v-79.629
10
- C827.052,243.864,809.227,226.039,787.237,226.039z"/>
11
- <circle class="fill-primary" id="_x35_0-pct_17_" fill="#31536E" fill-opacity="0.5" cx="419.45" cy="304.983" r="28.217"/>
12
- <circle class="fill-primary" id="_x35_0-pct_16_" fill="#31536E" fill-opacity="0.5" cx="525.623" cy="304.983" r="28.217"/>
13
- <circle class="fill-primary" id="_x35_0-pct_15_" fill="#31536E" fill-opacity="0.5" cx="631.796" cy="304.983" r="28.217"/>
14
- </g>
15
- <g id="bubble_1_">
16
- <path class="fill-primary" id="_x32_5-pct_16_" fill="#31536E" fill-opacity="0.25" d="M787.237,690.545H282.916c-25.857,0-46.894,21.036-46.894,46.894
17
- v14.956l-93.995,58.67c-2.68,1.672-3.926,4.916-3.057,7.953c0.87,3.035,3.646,5.129,6.805,5.129h90.78
18
- c3.422,22.511,22.908,39.814,46.36,39.814h504.321c25.856,0,46.892-21.036,46.892-46.894v-79.629
19
- C834.129,711.581,813.094,690.545,787.237,690.545z"/>
20
- <circle class="fill-primary" id="_x35_0-pct_12_" fill="#31536E" fill-opacity="0.5" cx="419.45" cy="776.567" r="28.217"/>
21
- <circle class="fill-primary" id="_x35_0-pct_13_" fill="#31536E" fill-opacity="0.5" cx="525.623" cy="776.567" r="28.217"/>
22
- <circle class="fill-primary" id="_x35_0-pct_14_" fill="#31536E" fill-opacity="0.5" cx="631.796" cy="776.567" r="28.217"/>
23
- </g>
24
- <g id="bubble_black">
25
- <path class="fill-primary" fill="#31536E" d="M937.098,575.391l-101.198-66.172v-15.054c0-25.757-13.768-38.968-39.814-38.968H291.763
26
- c-26.82,0-53.971,13.121-53.971,38.968v79.63c0,25.936,28.246,54.817,53.971,54.817h504.322c23.02,0,42.802-17.695,46.333-39.814
27
- h90.806c3.131,0,5.89-2.26,6.784-5.26C940.902,580.536,939.719,577.104,937.098,575.391z"/>
28
- <circle fill="#FFFFFF" fill-opacity="0.5" cx="641.854" cy="541.5" r="28.217"/>
29
- <circle fill="#FFFFFF" fill-opacity="0.5" cx="535.682" cy="541.5" r="28.217"/>
30
- <circle fill="#FFFFFF" fill-opacity="0.5" cx="429.509" cy="541.5" r="28.217"/>
31
- </g>
32
- <g id="stars_9" class="stars">
33
- <path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
34
- M731.204,149.355c0-14.688-18.667-35.355-35.354-35.355c15.354,0,35.354-20.333,35.354-35.355
35
- c0,15.022,16.666,35.355,35.354,35.355C747.537,114,731.204,134.667,731.204,149.355z"/>
36
- <g>
37
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="937.586" cy="323.411" r="13.5"/>
38
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="921.087" y1="306.676" x2="899.874" y2="285.463"/>
39
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="955.028" y1="340.617" x2="976.241" y2="361.83"/>
40
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="954.321" y1="307.383" x2="975.534" y2="286.17"/>
41
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="921.087" y1="340.617" x2="899.874" y2="361.83"/>
42
- </g>
43
- <g>
44
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="169.816" y1="626.094" x2="143.654" y2="652.258"/>
45
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="134.462" y1="661.449" x2="108.299" y2="687.613"/>
46
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="169.109" y1="687.613" x2="142.946" y2="661.449"/>
47
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="133.755" y1="652.258" x2="107.592" y2="626.094"/>
48
- </g>
49
- <path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
50
- M559.419,965.473c0,0-21.565,4.034-26.516,8.981c-4.948,4.948-8.982,26.517-8.982,26.517s-4.034-21.566-8.982-26.517
51
- c-4.948-4.947-26.516-8.981-26.516-8.981s22.077-4.547,26.516-8.983c4.438-4.438,8.982-26.515,8.982-26.515
52
- s4.034,21.564,8.982,26.515C537.852,961.438,559.419,965.473,559.419,965.473z"/>
53
- <g>
54
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="949.705" cy="649.667" r="16.604"/>
55
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="913.805" cy="649.667" r="6.433"/>
56
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="949.705" cy="685.568" r="6.432"/>
57
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="985.605" cy="649.667" r="6.433"/>
58
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="949.705" cy="613.766" r="6.432"/>
59
- </g>
60
- <g>
61
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="314.95" y1="78.973" x2="369.854" y2="133.878"/>
62
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="369.854" y1="78.973" x2="314.95" y2="133.878"/>
63
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="324.204" y1="106" x2="297.204" y2="106"/>
64
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="362.204" y1="106" x2="389.204" y2="106"/>
65
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="343.204" y1="125" x2="343.204" y2="152"/>
66
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="343.204" y1="87" x2="343.204" y2="60"/>
67
- </g>
68
- <g>
69
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="106.204" y1="356" x2="106.204" y2="435"/>
70
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="145.204" y1="396" x2="66.204" y2="396"/>
71
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="86.204" cy="415.5" r="7.039"/>
72
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="86.204" cy="375.5" r="7.039"/>
73
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="126.204" cy="415.5" r="7.039"/>
74
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="126.204" cy="375.5" r="7.039"/>
75
- </g>
76
- </g>
77
- </g>
78
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="debates-svg" width="1080" height="1080" x="0" y="0" enable-background="new 0 0 1080 1080" version="1.1" viewBox="0 0 1080 1080" xml:space="preserve"><g id="debates" class="stroke-primary"><g id="bubble"><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M787.237,226.039H282.916c-21.99,0-39.815,17.825-39.815,39.815v18.882l-97.325,60.747h97.325 c0,21.989,17.826,39.815,39.815,39.815h504.321c21.989,0,39.814-17.826,39.814-39.815v-79.629 C827.052,243.864,809.227,226.039,787.237,226.039z"/><circle id="_x35_0-pct_17_" cx="419.45" cy="304.983" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/><circle id="_x35_0-pct_16_" cx="525.623" cy="304.983" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/><circle id="_x35_0-pct_15_" cx="631.796" cy="304.983" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/></g><g id="bubble_1_"><path id="_x32_5-pct_16_" fill="#31536E" fill-opacity=".25" d="M787.237,690.545H282.916c-25.857,0-46.894,21.036-46.894,46.894 v14.956l-93.995,58.67c-2.68,1.672-3.926,4.916-3.057,7.953c0.87,3.035,3.646,5.129,6.805,5.129h90.78 c3.422,22.511,22.908,39.814,46.36,39.814h504.321c25.856,0,46.892-21.036,46.892-46.894v-79.629 C834.129,711.581,813.094,690.545,787.237,690.545z" class="fill-primary"/><circle id="_x35_0-pct_12_" cx="419.45" cy="776.567" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/><circle id="_x35_0-pct_13_" cx="525.623" cy="776.567" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/><circle id="_x35_0-pct_14_" cx="631.796" cy="776.567" r="28.217" fill="#31536E" fill-opacity=".5" class="fill-primary"/></g><g id="bubble_black"><path fill="#31536E" d="M937.098,575.391l-101.198-66.172v-15.054c0-25.757-13.768-38.968-39.814-38.968H291.763 c-26.82,0-53.971,13.121-53.971,38.968v79.63c0,25.936,28.246,54.817,53.971,54.817h504.322c23.02,0,42.802-17.695,46.333-39.814 h90.806c3.131,0,5.89-2.26,6.784-5.26C940.902,580.536,939.719,577.104,937.098,575.391z" class="fill-primary"/><circle cx="641.854" cy="541.5" r="28.217" fill="#FFF" fill-opacity=".5"/><circle cx="535.682" cy="541.5" r="28.217" fill="#FFF" fill-opacity=".5"/><circle cx="429.509" cy="541.5" r="28.217" fill="#FFF" fill-opacity=".5"/></g><g id="stars_9" class="stars"><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M731.204,149.355c0-14.688-18.667-35.355-35.354-35.355c15.354,0,35.354-20.333,35.354-35.355 c0,15.022,16.666,35.355,35.354,35.355C747.537,114,731.204,134.667,731.204,149.355z"/><g><circle cx="937.586" cy="323.411" r="13.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="921.087" x2="899.874" y1="306.676" y2="285.463" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="955.028" x2="976.241" y1="340.617" y2="361.83" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="954.321" x2="975.534" y1="307.383" y2="286.17" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="921.087" x2="899.874" y1="340.617" y2="361.83" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="169.816" x2="143.654" y1="626.094" y2="652.258" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="134.462" x2="108.299" y1="661.449" y2="687.613" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="169.109" x2="142.946" y1="687.613" y2="661.449" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="133.755" x2="107.592" y1="652.258" y2="626.094" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M559.419,965.473c0,0-21.565,4.034-26.516,8.981c-4.948,4.948-8.982,26.517-8.982,26.517s-4.034-21.566-8.982-26.517 c-4.948-4.947-26.516-8.981-26.516-8.981s22.077-4.547,26.516-8.983c4.438-4.438,8.982-26.515,8.982-26.515 s4.034,21.564,8.982,26.515C537.852,961.438,559.419,965.473,559.419,965.473z"/><g><circle cx="949.705" cy="649.667" r="16.604" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="913.805" cy="649.667" r="6.433" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="949.705" cy="685.568" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="985.605" cy="649.667" r="6.433" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="949.705" cy="613.766" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="314.95" x2="369.854" y1="78.973" y2="133.878" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="369.854" x2="314.95" y1="78.973" y2="133.878" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="324.204" x2="297.204" y1="106" y2="106" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="362.204" x2="389.204" y1="106" y2="106" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="343.204" x2="343.204" y1="125" y2="152" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="343.204" x2="343.204" y1="87" y2="60" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="106.204" x2="106.204" y1="356" y2="435" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="145.204" x2="66.204" y1="396" y2="396" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="86.204" cy="415.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="86.204" cy="375.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="126.204" cy="415.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="126.204" cy="375.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g></g></g></svg>
@@ -1,7 +1,7 @@
1
1
  <div class="card__icondata">
2
2
  <ul class="card-data">
3
3
  <li class="card-data__item">
4
- <%= icon "datetime", class: "icon--big" %>
4
+ <%= icon "datetime", class: "icon--big", role: "img", aria_label: t("decidim.debates.debates.show.date") %>
5
5
  </li>
6
6
  <%= debate_date %>
7
7
  </ul>
@@ -1,5 +1,5 @@
1
1
  <div class="card__footer">
2
2
  <div class="card__support">
3
- <%= link_to t("participate", scope: "decidim.debates.debates.debate"), resource_path, class: "card__button button secondary button--sc small light" %>
3
+ <%= link_to t("participate", scope: "decidim.debates.debates.debate"), resource_path, class: "card__button button button--sc small" %>
4
4
  </div>
5
5
  </div>
@@ -6,7 +6,7 @@
6
6
  </strong>
7
7
  <%= formatted_start_time %>
8
8
  </div>
9
- <%= icon "arrow-thin-right", class: "icon--big muted" %>
9
+ <%= icon "arrow-thin-right", class: "icon--big muted", role: "img", "aria-hidden": true %>
10
10
  <div>
11
11
  <strong>
12
12
  <%= l end_date, format: :decidim_with_month_name %>
@@ -14,8 +14,6 @@ module Decidim
14
14
 
15
15
  i18n_attributes :space_title, :space_path
16
16
 
17
- delegate :author, to: :resource
18
-
19
17
  def resource_text
20
18
  translated_attribute(resource.description)
21
19
  end
@@ -9,9 +9,6 @@ module Decidim
9
9
  end
10
10
 
11
11
  def save
12
- return @registry if @registry
13
-
14
- @registry = []
15
12
  cumulative.each do |key, cumulative_value|
16
13
  next if cumulative_value.zero?
17
14
 
@@ -21,10 +18,8 @@ module Decidim
21
18
  organization: @organization, decidim_category_id: category_id,
22
19
  participatory_space_type: space_type, participatory_space_id: space_id)
23
20
  record.assign_attributes(cumulative: cumulative_value, quantity: quantity_value)
24
- @registry << record
21
+ record.save!
25
22
  end
26
- @registry.each(&:save!)
27
- @registry
28
23
  end
29
24
 
30
25
  private
@@ -32,8 +27,7 @@ module Decidim
32
27
  def query
33
28
  return @query if @query
34
29
 
35
- components = Decidim::Component.where(participatory_space: retrieve_participatory_spaces).published
36
- @query = Decidim::Debates::Debate.where(component: components).joins(:component)
30
+ @query = Decidim::Debates::Debate.where(component: visible_component_ids_from_spaces(retrieve_participatory_spaces)).joins(:component)
37
31
  .left_outer_joins(:category)
38
32
  @query = @query.where("decidim_debates_debates.start_time <= ?", end_time)
39
33
  @query = @query.group("decidim_categorizations.decidim_category_id",
@@ -30,7 +30,7 @@
30
30
  </div>
31
31
 
32
32
  <div class="row column">
33
- <%= form.categories_select :decidim_category_id, current_participatory_space.categories, prompt: "", disable_parents: false %>
33
+ <%= form.categories_select :decidim_category_id, current_participatory_space.categories, include_blank: "", disable_parents: false %>
34
34
  </div>
35
35
  </div>
36
36
  </div>
@@ -1,20 +1,32 @@
1
+ <%= render partial: "decidim/shared/filter_form_help", locals: { skip_to_id: "debates" } %>
2
+
1
3
  <%= filter_form_for filter do |form| %>
2
4
  <div class="filters__section">
3
5
  <div class="filters__search">
4
6
  <div class="input-group">
5
- <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search") %>
7
+ <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), data: { disable_dynamic_change: true } %>
6
8
  <div class="input-group-button">
7
- <button type="submit" class="button button--muted">
8
- <%= icon "magnifying-glass", aria_label: t(".search") %>
9
+ <button type="submit" class="button" aria-controls="debates">
10
+ <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
9
11
  </button>
10
12
  </div>
11
13
  </div>
12
14
  </div>
13
15
  </div>
14
16
 
15
- <%= form.collection_radio_buttons :origin, [["all", t(".all")], ["official", t(".official")], ["citizens", t(".citizens")]], :first, :last, legend_title: t(".origin") %>
17
+ <%= form.collection_radio_buttons :origin, [["all", t(".all")], ["official", t(".official")], ["citizens", t(".citizens")]], :first, :last, { legend_title: t(".origin") }, "aria-controls": "debates" %>
16
18
 
17
19
  <% if current_component.categories.any? %>
18
- <%= form.categories_select :category_id, current_component.categories, legend_title: t(".category"), disable_parents: false, label: false, prompt: t(".category_prompt") %>
20
+ <%= form.categories_select :category_id,
21
+ current_component.categories,
22
+ {
23
+ legend_title: t(".category"),
24
+ disable_parents: false,
25
+ label: "",
26
+ include_blank: t(".category_prompt"),
27
+ aria_label: t(".category")
28
+ },
29
+ "aria-label": t(".category"),
30
+ "aria-controls": "debates" %>
19
31
  <% end %>
20
32
  <% end %>
@@ -2,16 +2,15 @@
2
2
 
3
3
  <div class="row columns">
4
4
  <div class="title-action">
5
- <h2 id="debates-count" class="title-action__title section-heading">
5
+ <h3 id="debates-count" class="title-action__title section-heading">
6
6
  <%= render partial: "count" %>
7
- </h2>
7
+ </h3>
8
8
  <% if current_settings.creation_enabled? && current_component.participatory_space.can_participate?(current_user) %>
9
9
  <%= action_authorized_link_to :create, new_debate_path, class: "title-action__action button small", data: { "redirect_url" => new_debate_path } do %>
10
10
  <%= t(".new_debate") %>
11
- <%= icon "plus" %>
11
+ <%= icon "plus", role: "img", "aria-hidden": true %>
12
12
  <% end %>
13
13
  <% end %>
14
- </a>
15
14
  </div>
16
15
  </div>
17
16
  <div class="row">
@@ -21,7 +20,7 @@
21
20
  <%= render partial: "filters" %>
22
21
  </div>
23
22
  </div>
24
- <div id="debates" class="columns mediumlarge-8 large-9">
23
+ <div id="debates" class="columns mediumlarge-8 large-9" aria-live="polite">
25
24
  <%= render partial: "debates" %>
26
25
  </div>
27
26
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="row columns">
2
2
  <%= link_to :back, class: "muted-link" do %>
3
- <%= icon "chevron-left", class: "icon--small" %>
3
+ <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
4
4
  <%= t(".back") %>
5
5
  <% end %>
6
6
  <h2 class="section-heading"><%= t(".title") %></h2>
@@ -21,7 +21,7 @@
21
21
 
22
22
  <% if current_participatory_space.categories&.any? %>
23
23
  <div class="field">
24
- <%= form.categories_select :category_id, current_participatory_space.categories, prompt: t(".select_a_category"), disable_parents: false %>
24
+ <%= form.categories_select :category_id, current_participatory_space.categories, include_blank: t(".select_a_category"), disable_parents: false %>
25
25
  </div>
26
26
  <% end %>
27
27
 
@@ -14,6 +14,12 @@ edit_link(
14
14
  %>
15
15
 
16
16
  <div class="row column view-header">
17
+
18
+ <%= link_to :debates, class: "small hollow" do %>
19
+ <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
20
+ <%= t(".back") %>
21
+ <% end %>
22
+
17
23
  <h2 class="heading2">
18
24
  <%== present(debate).title %>
19
25
  </h2>
@@ -0,0 +1,7 @@
1
+ bg:
2
+ activemodel:
3
+ attributes:
4
+ debate:
5
+ category_id: Категория
6
+ decidim_category_id: Категория
7
+ description: Описание
@@ -96,6 +96,9 @@ ca:
96
96
  create: Crear
97
97
  select_a_category: Si us plau, selecciona una categoria
98
98
  title: Nou debat
99
+ show:
100
+ back: Torna al llistat
101
+ date: Data
99
102
  last_activity:
100
103
  new_debate_at_html: "<span>Nou debat a %{link}</span>"
101
104
  models:
@@ -5,15 +5,15 @@ cs:
5
5
  category_id: Kategorie
6
6
  decidim_category_id: Kategorie
7
7
  description: Popis
8
- end_time: Konec na
8
+ end_time: Končí v
9
9
  information_updates: Aktualizace informací
10
10
  instructions: Pokyny k účasti
11
11
  start_time: Začíná v
12
12
  title: Titul
13
13
  user_group_id: Vytvořte debatu jako
14
14
  models:
15
- decidim/debates/create_debate_event: Rozprava
16
- decidim/debates/creation_disabled_event: Debaty jsou zakázány
15
+ decidim/debates/create_debate_event: Debata
16
+ decidim/debates/creation_disabled_event: Debaty zakázány
17
17
  decidim/debates/creation_enabled_event: Debaty povoleny
18
18
  activerecord:
19
19
  models:
@@ -34,11 +34,11 @@ cs:
34
34
  comments_enabled: Komentáře povoleny
35
35
  step:
36
36
  announcement: Oznámení
37
- comments_blocked: Komentáře byly blokovány
37
+ comments_blocked: Komentáře blokovány
38
38
  creation_enabled: Vytváření debaty účastníky povoleno
39
39
  debates:
40
40
  actions:
41
- confirm_destroy: Jsi si jistá?
41
+ confirm_destroy: Jste si jisti?
42
42
  destroy: Odstranit
43
43
  edit: Upravit
44
44
  new: Nové %{name}
@@ -47,26 +47,26 @@ cs:
47
47
  debates:
48
48
  create:
49
49
  invalid: Během debaty vznikl problém.
50
- success: Diskuse byla úspěšně vytvořena.
50
+ success: Debata byla úspěšně vytvořena.
51
51
  destroy:
52
- success: Diskuse byla úspěšně smazána.
52
+ success: Debata byla úspěšně smazána.
53
53
  edit:
54
- title: Upravit diskusi
55
- update: Aktualizace debaty
54
+ title: Upravit debatu
55
+ update: Aktualizovat debatu
56
56
  index:
57
57
  title: Debaty
58
58
  new:
59
- create: Vytvořte debatu
59
+ create: Vytvořit debatu
60
60
  title: Nová debata
61
61
  update:
62
- invalid: Při aktualizaci této rozpravy došlo k problému.
62
+ invalid: Při aktualizaci této debaty došlo k problému.
63
63
  success: Debata byla úspěšně aktualizována.
64
64
  models:
65
65
  debate:
66
- name: Rozprava
66
+ name: Debata
67
67
  admin_log:
68
68
  debate:
69
- create: "%{user_name} vytvořila %{resource_name} diskusi o %{space_name} prostoru"
69
+ create: "%{user_name} vytvořil debatu %{resource_name} o skupině %{space_name}"
70
70
  update: "%{user_name} aktualizovala %{resource_name} diskusi o %{space_name} prostoru"
71
71
  debates:
72
72
  count:
@@ -76,38 +76,41 @@ cs:
76
76
  many: "%{count} debat"
77
77
  other: "%{count} debat"
78
78
  create:
79
- invalid: Během debaty vznikl problém.
80
- success: Diskuse byla úspěšně vytvořena.
79
+ invalid: Při vytváření debaty došlo k chybě.
80
+ success: Debata byla úspěšně vytvořena.
81
81
  debate:
82
82
  participate: Účastnit se
83
83
  filters:
84
- all: Všechno
84
+ all: Vše
85
85
  category: Kategorie
86
86
  category_prompt: Vyberte kategorii
87
87
  citizens: Občané
88
88
  official: Oficiální
89
89
  origin: Původ
90
- search: Vyhledávání
90
+ search: Hledat
91
91
  filters_small_view:
92
- close_modal: Zavřít modální
92
+ close_modal: Zavřít okno
93
93
  filter: Filtr
94
94
  filter_by: Filtrovat podle
95
- unfold: Rozvinout
95
+ unfold: Rozbalit
96
96
  index:
97
97
  new_debate: Nová debata
98
98
  new:
99
- back: Zadní
99
+ back: Zpět
100
100
  create: Vytvořit
101
101
  select_a_category: Vyberte kategorii
102
102
  title: Nová debata
103
+ show:
104
+ back: Zpět na seznam
105
+ date: Datum
103
106
  last_activity:
104
- new_debate_at_html: "<span>Nová diskuse na %{link}</span>"
107
+ new_debate_at_html: "<span>Nová debata na %{link}</span>"
105
108
  models:
106
109
  debate:
107
110
  fields:
108
111
  end_time: Datum ukončení
109
112
  official_debate: Oficiální debata
110
- start_time: Počáteční datum
113
+ start_time: Datum zahájení
111
114
  title: Titul
112
115
  events:
113
116
  debates:
@@ -115,41 +118,41 @@ cs:
115
118
  space_followers:
116
119
  email_intro: |-
117
120
  Ahoj,
118
- Byla vytvořena nová diskuse "%{resource_title}" ve %{space_title} účastnických prostorách, zkontrolovat a přispět:
119
- email_outro: Toto upozornění jste obdrželi, protože jste sledovali %{space_title} účastnického prostoru. Po předchozím propojení můžete přestat přijímat oznámení.
121
+ Byla vytvořena nová debata "%{resource_title}" ve skupině %{space_title}, omrkněte a přispějte:
122
+ email_outro: Toto oznámení jste obdrželi, protože sledujete participační prostor %{space_title}. Můžete zrušit příjem oznámení na předchozím odkazu.
120
123
  email_subject: Nová debata "%{resource_title}" na %{space_title}
121
- notification_title: Diskuse <a href="%{resource_path}">%{resource_title}</a> byla vytvořena na <a href="%{space_path}">%{space_title}</a>.
124
+ notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> byla vytvořena na <a href="%{space_path}">%{space_title}</a>.
122
125
  user_followers:
123
126
  email_intro: |-
124
127
  Ahoj,
125
- %{author_name} %{author_nickname}, který sledujete, vytvořil novou rozpravu "%{resource_title}". Vyzkoušejte to a přispějte:
126
- email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{author_nickname}. Po předchozím propojení můžete přestat přijímat oznámení.
127
- email_subject: Nová diskuse "%{resource_title}" o %{author_nickname}
128
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> vytvořil <a href="%{resource_path}">%{resource_title}</a> diskusi.
128
+ %{author_name} %{author_nickname}, kterého sledujete, vytvořil novou debatu "%{resource_title}". Omrkněte ji a přispějte:
129
+ email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{author_nickname}. Na předchozím odkazu můžete přestat přijímat oznámení.
130
+ email_subject: Nová debata "%{resource_title}" od %{author_nickname}
131
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> vytvořil <a href="%{resource_path}">%{resource_title}</a> debatu.
129
132
  creation_disabled:
130
- email_intro: 'Tvorba debaty již není aktivní v %{participatory_space_title}. Na otevřených diskusích se můžete stále účastnit z této stránky:'
131
- email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Po předchozím propojení můžete přestat přijímat oznámení.
133
+ email_intro: 'Tvorba debaty již není aktivní v %{participatory_space_title}. Na otevřených debatách se můžete stále účastnit z této stránky:'
134
+ email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Na předchozím odkazu můžete přestat přijímat oznámení.
132
135
  email_subject: Vytváření debaty je zakázáno v %{participatory_space_title}
133
136
  notification_title: Vytváření debaty je nyní zakázáno v <a href="%{participatory_space_url}">%{participatory_space_title}</a>
134
137
  creation_enabled:
135
138
  email_intro: 'Nyní můžete začít debaty v %{participatory_space_title}! Začněte se účastnit této stránky:'
136
- email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Po předchozím propojení můžete přestat přijímat oznámení.
139
+ email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Na předchozím odkazu můžete přestat přijímat oznámení.
137
140
  email_subject: Debaty jsou nyní k dispozici v %{participatory_space_title}
138
- notification_title: Nyní můžete začít <a href="%{resource_path}">nových debat</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>
141
+ notification_title: Nyní můžete začít <a href="%{resource_path}">novou debatu</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>
139
142
  gamification:
140
143
  badges:
141
144
  commented_debates:
142
145
  conditions:
143
- - Vyberte si otevřenou rozpravu, do které se můžete zapojit
144
- description: Tento odznak se uděluje, když se aktivně účastníte různých debat tím, že ponecháte své komentáře.
146
+ - Vyberte si otevřenou debatu, do které se můžete zapojit
147
+ description: Tento odznak se uděluje, když se aktivně účastníte různých debat tím, že tam zanecháte své komentáře.
145
148
  description_another: Tento uživatel se zúčastnil %{score} debat.
146
149
  description_own: Zúčastnili jste se %{score} debat.
147
150
  name: Debaty
148
- next_level_in: Zúčastněte se dalších %{score} diskusí, abyste dosáhli další úrovně!
149
- unearned_another: Tento účastník se dosud nezúčastnil žádné diskuse.
150
- unearned_own: Zatím jste se nezúčastnili žádné diskuse.
151
+ next_level_in: Zúčastněte se dalších %{score} debat, abyste dosáhli další úrovně!
152
+ unearned_another: Tento účastník se dosud nezúčastnil žádné debaty.
153
+ unearned_own: Zatím jste se nezúčastnili žádné debaty.
151
154
  metrics:
152
155
  debates:
153
- description: Počet vytvořených diskusí
156
+ description: Počet vytvořených debat
154
157
  object: debaty
155
158
  title: Debaty