decidim-accountability 0.23.3 → 0.24.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/decidim/accountability/accountability/_categories.scss +5 -4
- data/app/cells/decidim/accountability/content_blocks/highlighted_results/elements.erb +5 -0
- data/app/cells/decidim/accountability/content_blocks/highlighted_results/heading.erb +1 -0
- data/app/cells/decidim/accountability/content_blocks/highlighted_results_cell.rb +18 -0
- data/app/cells/decidim/accountability/result_cell.rb +21 -0
- data/app/cells/decidim/accountability/result_m/data.erb +23 -0
- data/app/cells/decidim/accountability/result_m/footer.erb +22 -0
- data/app/cells/decidim/accountability/result_m/tags.erb +1 -0
- data/app/cells/decidim/accountability/result_m_cell.rb +37 -0
- data/app/controllers/concerns/decidim/accountability/admin/filterable.rb +59 -0
- data/app/controllers/decidim/accountability/admin/attachment_collections_controller.rb +32 -0
- data/app/controllers/decidim/accountability/admin/attachments_controller.rb +32 -0
- data/app/controllers/decidim/accountability/admin/results_controller.rb +7 -2
- data/app/helpers/decidim/accountability/admin/filterable_helper.rb +10 -0
- data/app/helpers/decidim/accountability/breadcrumb_helper.rb +3 -1
- data/app/models/decidim/accountability/result.rb +15 -2
- data/app/models/decidim/accountability/status.rb +5 -0
- data/app/views/decidim/accountability/admin/results/index.html.erb +52 -2
- data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -0
- data/app/views/decidim/accountability/results/_show_parent.html.erb +2 -0
- data/config/locales/ar.yml +0 -4
- data/config/locales/bg.yml +0 -4
- data/config/locales/ca.yml +14 -4
- data/config/locales/cs.yml +24 -4
- data/config/locales/da.yml +0 -4
- data/config/locales/de.yml +24 -4
- data/config/locales/el.yml +0 -4
- data/config/locales/en.yml +24 -4
- data/config/locales/es-MX.yml +12 -4
- data/config/locales/es-PY.yml +12 -4
- data/config/locales/es.yml +12 -4
- data/config/locales/eu.yml +0 -4
- data/config/locales/fi-plain.yml +24 -4
- data/config/locales/fi.yml +24 -4
- data/config/locales/fr-CA.yml +24 -4
- data/config/locales/fr.yml +24 -4
- data/config/locales/gl.yml +24 -4
- data/config/locales/hu.yml +0 -4
- data/config/locales/id-ID.yml +0 -4
- data/config/locales/is-IS.yml +24 -4
- data/config/locales/it.yml +24 -4
- data/config/locales/ja.yml +24 -4
- data/config/locales/lv.yml +0 -4
- data/config/locales/nl.yml +24 -4
- data/config/locales/no.yml +21 -4
- data/config/locales/pl.yml +24 -4
- data/config/locales/pt-BR.yml +0 -4
- data/config/locales/pt.yml +0 -4
- data/config/locales/ro-RO.yml +4 -4
- data/config/locales/ru.yml +0 -4
- data/config/locales/si-LK.yml +3 -0
- data/config/locales/sk.yml +7 -4
- data/config/locales/sl.yml +0 -4
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +24 -4
- data/config/locales/tr-TR.yml +22 -4
- data/config/locales/uk.yml +0 -4
- data/config/locales/zh-CN.yml +0 -4
- data/lib/decidim/accountability.rb +1 -0
- data/lib/decidim/accountability/admin_engine.rb +2 -0
- data/lib/decidim/accountability/api.rb +10 -0
- data/lib/decidim/accountability/component.rb +20 -8
- data/lib/decidim/accountability/engine.rb +0 -17
- data/lib/decidim/accountability/version.rb +1 -1
- data/lib/decidim/api/accountability_type.rb +26 -0
- data/lib/decidim/api/result_type.rb +32 -0
- data/lib/decidim/api/status_type.rb +19 -0
- data/lib/decidim/api/timeline_entry_type.rb +17 -0
- metadata +41 -30
- data/app/types/decidim/accountability/accountability_type.rb +0 -32
- data/app/types/decidim/accountability/result_type.rb +0 -35
- data/app/types/decidim/accountability/status_type.rb +0 -20
- data/app/types/decidim/accountability/timeline_entry_type.rb +0 -18
- data/app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_results.html.erb +0 -12
- data/app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb +0 -32
@@ -15,6 +15,8 @@
|
|
15
15
|
<%= cell "decidim/tags", result, context: { extra_classes: ["tags--result"] } %>
|
16
16
|
|
17
17
|
<%= render partial: "results_leaf", locals: { results: result.children.page(1).per(result.children_count), total_count: result.children_count } %>
|
18
|
+
|
19
|
+
<%= attachments_for result %>
|
18
20
|
</div>
|
19
21
|
</div>
|
20
22
|
<%= render partial: "stats_box" %>
|
data/config/locales/ar.yml
CHANGED
@@ -200,10 +200,6 @@ ar:
|
|
200
200
|
description: عدد النتائج الناتجة
|
201
201
|
object: النتائج
|
202
202
|
title: النتائج
|
203
|
-
participatory_processes:
|
204
|
-
participatory_process_groups:
|
205
|
-
highlighted_results:
|
206
|
-
results: النتائج
|
207
203
|
resource_links:
|
208
204
|
included_projects:
|
209
205
|
result_project: المشاريع المدرجة في هذه النتيجة
|
data/config/locales/bg.yml
CHANGED
@@ -212,10 +212,6 @@ bg:
|
|
212
212
|
description: Брой генерирани резултати
|
213
213
|
object: резултати
|
214
214
|
title: Резултати
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Резултати
|
219
215
|
participatory_spaces:
|
220
216
|
highlighted_results:
|
221
217
|
see_all: Виж всички резултати (%{count})
|
data/config/locales/ca.yml
CHANGED
@@ -32,6 +32,8 @@ ca:
|
|
32
32
|
decidim:
|
33
33
|
accountability:
|
34
34
|
actions:
|
35
|
+
attachment_collections: Carpetes
|
36
|
+
attachments: Fitxers adjunts
|
35
37
|
confirm_destroy: Segur que vols suprimir aquest %{name}?
|
36
38
|
destroy: Esborrar
|
37
39
|
edit: Editar
|
@@ -42,6 +44,7 @@ ca:
|
|
42
44
|
title: Accions
|
43
45
|
admin:
|
44
46
|
exports:
|
47
|
+
result_comments: Comentaris
|
45
48
|
results: Resultats
|
46
49
|
import_results:
|
47
50
|
new:
|
@@ -148,6 +151,8 @@ ca:
|
|
148
151
|
fields:
|
149
152
|
description: Descripció
|
150
153
|
entry_date: Data
|
154
|
+
result_m:
|
155
|
+
view: Veure
|
151
156
|
results:
|
152
157
|
count:
|
153
158
|
results_count:
|
@@ -178,6 +183,15 @@ ca:
|
|
178
183
|
votes: Suports
|
179
184
|
timeline:
|
180
185
|
title: Evolució del projecte
|
186
|
+
admin:
|
187
|
+
filters:
|
188
|
+
results:
|
189
|
+
category_id_eq:
|
190
|
+
label: Categoria
|
191
|
+
scope_id_eq:
|
192
|
+
label: Àmbit
|
193
|
+
status_id_eq:
|
194
|
+
label: Estat
|
181
195
|
components:
|
182
196
|
accountability:
|
183
197
|
name: Seguiment
|
@@ -212,10 +226,6 @@ ca:
|
|
212
226
|
description: Nombre de resultats generats
|
213
227
|
object: resultats
|
214
228
|
title: Resultats
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Resultats
|
219
229
|
participatory_spaces:
|
220
230
|
highlighted_results:
|
221
231
|
see_all: Veure tots els resultats (%{count})
|
data/config/locales/cs.yml
CHANGED
@@ -34,6 +34,8 @@ cs:
|
|
34
34
|
decidim:
|
35
35
|
accountability:
|
36
36
|
actions:
|
37
|
+
attachment_collections: Složky
|
38
|
+
attachments: Přílohy
|
37
39
|
confirm_destroy: Opravdu chcete smazat tento %{name}?
|
38
40
|
destroy: Odstranit
|
39
41
|
edit: Upravit
|
@@ -44,6 +46,7 @@ cs:
|
|
44
46
|
title: Akce
|
45
47
|
admin:
|
46
48
|
exports:
|
49
|
+
result_comments: Komentáře
|
47
50
|
results: Výsledky
|
48
51
|
import_results:
|
49
52
|
new:
|
@@ -123,6 +126,11 @@ cs:
|
|
123
126
|
value_types:
|
124
127
|
parent_presenter:
|
125
128
|
not_found: 'Nadřazený nebyl nalezen v databázi (ID: %{id})'
|
129
|
+
content_blocks:
|
130
|
+
highlighted_results:
|
131
|
+
dates: Data
|
132
|
+
results: Výsledky
|
133
|
+
unspecified: Nespecifikováno
|
126
134
|
import_mailer:
|
127
135
|
import:
|
128
136
|
errors: Chyby
|
@@ -135,8 +143,12 @@ cs:
|
|
135
143
|
models:
|
136
144
|
result:
|
137
145
|
fields:
|
146
|
+
category: Kategorie
|
147
|
+
created_at: Vytvořeno
|
138
148
|
end_date: Datum ukončení
|
149
|
+
id: ID
|
139
150
|
progress: Průběh
|
151
|
+
scope: Oblast působnosti
|
140
152
|
start_date: Počáteční datum
|
141
153
|
status: Stav
|
142
154
|
title: Název
|
@@ -150,6 +162,9 @@ cs:
|
|
150
162
|
fields:
|
151
163
|
description: Popis
|
152
164
|
entry_date: Datum
|
165
|
+
result_m:
|
166
|
+
executed: Provedeno
|
167
|
+
view: Zobrazit
|
153
168
|
results:
|
154
169
|
count:
|
155
170
|
results_count:
|
@@ -182,6 +197,15 @@ cs:
|
|
182
197
|
votes: Podpory
|
183
198
|
timeline:
|
184
199
|
title: Vývoj projektu
|
200
|
+
admin:
|
201
|
+
filters:
|
202
|
+
results:
|
203
|
+
category_id_eq:
|
204
|
+
label: Kategorie
|
205
|
+
scope_id_eq:
|
206
|
+
label: Oblast působnosti
|
207
|
+
status_id_eq:
|
208
|
+
label: Stav
|
185
209
|
components:
|
186
210
|
accountability:
|
187
211
|
name: Odpovědnost
|
@@ -216,10 +240,6 @@ cs:
|
|
216
240
|
description: Počet vygenerovaných výsledků
|
217
241
|
object: výsledky
|
218
242
|
title: Výsledky
|
219
|
-
participatory_processes:
|
220
|
-
participatory_process_groups:
|
221
|
-
highlighted_results:
|
222
|
-
results: Výsledky
|
223
243
|
participatory_spaces:
|
224
244
|
highlighted_results:
|
225
245
|
see_all: Zobrazit všechny výsledky (%{count})
|
data/config/locales/da.yml
CHANGED
@@ -193,10 +193,6 @@ da:
|
|
193
193
|
scope_id: Omfang
|
194
194
|
scopes_enabled: Omfang aktiveret
|
195
195
|
subcategories_label: Navn for "Underkategorier"
|
196
|
-
participatory_processes:
|
197
|
-
participatory_process_groups:
|
198
|
-
highlighted_results:
|
199
|
-
results: Resultater
|
200
196
|
resource_links:
|
201
197
|
included_proposals:
|
202
198
|
result_proposal: Forslag i dette resultat
|
data/config/locales/de.yml
CHANGED
@@ -32,6 +32,8 @@ de:
|
|
32
32
|
decidim:
|
33
33
|
accountability:
|
34
34
|
actions:
|
35
|
+
attachment_collections: Ordner
|
36
|
+
attachments: Anhänge
|
35
37
|
confirm_destroy: Sind Sie sicher, dass Sie diese %{name}löschen möchten?
|
36
38
|
destroy: Löschen
|
37
39
|
edit: Bearbeiten
|
@@ -42,6 +44,7 @@ de:
|
|
42
44
|
title: Aktionen
|
43
45
|
admin:
|
44
46
|
exports:
|
47
|
+
result_comments: Bemerkungen
|
45
48
|
results: Ergebnisse
|
46
49
|
import_results:
|
47
50
|
new:
|
@@ -121,6 +124,11 @@ de:
|
|
121
124
|
value_types:
|
122
125
|
parent_presenter:
|
123
126
|
not_found: 'Das übergeordnete Objekt wurde nicht in der Datenbank gefunden (ID: %{id})'
|
127
|
+
content_blocks:
|
128
|
+
highlighted_results:
|
129
|
+
dates: Daten
|
130
|
+
results: Ergebnisse
|
131
|
+
unspecified: Keine Angabe
|
124
132
|
import_mailer:
|
125
133
|
import:
|
126
134
|
errors: Fehler
|
@@ -133,8 +141,12 @@ de:
|
|
133
141
|
models:
|
134
142
|
result:
|
135
143
|
fields:
|
144
|
+
category: Kategorie
|
145
|
+
created_at: Erstellt am
|
136
146
|
end_date: Enddatum
|
147
|
+
id: ID
|
137
148
|
progress: Fortschritt
|
149
|
+
scope: Themenbereich
|
138
150
|
start_date: Startdatum
|
139
151
|
status: Status
|
140
152
|
title: Titel
|
@@ -148,6 +160,9 @@ de:
|
|
148
160
|
fields:
|
149
161
|
description: Beschreibung
|
150
162
|
entry_date: Datum
|
163
|
+
result_m:
|
164
|
+
executed: Ausgeführt
|
165
|
+
view: Ansicht
|
151
166
|
results:
|
152
167
|
count:
|
153
168
|
results_count:
|
@@ -178,6 +193,15 @@ de:
|
|
178
193
|
votes: Unterstützt
|
179
194
|
timeline:
|
180
195
|
title: Projektentwicklung
|
196
|
+
admin:
|
197
|
+
filters:
|
198
|
+
results:
|
199
|
+
category_id_eq:
|
200
|
+
label: Kategorie
|
201
|
+
scope_id_eq:
|
202
|
+
label: Themenbereich
|
203
|
+
status_id_eq:
|
204
|
+
label: Status
|
181
205
|
components:
|
182
206
|
accountability:
|
183
207
|
name: Rechenschaftspflicht
|
@@ -212,10 +236,6 @@ de:
|
|
212
236
|
description: Anzahl der generierten Ergebnisse
|
213
237
|
object: Ergebnisse
|
214
238
|
title: Ergebnisse
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Ergebnisse
|
219
239
|
participatory_spaces:
|
220
240
|
highlighted_results:
|
221
241
|
see_all: Alle Ergebnisse ansehen (%{count})
|
data/config/locales/el.yml
CHANGED
@@ -210,10 +210,6 @@ el:
|
|
210
210
|
description: Αριθμός αποτελεσμάτων που δημιουργήθηκαν
|
211
211
|
object: αποτελέσματα
|
212
212
|
title: Αποτελέσματα
|
213
|
-
participatory_processes:
|
214
|
-
participatory_process_groups:
|
215
|
-
highlighted_results:
|
216
|
-
results: Αποτελέσματα
|
217
213
|
participatory_spaces:
|
218
214
|
highlighted_results:
|
219
215
|
see_all: Δείτε όλα τα αποτελέσματα (%{count})
|
data/config/locales/en.yml
CHANGED
@@ -33,6 +33,8 @@ en:
|
|
33
33
|
decidim:
|
34
34
|
accountability:
|
35
35
|
actions:
|
36
|
+
attachment_collections: Folders
|
37
|
+
attachments: Attachments
|
36
38
|
confirm_destroy: Are you sure you want to delete this %{name}?
|
37
39
|
destroy: Delete
|
38
40
|
edit: Edit
|
@@ -43,6 +45,7 @@ en:
|
|
43
45
|
title: Actions
|
44
46
|
admin:
|
45
47
|
exports:
|
48
|
+
result_comments: Comments
|
46
49
|
results: Results
|
47
50
|
import_results:
|
48
51
|
new:
|
@@ -122,6 +125,11 @@ en:
|
|
122
125
|
value_types:
|
123
126
|
parent_presenter:
|
124
127
|
not_found: 'The parent was not found on the database (ID: %{id})'
|
128
|
+
content_blocks:
|
129
|
+
highlighted_results:
|
130
|
+
dates: Dates
|
131
|
+
results: Results
|
132
|
+
unspecified: Not specified
|
125
133
|
import_mailer:
|
126
134
|
import:
|
127
135
|
errors: Errors
|
@@ -134,8 +142,12 @@ en:
|
|
134
142
|
models:
|
135
143
|
result:
|
136
144
|
fields:
|
145
|
+
category: Category
|
146
|
+
created_at: Created
|
137
147
|
end_date: End date
|
148
|
+
id: ID
|
138
149
|
progress: Progress
|
150
|
+
scope: Scope
|
139
151
|
start_date: Start date
|
140
152
|
status: Status
|
141
153
|
title: Title
|
@@ -149,6 +161,9 @@ en:
|
|
149
161
|
fields:
|
150
162
|
description: Description
|
151
163
|
entry_date: Date
|
164
|
+
result_m:
|
165
|
+
executed: Executed
|
166
|
+
view: View
|
152
167
|
results:
|
153
168
|
count:
|
154
169
|
results_count:
|
@@ -179,6 +194,15 @@ en:
|
|
179
194
|
votes: Supports
|
180
195
|
timeline:
|
181
196
|
title: Project evolution
|
197
|
+
admin:
|
198
|
+
filters:
|
199
|
+
results:
|
200
|
+
category_id_eq:
|
201
|
+
label: Category
|
202
|
+
scope_id_eq:
|
203
|
+
label: Scope
|
204
|
+
status_id_eq:
|
205
|
+
label: Status
|
182
206
|
components:
|
183
207
|
accountability:
|
184
208
|
name: Accountability
|
@@ -213,10 +237,6 @@ en:
|
|
213
237
|
description: Number of results generated
|
214
238
|
object: results
|
215
239
|
title: Results
|
216
|
-
participatory_processes:
|
217
|
-
participatory_process_groups:
|
218
|
-
highlighted_results:
|
219
|
-
results: Results
|
220
240
|
participatory_spaces:
|
221
241
|
highlighted_results:
|
222
242
|
see_all: See all results (%{count})
|
data/config/locales/es-MX.yml
CHANGED
@@ -32,6 +32,8 @@ es-MX:
|
|
32
32
|
decidim:
|
33
33
|
accountability:
|
34
34
|
actions:
|
35
|
+
attachment_collections: Carpetas
|
36
|
+
attachments: Archivos adjuntos
|
35
37
|
confirm_destroy: '¿Está seguro de que quiere eliminar este %{name}?'
|
36
38
|
destroy: Borrar
|
37
39
|
edit: Editar
|
@@ -42,6 +44,7 @@ es-MX:
|
|
42
44
|
title: Acciones
|
43
45
|
admin:
|
44
46
|
exports:
|
47
|
+
result_comments: Comentarios
|
45
48
|
results: Resultados
|
46
49
|
import_results:
|
47
50
|
new:
|
@@ -178,6 +181,15 @@ es-MX:
|
|
178
181
|
votes: Soportes
|
179
182
|
timeline:
|
180
183
|
title: Evolución del proyecto
|
184
|
+
admin:
|
185
|
+
filters:
|
186
|
+
results:
|
187
|
+
category_id_eq:
|
188
|
+
label: Categoría
|
189
|
+
scope_id_eq:
|
190
|
+
label: Ámbito
|
191
|
+
status_id_eq:
|
192
|
+
label: Estado
|
181
193
|
components:
|
182
194
|
accountability:
|
183
195
|
name: Seguimiento
|
@@ -212,10 +224,6 @@ es-MX:
|
|
212
224
|
description: Número de resultados generados
|
213
225
|
object: resultados
|
214
226
|
title: Resultados
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Resultados
|
219
227
|
participatory_spaces:
|
220
228
|
highlighted_results:
|
221
229
|
see_all: Ver todos los resultados (%{count})
|
data/config/locales/es-PY.yml
CHANGED
@@ -32,6 +32,8 @@ es-PY:
|
|
32
32
|
decidim:
|
33
33
|
accountability:
|
34
34
|
actions:
|
35
|
+
attachment_collections: Carpetas
|
36
|
+
attachments: Archivos adjuntos
|
35
37
|
confirm_destroy: '¿Está seguro de que quiere eliminar este %{name}?'
|
36
38
|
destroy: Borrar
|
37
39
|
edit: Editar
|
@@ -42,6 +44,7 @@ es-PY:
|
|
42
44
|
title: Acciones
|
43
45
|
admin:
|
44
46
|
exports:
|
47
|
+
result_comments: Comentarios
|
45
48
|
results: Resultados
|
46
49
|
import_results:
|
47
50
|
new:
|
@@ -178,6 +181,15 @@ es-PY:
|
|
178
181
|
votes: Soportes
|
179
182
|
timeline:
|
180
183
|
title: Evolución del proyecto
|
184
|
+
admin:
|
185
|
+
filters:
|
186
|
+
results:
|
187
|
+
category_id_eq:
|
188
|
+
label: Categoría
|
189
|
+
scope_id_eq:
|
190
|
+
label: Ámbito
|
191
|
+
status_id_eq:
|
192
|
+
label: Estado
|
181
193
|
components:
|
182
194
|
accountability:
|
183
195
|
name: Seguimiento
|
@@ -212,10 +224,6 @@ es-PY:
|
|
212
224
|
description: Número de resultados generados
|
213
225
|
object: resultados
|
214
226
|
title: Resultados
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Resultados
|
219
227
|
participatory_spaces:
|
220
228
|
highlighted_results:
|
221
229
|
see_all: Ver todos los resultados (%{count})
|
data/config/locales/es.yml
CHANGED
@@ -32,6 +32,8 @@ es:
|
|
32
32
|
decidim:
|
33
33
|
accountability:
|
34
34
|
actions:
|
35
|
+
attachment_collections: Carpetas
|
36
|
+
attachments: Archivos adjuntos
|
35
37
|
confirm_destroy: '¿Seguro que quieres eliminar este %{name}?'
|
36
38
|
destroy: Borrar
|
37
39
|
edit: Editar
|
@@ -42,6 +44,7 @@ es:
|
|
42
44
|
title: Acciones
|
43
45
|
admin:
|
44
46
|
exports:
|
47
|
+
result_comments: Comentarios
|
45
48
|
results: Resultados
|
46
49
|
import_results:
|
47
50
|
new:
|
@@ -178,6 +181,15 @@ es:
|
|
178
181
|
votes: Soportes
|
179
182
|
timeline:
|
180
183
|
title: Evolución del proyecto
|
184
|
+
admin:
|
185
|
+
filters:
|
186
|
+
results:
|
187
|
+
category_id_eq:
|
188
|
+
label: Categoría
|
189
|
+
scope_id_eq:
|
190
|
+
label: Ámbito
|
191
|
+
status_id_eq:
|
192
|
+
label: Estado
|
181
193
|
components:
|
182
194
|
accountability:
|
183
195
|
name: Seguimiento
|
@@ -212,10 +224,6 @@ es:
|
|
212
224
|
description: Número de resultados generados
|
213
225
|
object: resultados
|
214
226
|
title: Resultados
|
215
|
-
participatory_processes:
|
216
|
-
participatory_process_groups:
|
217
|
-
highlighted_results:
|
218
|
-
results: Resultados
|
219
227
|
participatory_spaces:
|
220
228
|
highlighted_results:
|
221
229
|
see_all: Ver todos los resultados (%{count})
|