decidim-consultations 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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/consultations/icon.svg +1 -3
  3. data/app/assets/images/decidim/consultations/icon2.svg +1 -88
  4. data/app/assets/stylesheets/decidim/consultations/_question.scss +0 -6
  5. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +0 -1
  6. data/app/cells/decidim/consultations/consultation_m/data.erb +1 -1
  7. data/app/cells/decidim/consultations/consultation_m/footer.erb +1 -1
  8. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +3 -3
  9. data/app/permissions/decidim/consultations/permissions.rb +2 -0
  10. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
  11. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  12. data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
  13. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  14. data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
  15. data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
  16. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  17. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
  18. data/app/views/decidim/consultations/questions/show.html.erb +4 -4
  19. data/app/views/layouts/decidim/_question_components.html.erb +3 -3
  20. data/app/views/layouts/decidim/_question_header.html.erb +1 -1
  21. data/config/locales/ar.yml +0 -1
  22. data/config/locales/bg-BG.yml +1 -0
  23. data/config/locales/ca.yml +4 -1
  24. data/config/locales/cs.yml +10 -7
  25. data/config/locales/da-DK.yml +1 -0
  26. data/config/locales/de.yml +82 -1
  27. data/config/locales/el.yml +376 -0
  28. data/config/locales/en.yml +4 -1
  29. data/config/locales/es-MX.yml +4 -1
  30. data/config/locales/es-PY.yml +4 -1
  31. data/config/locales/es.yml +4 -1
  32. data/config/locales/et-EE.yml +1 -0
  33. data/config/locales/eu.yml +0 -1
  34. data/config/locales/fi-plain.yml +4 -1
  35. data/config/locales/fi.yml +15 -12
  36. data/config/locales/fr-CA.yml +377 -0
  37. data/config/locales/fr.yml +5 -2
  38. data/config/locales/ga-IE.yml +1 -0
  39. data/config/locales/gl.yml +0 -1
  40. data/config/locales/hr-HR.yml +1 -0
  41. data/config/locales/hu.yml +0 -1
  42. data/config/locales/id-ID.yml +0 -1
  43. data/config/locales/is-IS.yml +0 -1
  44. data/config/locales/it.yml +58 -55
  45. data/config/locales/ja-JP.yml +367 -0
  46. data/config/locales/lt-LT.yml +1 -0
  47. data/config/locales/lv-LV.yml +383 -0
  48. data/config/locales/mt-MT.yml +1 -0
  49. data/config/locales/nl.yml +4 -1
  50. data/config/locales/no.yml +2 -3
  51. data/config/locales/pl.yml +177 -96
  52. data/config/locales/pt-BR.yml +1 -2
  53. data/config/locales/pt.yml +156 -75
  54. data/config/locales/ro-RO.yml +338 -0
  55. data/config/locales/ru.yml +0 -1
  56. data/config/locales/sk-SK.yml +394 -0
  57. data/config/locales/sk.yml +393 -0
  58. data/config/locales/sl.yml +5 -0
  59. data/config/locales/sr-CS.yml +1 -0
  60. data/config/locales/sv.yml +46 -12
  61. data/config/locales/tr-TR.yml +0 -1
  62. data/config/locales/uk.yml +0 -1
  63. data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
  64. data/db/seeds/city.jpeg +0 -0
  65. data/db/seeds/city2.jpeg +0 -0
  66. data/lib/decidim/consultations/version.rb +1 -1
  67. metadata +26 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49594bb7fc09735417652233890356d9c46211a7b4ddb6db30810ff2c6642e29
4
- data.tar.gz: 26af188d66c4fd24dac2073734df4e44bb3e5973c61da151e6357bfd79cdb6d7
3
+ metadata.gz: 88bf024aaab20c665fcead026483e730e44d01f7a5d46b715c2607334e77820d
4
+ data.tar.gz: 8dcb157b10148f0d5db8a54c4b2b45f1d1e9efc9dc43e4a8f73b6d7da148d6c1
5
5
  SHA512:
