decidim-dev 0.20.1 → 0.23.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/images/decidim/dummy.svg +1 -4
- data/app/assets/images/decidim/gamification/badges/test.svg +1 -145
- data/app/commands/decidim/dummy_resources/create_dummy_resource.rb +48 -0
- data/app/controllers/decidim/dummy_resources/dummy_resources_controller.rb +1 -0
- data/app/forms/decidim/dummy_resources/dummy_resource_form.rb +3 -0
- data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +4 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/bg-BG.yml +56 -0
- data/config/locales/bg.yml +56 -0
- data/config/locales/ca.yml +15 -0
- data/config/locales/cs.yml +16 -1
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +16 -0
- data/config/locales/el.yml +56 -0
- data/config/locales/en.yml +15 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +15 -0
- data/config/locales/es-PY.yml +15 -0
- data/config/locales/es.yml +15 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +15 -0
- data/config/locales/fi.yml +15 -0
- data/config/locales/fr-CA.yml +56 -0
- data/config/locales/fr.yml +15 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +9 -0
- data/config/locales/is.yml +21 -0
- data/config/locales/it.yml +17 -2
- data/config/locales/ja-JP.yml +56 -0
- data/config/locales/ja.yml +56 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +54 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +15 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +26 -10
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +26 -10
- data/config/locales/ro-RO.yml +56 -0
- data/config/locales/sk-SK.yml +47 -0
- data/config/locales/sk.yml +47 -0
- data/config/locales/sl.yml +5 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +8 -0
- data/config/locales/sv.yml +15 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +56 -0
- data/config/locales/zh-TW.yml +1 -0
- data/lib/decidim/dev.rb +2 -0
- data/lib/decidim/dev/assets/assemblies.json +816 -0
- data/lib/decidim/dev/assets/assemblies_with_null.json +135 -0
- data/lib/decidim/dev/assets/city.jpeg +0 -0
- data/lib/decidim/dev/assets/city2.jpeg +0 -0
- data/lib/decidim/dev/assets/city3.jpeg +0 -0
- data/lib/decidim/dev/assets/geocoder_result_here.json +72 -0
- data/lib/decidim/dev/assets/geocoder_result_osm.json +150 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv +2 -0
- data/lib/decidim/dev/dummy_translator.rb +32 -0
- data/lib/decidim/dev/test/base_spec_helper.rb +14 -0
- data/lib/decidim/dev/test/rspec_support/authorization.rb +3 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +6 -2
- data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +15 -5
- data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +5 -5
- data/lib/decidim/dev/test/rspec_support/comments.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/component.rb +104 -5
- data/lib/decidim/dev/test/rspec_support/component_context.rb +1 -2
- data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +60 -0
- data/lib/decidim/dev/test/rspec_support/content_processing.rb +4 -4
- data/lib/decidim/dev/test/rspec_support/frontend.rb +20 -0
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +150 -6
- data/lib/decidim/dev/test/rspec_support/helpers.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/organization.rb +7 -0
- data/lib/decidim/dev/test/rspec_support/rake_tasks.rb +75 -0
- data/lib/decidim/dev/test/rspec_support/timezone.rb +7 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +2 -0
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/tasks/generators.rake +2 -1
- data/lib/tasks/locale_checker.rake +1 -1
- metadata +91 -23
- data/lib/decidim/dev/test/rspec_support/capybara_proposals_picker.rb +0 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30cb333a9eebb96a26af42c467b89cd8a60260344af4188b30186f8db550a3d0
|
4
|
+
data.tar.gz: efaefc04857db2df02606ac21b0ca1039afde44980d4f0513cc3ebd7c4c96c30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6888c810f6d4e11bcaa322a6e510201c170586f0d9a4ba5f4447ea5b3d3c6ce2c4320072b4a74314ce23957b6028b00d4ea19410e51f727292d7b898aaaa4caa
|
7
|
+
data.tar.gz: 4a471763e10067602607cab7919ae7161c2302396490802cfbc7190256d45c6c51bbbf31a0f19ca03e3f2bde2e27095e2d1d6ae8bad0beb710c6e79206b8a76c
|
@@ -1,4 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02">
|
2
|
-
<circle cx="18.01" cy="18.01" r="15.75" stroke="#2ecc71" stroke-width="4" fill="none"></circle>
|
3
|
-
<circle cx="18.01" cy="18.01" r="11.25" stroke="#08BCD0" stroke-width="4" fill="none" />
|
4
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02"><circle cx="18.01" cy="18.01" r="15.75" fill="none" stroke="#2ecc71" stroke-width="4"/><circle cx="18.01" cy="18.01" r="11.25" fill="none" stroke="#08BCD0" stroke-width="4"/></svg>
|
@@ -1,145 +1 @@
|
|
1
|
-
<svg version="1.1" id="proposals-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
2
|
-
y="0px" width="1080px" height="1080px" viewBox="0 0 1080 1080" enable-background="new 0 0 1080 1080" xml:space="preserve">
|
3
|
-
<g id="proposals" class="stroke-primary">
|
4
|
-
<g id="sleeve">
|
5
|
-
|
6
|
-
<rect class="fill-primary" id="_x32_5-pct_1_" x="419.5" y="798.5" fill="#31536E" fill-opacity="0.25" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="251" height="286"/>
|
7
|
-
<rect class="fill-primary" x="419.5" y="911.5" fill="#31536E" width="251" height="173"/>
|
8
|
-
<circle fill="#FFFFFF" stroke="#31536E" stroke-width="8" stroke-miterlimit="10" cx="615.667" cy="864.668" r="22.5"/>
|
9
|
-
<circle class="fill-primary" fill="#31536E" cx="615.5" cy="864.5" r="13"/>
|
10
|
-
</g>
|
11
|
-
<g>
|
12
|
-
<g id="hand">
|
13
|
-
|
14
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
15
|
-
M650.395,674.5c51.605,0,58.62-90.165,64.562-154.237"/>
|
16
|
-
|
17
|
-
<line fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="457.5" y1="798.5" x2="457.5" y2="667.689"/>
|
18
|
-
|
19
|
-
<line fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="646.5" y1="675.5" x2="646.5" y2="798.5"/>
|
20
|
-
|
21
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
22
|
-
M451.324,498.5c0,0,31.176-4,64.176-32s32-81-4-111c-22,12-156,79-156,79l0,0v74c0,17.992-2.5,41,1.577,65.972
|
23
|
-
C377.942,619.5,401.5,665,466.031,667.689"/>
|
24
|
-
|
25
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
26
|
-
M505.818,513.229c12.682,29.272,13.405,80.272,8.682,102.271"/>
|
27
|
-
|
28
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
29
|
-
M468.5,380.5v-14.282c0-28.564,17.923-51.718,42.5-51.718l0,0c24.577,0,44.5,23.154,44.5,51.718v95.564
|
30
|
-
c0,28.563-19.923,51.718-44.5,51.718l0,0c-17.737,0-25.049-1.979-32.199-19.428"/>
|
31
|
-
|
32
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
33
|
-
M548.052,337.583c7.849-8.05,19.034-13.083,31.448-13.083l0,0c23.748,0,43,18.419,43,41.141v94.719
|
34
|
-
c0,22.721-19.252,41.14-43,41.14l0,0c-11.874,0-22.624-4.605-30.406-12.05"/>
|
35
|
-
|
36
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
37
|
-
M621.341,356.167c6.171-4.207,13.628-6.667,21.659-6.667l0,0c21.263,0,38.5,17.237,38.5,38.5v81c0,21.263-17.237,38.5-38.5,38.5
|
38
|
-
l0,0c-13.871,0-26.029-7.336-32.807-18.34"/>
|
39
|
-
|
40
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
41
|
-
M681.973,386.233c4.827-4.194,9.131-6.733,16.027-6.733l0,0c15.188,0,27.5,12.312,27.5,27.5v89c0,15.188-12.312,27.5-27.5,27.5
|
42
|
-
l0,0c-15.188,0-27.5-12.312-27.5-27.5"/>
|
43
|
-
<path class="fill-primary" id="_x32_5-pct_2_" fill="#31536E" fill-opacity="0.25" d="M688,523.5c-15.188,0-27.5-12.312-27.5-27.5l0.008-0.075
|
44
|
-
C653.52,503.064,643.779,507.5,633,507.5c-13.871,0-26.028-7.336-32.807-18.339c-7.803,7.611-18.669,12.339-30.693,12.339
|
45
|
-
c-11.874,0-22.624-4.605-30.406-12.051l-0.006-0.91C531.29,503.501,517.15,513.5,501,513.5c-10.683,0-18.826-16-27.386-20.245
|
46
|
-
c-5.651-2.803-13.74,8.544-14.813,0.817l10,35C475.952,546.522,490.26,623.5,524,623.5c16.15,0,18.094-67.051,18.094-67.051
|
47
|
-
c7.782,7.445,8.532,23.051,20.406,23.051c12.024,0,29.891-47.728,37.693-55.339C606.972,535.164,619.129,542.5,633,542.5
|
48
|
-
c10.779,0,20.52-4.436,27.508-11.575L660.5,531c0,15.188,12.312,27.5,27.5,27.5s27.5-12.312,27.5-27.5v-35
|
49
|
-
C715.5,511.188,703.188,523.5,688,523.5z"/>
|
50
|
-
<path fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
51
|
-
M473.499,373.498c0,0,12.987,26.002,22.994,22.002s32.046-23.229,32.046-23.229"/>
|
52
|
-
|
53
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
54
|
-
M542.539,502.5c12.047,5.577,23.875,74.756,22.961,69"/>
|
55
|
-
</g>
|
56
|
-
</g>
|
57
|
-
|
58
|
-
<line fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="638.5" y1="864.5" x2="648.5" y2="864.5"/>
|
59
|
-
|
60
|
-
<line fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="580.5" y1="864.5" x2="593.5" y2="864.5"/>
|
61
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
62
|
-
M426.638,477.259"/>
|
63
|
-
<path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
64
|
-
M469.333,347.889V99.028c0-23.58-19.115-42.695-42.695-42.695l0,0c-23.58,0-42.696,19.115-42.696,42.695v320.536"/>
|
65
|
-
|
66
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="165.608" x2="447.455" y2="165.608"/>
|
67
|
-
|
68
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="269.608" x2="447.455" y2="269.608"/>
|
69
|
-
|
70
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="387.608" x2="447.455" y2="387.608"/>
|
71
|
-
<g id="stars_2" class="stars">
|
72
|
-
|
73
|
-
<path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
74
|
-
M137.5,645.605c0-14.688-18.667-35.354-35.355-35.354c15.355,0,35.355-20.333,35.355-35.354c0,15.021,16.666,35.354,35.355,35.354
|
75
|
-
C153.833,610.251,137.5,630.918,137.5,645.605z"/>
|
76
|
-
<g>
|
77
|
-
|
78
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="1008.882" cy="708.662" r="13.5"/>
|
79
|
-
|
80
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="992.383" y1="691.927" x2="971.17" y2="670.714"/>
|
81
|
-
|
82
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="1026.324" y1="725.868" x2="1047.537" y2="747.081"/>
|
83
|
-
|
84
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="1025.617" y1="692.634" x2="1046.83" y2="671.421"/>
|
85
|
-
|
86
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="992.383" y1="725.868" x2="971.17" y2="747.081"/>
|
87
|
-
</g>
|
88
|
-
<g>
|
89
|
-
|
90
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="212.112" y1="161.345" x2="185.95" y2="187.508"/>
|
91
|
-
|
92
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="176.758" y1="196.701" x2="150.595" y2="222.864"/>
|
93
|
-
|
94
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="211.405" y1="222.864" x2="185.242" y2="196.701"/>
|
95
|
-
|
96
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="176.051" y1="187.508" x2="149.888" y2="161.345"/>
|
97
|
-
</g>
|
98
|
-
|
99
|
-
<path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
|
100
|
-
M833.092,333.86c0,0-24.604,4.603-30.25,10.249c-5.646,5.646-10.248,30.249-10.248,30.249s-4.604-24.603-10.25-30.249
|
101
|
-
c-5.646-5.646-30.248-10.249-30.248-10.249s25.188-5.187,30.248-10.249c5.062-5.062,10.25-30.249,10.25-30.249
|
102
|
-
s4.604,24.603,10.248,30.249C808.488,329.257,833.092,333.86,833.092,333.86z"/>
|
103
|
-
<g>
|
104
|
-
|
105
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="500.751" r="18.5"/>
|
106
|
-
|
107
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="938.834" cy="500.751" r="7.166"/>
|
108
|
-
|
109
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="540.751" r="7.166"/>
|
110
|
-
|
111
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="1018.834" cy="500.751" r="7.166"/>
|
112
|
-
|
113
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="460.751" r="7.166"/>
|
114
|
-
</g>
|
115
|
-
<g>
|
116
|
-
|
117
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="296.246" y1="682.224" x2="351.149" y2="737.129"/>
|
118
|
-
|
119
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="351.149" y1="682.224" x2="296.246" y2="737.129"/>
|
120
|
-
|
121
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="305.5" y1="709.251" x2="278.5" y2="709.251"/>
|
122
|
-
|
123
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="343.5" y1="709.251" x2="370.5" y2="709.251"/>
|
124
|
-
|
125
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="324.5" y1="728.251" x2="324.5" y2="755.251"/>
|
126
|
-
|
127
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="324.5" y1="690.251" x2="324.5" y2="663.251"/>
|
128
|
-
</g>
|
129
|
-
<g>
|
130
|
-
|
131
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="629.5" y1="122.251" x2="629.5" y2="201.251"/>
|
132
|
-
|
133
|
-
<line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="668.5" y1="162.251" x2="589.5" y2="162.251"/>
|
134
|
-
|
135
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="609.5" cy="181.751" r="7.039"/>
|
136
|
-
|
137
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="609.5" cy="141.751" r="7.039"/>
|
138
|
-
|
139
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="649.5" cy="181.751" r="7.039"/>
|
140
|
-
|
141
|
-
<circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="649.5" cy="141.751" r="7.039"/>
|
142
|
-
</g>
|
143
|
-
</g>
|
144
|
-
</g>
|
145
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="proposals-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="proposals" class="stroke-primary"><g id="sleeve"><rect id="_x32_5-pct_1_" width="251" height="286" x="419.5" y="798.5" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" class="fill-primary"/><rect width="251" height="173" x="419.5" y="911.5" fill="#31536E" class="fill-primary"/><circle cx="615.667" cy="864.668" r="22.5" fill="#FFF" stroke="#31536E" stroke-miterlimit="10" stroke-width="8"/><circle cx="615.5" cy="864.5" r="13" fill="#31536E" class="fill-primary"/></g><g><g id="hand"><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M650.395,674.5c51.605,0,58.62-90.165,64.562-154.237"/><line x1="457.5" x2="457.5" y1="798.5" y2="667.689" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16"/><line x1="646.5" x2="646.5" y1="675.5" y2="798.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M451.324,498.5c0,0,31.176-4,64.176-32s32-81-4-111c-22,12-156,79-156,79l0,0v74c0,17.992-2.5,41,1.577,65.972 C377.942,619.5,401.5,665,466.031,667.689"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M505.818,513.229c12.682,29.272,13.405,80.272,8.682,102.271"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M468.5,380.5v-14.282c0-28.564,17.923-51.718,42.5-51.718l0,0c24.577,0,44.5,23.154,44.5,51.718v95.564 c0,28.563-19.923,51.718-44.5,51.718l0,0c-17.737,0-25.049-1.979-32.199-19.428"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M548.052,337.583c7.849-8.05,19.034-13.083,31.448-13.083l0,0c23.748,0,43,18.419,43,41.141v94.719 c0,22.721-19.252,41.14-43,41.14l0,0c-11.874,0-22.624-4.605-30.406-12.05"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M621.341,356.167c6.171-4.207,13.628-6.667,21.659-6.667l0,0c21.263,0,38.5,17.237,38.5,38.5v81c0,21.263-17.237,38.5-38.5,38.5 l0,0c-13.871,0-26.029-7.336-32.807-18.34"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M681.973,386.233c4.827-4.194,9.131-6.733,16.027-6.733l0,0c15.188,0,27.5,12.312,27.5,27.5v89c0,15.188-12.312,27.5-27.5,27.5 l0,0c-15.188,0-27.5-12.312-27.5-27.5"/><path id="_x32_5-pct_2_" fill="#31536E" fill-opacity=".25" d="M688,523.5c-15.188,0-27.5-12.312-27.5-27.5l0.008-0.075 C653.52,503.064,643.779,507.5,633,507.5c-13.871,0-26.028-7.336-32.807-18.339c-7.803,7.611-18.669,12.339-30.693,12.339 c-11.874,0-22.624-4.605-30.406-12.051l-0.006-0.91C531.29,503.501,517.15,513.5,501,513.5c-10.683,0-18.826-16-27.386-20.245 c-5.651-2.803-13.74,8.544-14.813,0.817l10,35C475.952,546.522,490.26,623.5,524,623.5c16.15,0,18.094-67.051,18.094-67.051 c7.782,7.445,8.532,23.051,20.406,23.051c12.024,0,29.891-47.728,37.693-55.339C606.972,535.164,619.129,542.5,633,542.5 c10.779,0,20.52-4.436,27.508-11.575L660.5,531c0,15.188,12.312,27.5,27.5,27.5s27.5-12.312,27.5-27.5v-35 C715.5,511.188,703.188,523.5,688,523.5z" class="fill-primary"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M473.499,373.498c0,0,12.987,26.002,22.994,22.002s32.046-23.229,32.046-23.229"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M542.539,502.5c12.047,5.577,23.875,74.756,22.961,69"/></g></g><line x1="638.5" x2="648.5" y1="864.5" y2="864.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><line x1="580.5" x2="593.5" y1="864.5" y2="864.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M426.638,477.259"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M469.333,347.889V99.028c0-23.58-19.115-42.695-42.695-42.695l0,0c-23.58,0-42.696,19.115-42.696,42.695v320.536"/><line x1="404.098" x2="447.455" y1="165.608" y2="165.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><line x1="404.098" x2="447.455" y1="269.608" y2="269.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><line x1="404.098" x2="447.455" y1="387.608" y2="387.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><g id="stars_2" class="stars"><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M137.5,645.605c0-14.688-18.667-35.354-35.355-35.354c15.355,0,35.355-20.333,35.355-35.354c0,15.021,16.666,35.354,35.355,35.354 C153.833,610.251,137.5,630.918,137.5,645.605z"/><g><circle cx="1008.882" cy="708.662" r="13.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="992.383" x2="971.17" y1="691.927" y2="670.714" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="1026.324" x2="1047.537" y1="725.868" y2="747.081" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="1025.617" x2="1046.83" y1="692.634" y2="671.421" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="992.383" x2="971.17" y1="725.868" y2="747.081" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="212.112" x2="185.95" y1="161.345" y2="187.508" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="176.758" x2="150.595" y1="196.701" y2="222.864" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="211.405" x2="185.242" y1="222.864" y2="196.701" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="176.051" x2="149.888" y1="187.508" y2="161.345" 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="M833.092,333.86c0,0-24.604,4.603-30.25,10.249c-5.646,5.646-10.248,30.249-10.248,30.249s-4.604-24.603-10.25-30.249 c-5.646-5.646-30.248-10.249-30.248-10.249s25.188-5.187,30.248-10.249c5.062-5.062,10.25-30.249,10.25-30.249 s4.604,24.603,10.248,30.249C808.488,329.257,833.092,333.86,833.092,333.86z"/><g><circle cx="978.834" cy="500.751" r="18.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="938.834" cy="500.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="978.834" cy="540.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="1018.834" cy="500.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="978.834" cy="460.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="296.246" x2="351.149" y1="682.224" y2="737.129" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="351.149" x2="296.246" y1="682.224" y2="737.129" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="305.5" x2="278.5" y1="709.251" y2="709.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="343.5" x2="370.5" y1="709.251" y2="709.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="324.5" x2="324.5" y1="728.251" y2="755.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="324.5" x2="324.5" y1="690.251" y2="663.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="629.5" x2="629.5" y1="122.251" y2="201.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="668.5" x2="589.5" y1="162.251" y2="162.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="609.5" cy="181.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="609.5" cy="141.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="649.5" cy="181.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="649.5" cy="141.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g></g></g></svg>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module DummyResources
|
5
|
+
class CreateDummyResource < Rectify::Command
|
6
|
+
include Decidim::AttachmentMethods
|
7
|
+
include Decidim::GalleryMethods
|
8
|
+
|
9
|
+
def initialize(form)
|
10
|
+
@form = form
|
11
|
+
end
|
12
|
+
|
13
|
+
# Creates the dummy_resource if valid.
|
14
|
+
#
|
15
|
+
# Broadcasts :ok if successful, :invalid otherwise.
|
16
|
+
def call
|
17
|
+
return broadcast(:invalid) if @form.invalid?
|
18
|
+
|
19
|
+
if process_gallery?
|
20
|
+
build_gallery
|
21
|
+
return broadcast(:invalid) if gallery_invalid?
|
22
|
+
end
|
23
|
+
|
24
|
+
transaction do
|
25
|
+
create_dummy_resource
|
26
|
+
create_gallery if process_gallery?
|
27
|
+
end
|
28
|
+
|
29
|
+
broadcast(:ok)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
attr_reader :form, :dummy_resource, :gallery
|
35
|
+
|
36
|
+
def create_dummy_resource
|
37
|
+
@dummy_resource = DummyResource.create!(
|
38
|
+
title: form.title,
|
39
|
+
body: form.body,
|
40
|
+
component: form.current_component,
|
41
|
+
author: form.current_user
|
42
|
+
)
|
43
|
+
|
44
|
+
@attached_to = @dummy_resource
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -4,6 +4,7 @@ module Decidim
|
|
4
4
|
module DummyResources
|
5
5
|
class DummyResourcesController < Decidim::Components::BaseController
|
6
6
|
helper Decidim::Comments::CommentsHelper
|
7
|
+
include Decidim::TranslatableAttributes
|
7
8
|
|
8
9
|
def show
|
9
10
|
@commentable = DummyResources::DummyResource.find(params[:id])
|
@@ -7,6 +7,9 @@ module Decidim
|
|
7
7
|
|
8
8
|
attribute :title, String
|
9
9
|
attribute :body, String
|
10
|
+
attribute :attachment, AttachmentForm
|
11
|
+
attribute :photos, Array[String]
|
12
|
+
attribute :add_photos, Array
|
10
13
|
|
11
14
|
validates :title, :body, presence: true, etiquette: true
|
12
15
|
validates :title, length: { maximum: 150 }
|
@@ -0,0 +1 @@
|
|
1
|
+
am:
|
@@ -0,0 +1,56 @@
|
|
1
|
+
bg:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
dummy_resource:
|
5
|
+
created_at: Създаден на
|
6
|
+
decidim_scope_id: Сфера
|
7
|
+
field: Моето поле
|
8
|
+
start_date: Начална дата
|
9
|
+
title: Заглавие
|
10
|
+
translatable_text: Преводим текст
|
11
|
+
updated_at: Обновен на
|
12
|
+
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Само за четене атрибут
|
18
|
+
test: А тест
|
19
|
+
test_choices:
|
20
|
+
a: А избор
|
21
|
+
b: Б избор
|
22
|
+
c: В избор
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Одобряване забранено
|
25
|
+
endorsements_enabled: Одобряване разрешено
|
26
|
+
readonly_step_attribute: Само за четене стъпков атрибут
|
27
|
+
dummy:
|
28
|
+
admin:
|
29
|
+
exports:
|
30
|
+
dummies: Примери
|
31
|
+
gamification:
|
32
|
+
badges:
|
33
|
+
test:
|
34
|
+
conditions:
|
35
|
+
- Използвайте тестова среда за decidim.
|
36
|
+
description: Участниците получават тази значка като създават тестове.
|
37
|
+
description_another: Участниците създадоха %{score} теста.
|
38
|
+
description_own: Вие създадохте %{score} теста.
|
39
|
+
name: Тестове
|
40
|
+
next_level_in: Създайте още %{score} теста за да достигнете следващо ниво!
|
41
|
+
unearned_another: Този участник все още не е създал тест.
|
42
|
+
unearned_own: Вие все още не сте създали тест.
|
43
|
+
pages:
|
44
|
+
home:
|
45
|
+
statistics:
|
46
|
+
bar: Нещо1
|
47
|
+
dummies_count_high: Пример за максимум
|
48
|
+
dummies_count_medium: Пример за средно
|
49
|
+
foo: Нещо2
|
50
|
+
participatory_processes:
|
51
|
+
statistics:
|
52
|
+
dummies_count_high: Пример за максимум
|
53
|
+
dummies_count_medium: Пример за средно
|
54
|
+
resource_links:
|
55
|
+
test_link:
|
56
|
+
dummy_resource_dummy: Пример за свързан
|
@@ -0,0 +1,56 @@
|
|
1
|
+
bg:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
dummy_resource:
|
5
|
+
created_at: Създаден на
|
6
|
+
decidim_scope_id: Сфера
|
7
|
+
field: Моето поле
|
8
|
+
start_date: Начална дата
|
9
|
+
title: Заглавие
|
10
|
+
translatable_text: Преводим текст
|
11
|
+
updated_at: Обновен на
|
12
|
+
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Само за четене атрибут
|
18
|
+
test: А тест
|
19
|
+
test_choices:
|
20
|
+
a: А избор
|
21
|
+
b: Б избор
|
22
|
+
c: В избор
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Одобряване забранено
|
25
|
+
endorsements_enabled: Одобряване разрешено
|
26
|
+
readonly_step_attribute: Само за четене стъпков атрибут
|
27
|
+
dummy:
|
28
|
+
admin:
|
29
|
+
exports:
|
30
|
+
dummies: Примери
|
31
|
+
gamification:
|
32
|
+
badges:
|
33
|
+
test:
|
34
|
+
conditions:
|
35
|
+
- Използвайте тестова среда за decidim.
|
36
|
+
description: Участниците получават тази значка като създават тестове.
|
37
|
+
description_another: Участниците създадоха %{score} теста.
|
38
|
+
description_own: Вие създадохте %{score} теста.
|
39
|
+
name: Тестове
|
40
|
+
next_level_in: Създайте още %{score} теста за да достигнете следващо ниво!
|
41
|
+
unearned_another: Този участник все още не е създал тест.
|
42
|
+
unearned_own: Вие все още не сте създали тест.
|
43
|
+
pages:
|
44
|
+
home:
|
45
|
+
statistics:
|
46
|
+
bar: Нещо1
|
47
|
+
dummies_count_high: Пример за максимум
|
48
|
+
dummies_count_medium: Пример за средно
|
49
|
+
foo: Нещо2
|
50
|
+
participatory_processes:
|
51
|
+
statistics:
|
52
|
+
dummies_count_high: Пример за максимум
|
53
|
+
dummies_count_medium: Пример за средно
|
54
|
+
resource_links:
|
55
|
+
test_link:
|
56
|
+
dummy_resource_dummy: Пример за свързан
|
data/config/locales/ca.yml
CHANGED
@@ -3,12 +3,27 @@ ca:
|
|
3
3
|
attributes:
|
4
4
|
dummy_resource:
|
5
5
|
created_at: Creat el
|
6
|
+
decidim_scope_id: Àmbit
|
6
7
|
field: El meu camp
|
7
8
|
start_date: Data d'inici
|
8
9
|
title: Títol
|
9
10
|
translatable_text: Text traduïble
|
10
11
|
updated_at: Actualitzat el
|
11
12
|
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Atribut de només lectura
|
18
|
+
test: Una prova
|
19
|
+
test_choices:
|
20
|
+
a: Opció A
|
21
|
+
b: Opció B
|
22
|
+
c: Opció C
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Adhesions bloquejades
|
25
|
+
endorsements_enabled: Adhesions habilitades
|
26
|
+
readonly_step_attribute: Atribut de només lectura
|
12
27
|
dummy:
|
13
28
|
admin:
|
14
29
|
exports:
|
data/config/locales/cs.yml
CHANGED
@@ -2,13 +2,28 @@ cs:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
dummy_resource:
|
5
|
-
created_at: Vytvořeno
|
5
|
+
created_at: Vytvořeno v
|
6
|
+
decidim_scope_id: Oblast působnosti
|
6
7
|
field: Moje pole
|
7
8
|
start_date: Počáteční datum
|
8
9
|
title: Titul
|
9
10
|
translatable_text: Přeložitelný text
|
10
11
|
updated_at: Aktualizováno na
|
11
12
|
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Atribut pouze pro čtení
|
18
|
+
test: Zkouška A
|
19
|
+
test_choices:
|
20
|
+
a: Volba A
|
21
|
+
b: Volba B
|
22
|
+
c: Volba C
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Schvalování blokováno
|
25
|
+
endorsements_enabled: Schvalování povoleno
|
26
|
+
readonly_step_attribute: Atribut krok čtení
|
12
27
|
dummy:
|
13
28
|
admin:
|
14
29
|
exports:
|
@@ -0,0 +1 @@
|
|
1
|
+
da:
|
@@ -0,0 +1 @@
|
|
1
|
+
da:
|
data/config/locales/de.yml
CHANGED
@@ -3,11 +3,27 @@ de:
|
|
3
3
|
attributes:
|
4
4
|
dummy_resource:
|
5
5
|
created_at: Hergestellt in
|
6
|
+
decidim_scope_id: Umfang
|
6
7
|
field: Mein Feld
|
7
8
|
start_date: Anfangsdatum
|
8
9
|
title: Titel
|
10
|
+
translatable_text: Übersetzbarer Text
|
9
11
|
updated_at: Aktualisiert am
|
10
12
|
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Attribut schreibgeschützt
|
18
|
+
test: Test A
|
19
|
+
test_choices:
|
20
|
+
a: Wahl A
|
21
|
+
b: Wahl B
|
22
|
+
c: Wahl C
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Befürwortungen blockiert
|
25
|
+
endorsements_enabled: Befürwortungen aktiviert
|
26
|
+
readonly_step_attribute: Schritt-Attribut schreibgeschützt
|
11
27
|
dummy:
|
12
28
|
admin:
|
13
29
|
exports:
|