6
- metadata.gz: cd8ebe2d9701e95856f6a8f719d40e45604e7ddff55b295c1049f2b0407543161a69f61e1265fe81a9f5b9ae1f2479143630eff70baa393e5e827bbfe9596283
7
- data.tar.gz: 6cac02425807edd81733577ebd9b53c341552f4156c7b54132248ba7fb55bb40e18b04e7f0aa5abfbbb55936184d7fdeb86ed3b7a3c2c36239f2b3aa75bf1a78
6
+ metadata.gz: 8e83652c0745e4022dca4e961035ddec03b2594bb3b0d6cd387fb62e5eeae097c654bed67741737ee0eca513858a5646fa27b4871a2244e3fecabfa470a11264
7
+ data.tar.gz: c816dc01c88b3094f4af1f42996aa896749c389eca66f4299a3bff2ca39b32fdd3de528d58a9f72235259c5008b6acf0f94ed58fa392232ccaf8880df57964ed
@@ -1,3 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34">
2
- <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm-2.327 14.005c.026-1.153.867-2.08 2.024-2.099h.137c1.901.032 2.584 2.347 1.065 3.915-.12.123-.951.935-1.16 1.17-.688.776-.982 1.563-.982 2.793a.944.944 0 1 0 1.89 0c0-.772.126-1.113.505-1.54.155-.174.942-.942 1.104-1.11 2.59-2.672 1.298-7.055-2.406-7.116h-.168c-2.232.036-3.85 1.817-3.898 3.945a.944.944 0 1 0 1.889.042zm2.029 10.327a1.168 1.168 0 1 0 0-2.336 1.168 1.168 0 0 0 0 2.336zm0-.945a.224.224 0 1 1 0-.447.224.224 0 0 1 0 .447z"/>
3
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm-2.327 14.005c.026-1.153.867-2.08 2.024-2.099h.137c1.901.032 2.584 2.347 1.065 3.915-.12.123-.951.935-1.16 1.17-.688.776-.982 1.563-.982 2.793a.944.944 0 1 0 1.89 0c0-.772.126-1.113.505-1.54.155-.174.942-.942 1.104-1.11 2.59-2.672 1.298-7.055-2.406-7.116h-.168c-2.232.036-3.85 1.817-3.898 3.945a.944.944 0 1 0 1.889.042zm2.029 10.327a1.168 1.168 0 1 0 0-2.336 1.168 1.168 0 0 0 0 2.336zm0-.945a.224.224 0 1 1 0-.447.224.224 0 0 1 0 .447z"/></svg>
@@ -1,88 +1 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns:dc="http://purl.org/dc/elements/1.1/"
4
- xmlns:cc="http://creativecommons.org/ns#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
- xmlns:svg="http://www.w3.org/2000/svg"
7
- xmlns="http://www.w3.org/2000/svg"
8
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
- version="1.1"
11
- id="svg2"
12
- viewBox="0 0 121.08785 121.08785"
13
- height="34.173683mm"
14
- width="34.173683mm"
15
- inkscape:version="0.91 r13725"
16
- sodipodi:docname="icon-consultation-plain.svg">
17
- <sodipodi:namedview
18
- pagecolor="#ffffff"
19
- bordercolor="#666666"
20
- borderopacity="1"
21
- objecttolerance="10"
22
- gridtolerance="10"
23
- guidetolerance="10"
24
- inkscape:pageopacity="0"
25
- inkscape:pageshadow="2"
26
- inkscape:window-width="1869"
27
- inkscape:window-height="1050"
28
- id="namedview4147"
29
- showgrid="false"
30
- inkscape:zoom="5.0512694"
31
- inkscape:cx="69.560452"
32
- inkscape:cy="50.889577"
33
- inkscape:window-x="51"
34
- inkscape:window-y="30"
35
- inkscape:window-maximized="1"
36
- inkscape:current-layer="text4154" />
37
- <defs
38
- id="defs4" />
39
- <metadata
40
- id="metadata7">
41
- <rdf:RDF>
42
- <cc:Work
43
- rdf:about="">
44
- <dc:format>image/svg+xml</dc:format>
45
- <dc:type
46
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
47
- <dc:title />
48
- </cc:Work>
49
- </rdf:RDF>
50
- </metadata>
51
- <g
52
- transform="translate(-31.864728,-35.267277)"
53
- id="layer1">
54
- <path
55
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.9000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
56
- d="m 92.408203,35.267578 c -33.420312,0 -60.542969,27.122657 -60.542969,60.542969 -1e-6,33.420313 27.122657,60.544923 60.542969,60.544923 33.420317,0 60.544927,-27.12461 60.544917,-60.544923 0,-33.420313 -27.1246,-60.54297 -60.544917,-60.542969 z m 0,2.900391 c 31.853037,-10e-7 57.644527,25.789542 57.644527,57.642578 1e-5,31.853033 -25.79149,57.644533 -57.644527,57.644533 -31.853036,0 -57.642579,-25.7915 -57.642578,-57.644533 0,-31.853036 25.789543,-57.642578 57.642578,-57.642578 z"
57
- id="path4136"
58
- inkscape:connector-curvature="0" />
59
- <path
60
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63098097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
61
- d="m 58.978516,67.554688 0,1.816406 0,24.173828 25.990234,0 0,-25.990234 -25.990234,0 z m 3.630859,3.630859 18.726563,0 0,18.728515 -18.726563,0 0,-18.728515 z"
62
- id="rect4138"
63
- inkscape:connector-curvature="0" />
64
- <path
65
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63100004;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
66
- d="m 58.978516,100.10938 0,1.81445 0,24.17383 25.990234,0 0,-25.98828 -25.990234,0 z m 3.630859,3.63085 18.726563,0 0,18.72657 -18.726563,0 0,-18.72657 z"
67
- id="rect4140"
68
- inkscape:connector-curvature="0" />
69
- <path
70
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
71
- d="m 94.357422,76.933594 0,5 35.392578,0 0,-5 -35.392578,0 z"
72
- id="path4142"
73
- inkscape:connector-curvature="0" />
74
- <path
75
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
76
- d="m 94.357422,110.93359 0,5 35.392578,0 0,-5 -35.392578,0 z"
77
- id="path4150"
78
- inkscape:connector-curvature="0" />
79
- <g
80
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:41.11339951px;line-height:125%;font-family:OpenSymbol;-inkscape-font-specification:OpenSymbol;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
81
- id="text4154">
82
- <path
83
- d="m 89.716183,63.201072 0.702622,1.02382 q -4.838051,3.673707 -9.957151,10.318499 -4.737677,6.22322 -7.608388,12.225616 -2.228314,1.465468 -3.974831,2.870711 -2.710112,-8.873107 -6.303519,-10.3185 2.027565,-2.308614 3.994905,-2.308614 1.686292,0 4.075205,5.641048 7.668613,-12.948312 19.071157,-19.45258 z"
84
- style=""
85
- id="path4153" />
86
- </g>
87
- </g>
88
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" id="svg2" width="129.16" height="129.16" version="1.1" viewBox="0 0 121.088 121.088"><metadata id="metadata7"/><g id="layer1" transform="translate(-31.864728,-35.267277)"><path id="path4136" fill="#000" fill-opacity="1" fill-rule="nonzero" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="2.9" d="m 92.408203,35.267578 c -33.420312,0 -60.542969,27.122657 -60.542969,60.542969 -1e-6,33.420313 27.122657,60.544923 60.542969,60.544923 33.420317,0 60.544927,-27.12461 60.544917,-60.544923 0,-33.420313 -27.1246,-60.54297 -60.544917,-60.542969 z m 0,2.900391 c 31.853037,-10e-7 57.644527,25.789542 57.644527,57.642578 1e-5,31.853033 -25.79149,57.644533 -57.644527,57.644533 -31.853036,0 -57.642579,-25.7915 -57.642578,-57.644533 0,-31.853036 25.789543,-57.642578 57.642578,-57.642578 z" baseline-shift="baseline" clip-rule="nonzero" color="#000" color-interpolation="sRGB" color-interpolation-filters="linearRGB" color-rendering="auto" direction="ltr" display="inline" enable-background="accumulate" font-family="sans-serif" font-size="medium" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" image-rendering="auto" letter-spacing="normal" opacity="1" overflow="visible" shape-rendering="auto" text-anchor="start" text-decoration="none" text-rendering="auto" visibility="visible" word-spacing="normal" writing-mode="lr-tb" style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><path id="rect4138" fill="#000" fill-opacity="1" fill-rule="nonzero" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="3.631" d="m 58.978516,67.554688 0,1.816406 0,24.173828 25.990234,0 0,-25.990234 -25.990234,0 z m 3.630859,3.630859 18.726563,0 0,18.728515 -18.726563,0 0,-18.728515 z" baseline-shift="baseline" clip-rule="nonzero" color="#000" color-interpolation="sRGB" color-interpolation-filters="linearRGB" color-rendering="auto" direction="ltr" display="inline" enable-background="accumulate" font-family="sans-serif" font-size="medium" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" image-rendering="auto" letter-spacing="normal" opacity="1" overflow="visible" shape-rendering="auto" text-anchor="start" text-decoration="none" text-rendering="auto" visibility="visible" word-spacing="normal" writing-mode="lr-tb" style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><path id="rect4140" fill="#000" fill-opacity="1" fill-rule="nonzero" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="3.631" d="m 58.978516,100.10938 0,1.81445 0,24.17383 25.990234,0 0,-25.98828 -25.990234,0 z m 3.630859,3.63085 18.726563,0 0,18.72657 -18.726563,0 0,-18.72657 z" baseline-shift="baseline" clip-rule="nonzero" color="#000" color-interpolation="sRGB" color-interpolation-filters="linearRGB" color-rendering="auto" direction="ltr" display="inline" enable-background="accumulate" font-family="sans-serif" font-size="medium" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" image-rendering="auto" letter-spacing="normal" opacity="1" overflow="visible" shape-rendering="auto" text-anchor="start" text-decoration="none" text-rendering="auto" visibility="visible" word-spacing="normal" writing-mode="lr-tb" style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><path id="path4142" fill="#000" fill-opacity="1" fill-rule="evenodd" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="5" d="m 94.357422,76.933594 0,5 35.392578,0 0,-5 -35.392578,0 z" baseline-shift="baseline" clip-rule="nonzero" color="#000" color-interpolation="sRGB" color-interpolation-filters="linearRGB" color-rendering="auto" direction="ltr" display="inline" enable-background="accumulate" font-family="sans-serif" font-size="medium" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" image-rendering="auto" letter-spacing="normal" opacity="1" overflow="visible" shape-rendering="auto" text-anchor="start" text-decoration="none" text-rendering="auto" visibility="visible" word-spacing="normal" writing-mode="lr-tb" style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><path id="path4150" fill="#000" fill-opacity="1" fill-rule="evenodd" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="5" d="m 94.357422,110.93359 0,5 35.392578,0 0,-5 -35.392578,0 z" baseline-shift="baseline" clip-rule="nonzero" color="#000" color-interpolation="sRGB" color-interpolation-filters="linearRGB" color-rendering="auto" direction="ltr" display="inline" enable-background="accumulate" font-family="sans-serif" font-size="medium" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" image-rendering="auto" letter-spacing="normal" opacity="1" overflow="visible" shape-rendering="auto" text-anchor="start" text-decoration="none" text-rendering="auto" visibility="visible" word-spacing="normal" writing-mode="lr-tb" style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><g id="text4154" fill="#000" fill-opacity="1" stroke="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-opacity="1" stroke-width="1" font-family="OpenSymbol" font-size="41.113" font-stretch="normal" font-style="normal" font-variant="normal" font-weight="normal" letter-spacing="0" word-spacing="0" style="line-height:125%;-inkscape-font-specification:OpenSymbol"><path id="path4153" d="m 89.716183,63.201072 0.702622,1.02382 q -4.838051,3.673707 -9.957151,10.318499 -4.737677,6.22322 -7.608388,12.225616 -2.228314,1.465468 -3.974831,2.870711 -2.710112,-8.873107 -6.303519,-10.3185 2.027565,-2.308614 3.994905,-2.308614 1.686292,0 4.075205,5.641048 7.668613,-12.948312 19.071157,-19.45258 z"/></g></g></svg>
@@ -1,7 +1,3 @@
1
- .question-group-heading{
2
- text-transform: uppercase;
3
- }
4
-
5
1
  .question-header{
6
2
  margin-top: 3em;
7
3
  margin-bottom: 1.5em;
@@ -24,7 +20,6 @@
24
20
  font-size: 1.2em;
25
21
 
26
22
  .question-eader-data-group-title{
27
- text-transform: uppercase;
28
23
  color: #857d84;
29
24
  }
30
25
  }
@@ -42,7 +37,6 @@
42
37
 
43
38
  .vote-button-caption{
44
39
  font-size: 1.5em;
45
- text-transform: uppercase;
46
40
  font-weight: bold;
47
41
  color: white;
48
42
  }
@@ -107,7 +107,6 @@
107
107
  }
108
108
 
109
109
  line-height: 1;
110
- text-transform: uppercase;
111
110
  }
112
111
 
113
112
  .consultations-header__extra-date{
@@ -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.consultations.consultations.show.dates") %>
5
5
  </li>
6
6
  <li class="card-data__item">
7
7
  <div class="card-data__item--centerblock">
@@ -1,5 +1,5 @@
1
1
  <div class="card__footer card__footer--spaces">
2
2
  <div class="card__support">
3
- <%= link_to t(footer_button_text, scope: "decidim.consultations.show.footer_button_text"), resource_path, class: "card__button button--sc light button small secondary" %>
3
+ <%= link_to t(footer_button_text, scope: "decidim.consultations.show.footer_button_text"), resource_path, class: "card__button button--sc light button small" %>
4
4
  </div>
5
5
  </div>
@@ -6,18 +6,18 @@
6
6
  large-up-4 card-grid">
7
7
  <% highlighted_consultations.each do |consultation| %>
8
8
  <div class="column">
9
- <article class="card card--consultation card--mini">
9
+ <div class="card card--consultation card--mini">
10
10
  <%= link_to decidim_consultations.consultation_path(consultation), class: "card__link" do %>
11
11
  <div class="card__image-top"
12
12
  style="background-image:url(<%= consultation.banner_image.url %>)"></div>
13
13
  <% end %>
14
14
  <div class="card__content">
15
15
  <%= link_to decidim_consultations.consultation_path(consultation), class: "card__link" do %>
16
- <h4 class="card__title"><%= translated_attribute consultation.title %></h4>
16
+ <span class="card__title"><%= translated_attribute consultation.title %></span>
17
17
  <% end %>
18
18
  <span class="card--process__small"><%= voting_ends_text_for(consultation) %></span>
19
19
  </div>
20
- </article>
20
+ </div>
21
21
  </div>
22
22
  <% end %>
23
23
  </div>
@@ -42,6 +42,8 @@ module Decidim
42
42
  toggle_allow(consultation.published? || user&.admin?)
43
43
  when :question
44
44
  toggle_allow(question.published? || user&.admin?)
45
+ when :participatory_space
46
+ allow!
45
47
  end
46
48
  end
47
49
 
@@ -1,12 +1,12 @@
1
1
  <div class="column">
2
- <article class="card card--process">
2
+ <div class="card card--process">
3
3
  <%= link_to consultation_path(consultation), class: "card__link" do %>
4
4
  <div class="card__image-top"
5
5
  style="background-image:url(<%= consultation.banner_image.url %>)"></div>
6
6
  <% end %>
7
7
  <div class="card__content">
8
8
  <%= link_to consultation_path(consultation), class: "card__link" do %>
9
- <h4 class="card__title"><%= translated_attribute consultation.title %></h4>
9
+ <span class="card__title"><%= translated_attribute consultation.title %></span>
10
10
  <% end %>
11
11
  <p class="card__desc">
12
12
  <%= decidim_sanitize html_truncate(translated_attribute(consultation.subtitle), length: 630, separator: "...") %>
@@ -20,5 +20,5 @@
20
20
  <% end %>
21
21
  </div>
22
22
  </div>
23
- </article>
23
+ </div>
24
24
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="row section" id="consultation-details">
2
2
  <div class="columns medium-6 large-5 large-push-1">
3
- <p class="lead"><%= decidim_sanitize translated_attribute consultation.description %></p>
3
+ <p class="lead"><%= decidim_sanitize translated_attribute(consultation.description), strip_tags: true %></p>
4
4
  </div>
5
5
  <div class="columns medium-6 large-5 large-pull-1">
6
6
  <% if consultation.introductory_video_url.blank? %>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  <% else %>
11
11
  <div class="embed-container">
12
- <iframe src="<%= consultation.introductory_video_url %>" frameborder=0 allowfullscreen>
12
+ <iframe src="<%= consultation.introductory_video_url %>" allowfullscreen>
13
13
  </iframe>
14
14
  </div>
15
15
  <% end %>
@@ -1,3 +1,5 @@
1
+ <%= render partial: "decidim/shared/filter_form_help", locals: { skip_to_id: "consultations" } %>
2
+
1
3
  <%= filter_form_for filter do |form| %>
2
4
  <div class="filters__section">
3
5
  <div class="filters__search">
@@ -5,10 +7,12 @@
5
7
  <%= form.search_field :search_text,
6
8
  label: false,
7
9
  class: "input-group-field",
8
- placeholder: t("consultations.filters.search", scope: "decidim") %>
10
+ placeholder: t("consultations.filters.search", scope: "decidim"),
11
+ title: t("consultations.filters.search", scope: "decidim"),
12
+ data: { disable_dynamic_change: true } %>
9
13
  <div class="input-group-button">
10
- <button type="submit" class="button button--muted">
11
- <%= icon "magnifying-glass", aria_label: t("consultations.filters.search", scope: "decidim") %>
14
+ <button type="submit" class="button" aria-controls="consultations">
15
+ <%= icon "magnifying-glass", aria_label: t("consultations.filters.search", scope: "decidim"), role: "img" %>
12
16
  </button>
13
17
  </div>
14
18
  </div>
@@ -19,7 +23,8 @@
19
23
  options_for_state_filter,
20
24
  :first,
21
25
  :last,
22
- legend_title: t("consultations.filters.state", scope: "decidim") %>
26
+ { legend_title: t("consultations.filters.state", scope: "decidim") },
27
+ "aria-controls": "consultations" %>
23
28
 
24
29
  <%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
25
30
  <% end %>
@@ -1,4 +1,4 @@
1
- <article class="card consultations-card">
1
+ <div class="card consultations-card">
2
2
  <div class="row collapse card--process__row">
3
3
  <div class="columns mediumlarge-8 large-9 card--process__column">
4
4
  <div class="card__content">
@@ -35,4 +35,4 @@
35
35
  </div>
36
36
  </div>
37
37
  </div>
38
- </article>
38
+ </div>
@@ -11,9 +11,9 @@ edit_link(
11
11
  <div class="row columns">
12
12
  <div class="title-action">
13
13
  <div class="row collapse">
14
- <h2 id="consultations-count" class="title-action__title section-heading">
14
+ <h1 id="consultations-count" class="title-action__title section-heading">
15
15
  <%= render partial: "count", locals: { count: consultations.count } %>
16
- </h2>
16
+ </h1>
17
17
  </div>
18
18
  </div>
19
19
  </div>
@@ -32,4 +32,4 @@ edit_link(
32
32
  <% end %>
33
33
 
34
34
  <%= javascript_include_tag "decidim/filters" %>
35
- <%= javascript_include_tag "decidim/orders" %>
35
+ <%= javascript_include_tag "decidim/results_listing" %>
@@ -8,88 +8,91 @@
8
8
  </div>
9
9
  </div>
10
10
 
11
- <div class="row column question-vote-cabin">
12
- <div class="columns mediumlarge-4 show-for-mediumlarge previous-question">
13
- <%= display_next_previous_button(:previous, "float-left") %>
14
- </div>
15
- <div class="columns mediumlarge-4">
16
- <% if question.consultation.upcoming? %>
17
- <div class="card__button button expanded disabled">
18
- <div class="vote-button-caption"><%= t("questions.vote_button.vote", scope: "decidim") %></div>
19
- <div>
20
- <%= t "questions.vote_button.starting_from",
21
- scope: "decidim",
22
- date: l(question.start_voting_date) %>
23
- </div>
24
- </div>
25
- <% elsif question.consultation.finished? && signed_in? && question.voted_by?(current_user) %>
26
- <%= button_to decidim_consultations.question_question_votes_path(question),
27
- method: :delete,
28
- remote: true,
29
- data: { disable: true },
30
- class: "card__button button expanded success disabled",
31
- id: "unvote_button" do %>
32
- <div class="vote-button-caption">
33
- <%= t("questions.vote_button.already_voted", scope: "decidim") %>
11
+ <%# Check if controller has questions_helper %>
12
+ <% if defined? display_next_previous_button %>
13
+ <div class="row column question-vote-cabin">
14
+ <div class="columns mediumlarge-4 show-for-mediumlarge previous-question">
15
+ <%= display_next_previous_button(:previous, "float-left") %>
16
+ </div>
17
+ <div class="columns mediumlarge-4">
18
+ <% if question.consultation.upcoming? %>
19
+ <div class="card__button button expanded disabled">
20
+ <div class="vote-button-caption"><%= t("questions.vote_button.vote", scope: "decidim") %></div>
21
+ <div>
22
+ <%= t "questions.vote_button.starting_from",
23
+ scope: "decidim",
24
+ date: l(question.start_voting_date) %>
25
+ </div>
34
26
  </div>
35
- <% end %>
36
- <% elsif signed_in? && question.consultation.active? %>
37
- <% if allowed_to? :unvote, :question, question: question %>
27
+ <% elsif question.consultation.finished? && signed_in? && question.voted_by?(current_user) %>
38
28
  <%= button_to decidim_consultations.question_question_votes_path(question),
39
- method: :delete,
40
- remote: true,
41
- data: { disable: true },
42
- class: "card__button button expanded success",
43
- id: "unvote_button" do %>
44
- <div class="vote-button-caption"
45
- data-original="<%= t("questions.vote_button.already_voted", scope: "decidim") %>"
46
- data-replace="<%= t("questions.vote_button.already_voted_hover", scope: "decidim") %>">
29
+ method: :delete,
30
+ remote: true,
31
+ data: { disable: true },
32
+ class: "card__button button expanded success disabled",
33
+ id: "unvote_button" do %>
34
+ <div class="vote-button-caption">
47
35
  <%= t("questions.vote_button.already_voted", scope: "decidim") %>
48
36
  </div>
49
37
  <% end %>
50
- <% elsif allowed_to? :vote, :question, question: question %>
51
- <% if question.multiple? %>
52
- <%= link_to decidim_consultations.question_question_multiple_votes_path(question),
53
- class: "card__button button expanded",
54
- id: "multivote_button" do %>
55
- <div class="vote-button-caption"><%= t "questions.vote_button.vote", scope: "decidim" %></div>
38
+ <% elsif signed_in? && question.consultation.active? %>
39
+ <% if allowed_to? :unvote, :question, question: question %>
40
+ <%= button_to decidim_consultations.question_question_votes_path(question),
41
+ method: :delete,
42
+ remote: true,
43
+ data: { disable: true },
44
+ class: "card__button button expanded success",
45
+ id: "unvote_button" do %>
46
+ <div class="vote-button-caption"
47
+ data-original="<%= t("questions.vote_button.already_voted", scope: "decidim") %>"
48
+ data-replace="<%= t("questions.vote_button.already_voted_hover", scope: "decidim") %>">
49
+ <%= t("questions.vote_button.already_voted", scope: "decidim") %>
50
+ </div>
51
+ <% end %>
52
+ <% elsif allowed_to? :vote, :question, question: question %>
53
+ <% if question.multiple? %>
54
+ <%= link_to decidim_consultations.question_question_multiple_votes_path(question),
55
+ class: "card__button button expanded",
56
+ id: "multivote_button" do %>
57
+ <div class="vote-button-caption"><%= t "questions.vote_button.vote", scope: "decidim" %></div>
58
+ <% end %>
59
+ <% else %>
60
+ <%= link_to "#", class: "card__button button expanded", id: "vote_button" do %>
61
+ <div class="vote-button-caption"><%= t "questions.vote_button.vote", scope: "decidim" %></div>
62
+ <% end %>
56
63
  <% end %>
57
64
  <% else %>
58
- <%= link_to "#", class: "card__button button expanded", id: "vote_button" do %>
59
- <div class="vote-button-caption"><%= t "questions.vote_button.vote", scope: "decidim" %></div>
65
+ <%= authorized_vote_modal_button(question, remote: true, class: "button expanded light button--sc") do %>
66
+ <%= t("questions.vote_button.verification_required", scope: "decidim") %>
60
67
  <% end %>
61
68
  <% end %>
62
- <% else %>
63
- <%= authorized_vote_modal_button(question, remote: true, class: "button expanded light button--sc") do %>
64
- <%= t("questions.vote_button.verification_required", scope: "decidim") %>
69
+ <% elsif question.consultation.active? %>
70
+ <%= logged_button_to decidim_consultations.question_question_votes_path(question),
71
+ class: "card__button button expanded",
72
+ data: { disable: true },
73
+ id: "vote_button" do %>
74
+ <div class="vote-button-caption">
75
+ <%= t("questions.vote_button.vote", scope: "decidim") %>
76
+ </div>
65
77
  <% end %>
66
78
  <% end %>
67
- <% elsif question.consultation.active? %>
68
- <%= logged_button_to decidim_consultations.question_question_votes_path(question),
69
- class: "card__button button expanded",
70
- data: { disable: true },
71
- id: "vote_button" do %>
72
- <div class="vote-button-caption">
73
- <%= t("questions.vote_button.vote", scope: "decidim") %>
74
- </div>
75
- <% end %>
76
- <% end %>
77
- </div>
78
- <div class="columns mediumlarge-4 show-for-mediumlarge next-question">
79
- <%= display_next_previous_button(:next, "float-right") %>
79
+ </div>
80
+ <div class="columns mediumlarge-4 show-for-mediumlarge next-question">
81
+ <%= display_next_previous_button(:next, "float-right") %>
82
+ </div>
80
83
  </div>
81
- </div>
82
84
 
83
- <div class="row column section hide-for-mediumlarge">
84
- <div class="small-buttons">
85
- <div class="columns small-6 previous-question">
86
- <%= display_next_previous_button(:previous, "expanded") %>
87
- </div>
88
- <div class="columns small-6 next-question">
89
- <%= display_next_previous_button(:next, "expanded") %>
85
+ <div class="row column section hide-for-mediumlarge">
86
+ <div class="small-buttons">
87
+ <div class="columns small-6 previous-question">
88
+ <%= display_next_previous_button(:previous, "expanded") %>
89
+ </div>
90
+ <div class="columns small-6 next-question">
91
+ <%= display_next_previous_button(:next, "expanded") %>
92
+ </div>
90
93
  </div>
91
94
  </div>
92
- </div>
95
+ <% end %>
93
96
 
94
97
  <%= render partial: "decidim/consultations/questions/vote_modal", locals: { question: question } %>
95
98
  <%= render partial: "decidim/consultations/questions/vote_modal_confirm", locals: { question: question } %>