decidim-accountability 0.23.5 → 0.24.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/decidim/accountability/accountability/_categories.scss +5 -4
  3. data/app/cells/decidim/accountability/content_blocks/highlighted_results/elements.erb +5 -0
  4. data/app/cells/decidim/accountability/content_blocks/highlighted_results/heading.erb +1 -0
  5. data/app/cells/decidim/accountability/content_blocks/highlighted_results_cell.rb +18 -0
  6. data/app/cells/decidim/accountability/result_cell.rb +21 -0
  7. data/app/cells/decidim/accountability/result_m/data.erb +23 -0
  8. data/app/cells/decidim/accountability/result_m/footer.erb +22 -0
  9. data/app/cells/decidim/accountability/result_m/tags.erb +1 -0
  10. data/app/cells/decidim/accountability/result_m_cell.rb +37 -0
  11. data/app/controllers/concerns/decidim/accountability/admin/filterable.rb +59 -0
  12. data/app/controllers/decidim/accountability/admin/attachment_collections_controller.rb +32 -0
  13. data/app/controllers/decidim/accountability/admin/attachments_controller.rb +32 -0
  14. data/app/controllers/decidim/accountability/admin/results_controller.rb +7 -2
  15. data/app/helpers/decidim/accountability/admin/filterable_helper.rb +10 -0
  16. data/app/helpers/decidim/accountability/breadcrumb_helper.rb +3 -1
  17. data/app/models/decidim/accountability/result.rb +15 -2
  18. data/app/models/decidim/accountability/status.rb +5 -0
  19. data/app/views/decidim/accountability/admin/results/index.html.erb +52 -2
  20. data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -0
  21. data/app/views/decidim/accountability/results/_show_parent.html.erb +2 -0
  22. data/config/locales/ar.yml +0 -4
  23. data/config/locales/bg.yml +0 -4
  24. data/config/locales/ca.yml +24 -4
  25. data/config/locales/cs.yml +24 -4
  26. data/config/locales/da.yml +0 -4
  27. data/config/locales/de.yml +24 -4
  28. data/config/locales/el.yml +0 -4
  29. data/config/locales/en.yml +24 -4
  30. data/config/locales/es-MX.yml +24 -4
  31. data/config/locales/es-PY.yml +24 -4
  32. data/config/locales/es.yml +24 -4
  33. data/config/locales/eu.yml +0 -4
  34. data/config/locales/fi-plain.yml +24 -4
  35. data/config/locales/fi.yml +24 -4
  36. data/config/locales/fr-CA.yml +24 -4
  37. data/config/locales/fr.yml +24 -4
  38. data/config/locales/gl.yml +24 -4
  39. data/config/locales/hu.yml +0 -4
  40. data/config/locales/id-ID.yml +0 -4
  41. data/config/locales/is-IS.yml +24 -4
  42. data/config/locales/it.yml +24 -4
  43. data/config/locales/ja.yml +24 -4
  44. data/config/locales/lv.yml +0 -4
  45. data/config/locales/nl.yml +24 -4
  46. data/config/locales/no.yml +21 -4
  47. data/config/locales/pl.yml +24 -4
  48. data/config/locales/pt-BR.yml +0 -4
  49. data/config/locales/pt.yml +0 -4
  50. data/config/locales/ro-RO.yml +24 -4
  51. data/config/locales/ru.yml +0 -4
  52. data/config/locales/si-LK.yml +3 -0
  53. data/config/locales/sk.yml +7 -4
  54. data/config/locales/sl.yml +0 -4
  55. data/config/locales/sr-CS.yml +0 -4
  56. data/config/locales/sv.yml +27 -7
  57. data/config/locales/tr-TR.yml +22 -4
  58. data/config/locales/uk.yml +0 -4
  59. data/config/locales/zh-CN.yml +0 -4
  60. data/lib/decidim/accountability.rb +1 -0
  61. data/lib/decidim/accountability/admin_engine.rb +2 -0
  62. data/lib/decidim/accountability/api.rb +10 -0
  63. data/lib/decidim/accountability/component.rb +20 -8
  64. data/lib/decidim/accountability/engine.rb +0 -17
  65. data/lib/decidim/accountability/version.rb +1 -1
  66. data/lib/decidim/api/accountability_type.rb +26 -0
  67. data/lib/decidim/api/result_type.rb +32 -0
  68. data/lib/decidim/api/status_type.rb +19 -0
  69. data/lib/decidim/api/timeline_entry_type.rb +17 -0
  70. metadata +39 -28
  71. data/app/types/decidim/accountability/accountability_type.rb +0 -32
  72. data/app/types/decidim/accountability/result_type.rb +0 -35
  73. data/app/types/decidim/accountability/status_type.rb +0 -20
  74. data/app/types/decidim/accountability/timeline_entry_type.rb +0 -18
  75. data/app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_results.html.erb +0 -12
  76. data/app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb +0 -32
@@ -70,6 +70,8 @@
70
70
  <%= render partial: "stats_box" %>
71
71
 
72
72
  <%= render partial: "timeline", locals: { result: result } if result.timeline_entries.any? %>
73
+
74
+ <%= attachments_for result %>
73
75
  </div>
74
76
  </div>
75
77
 
@@ -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" %>
@@ -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: المشاريع المدرجة في هذه النتيجة
@@ -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})
@@ -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:
@@ -121,6 +124,11 @@ ca:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'No s''ha trobat el pare a la base de dades (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Dates
130
+ results: Resultats
131
+ unspecified: Sense especificar
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Errors
@@ -133,8 +141,12 @@ ca:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Categoria
145
+ created_at: Creat
136
146
  end_date: Fi
147
+ id: ID
137
148
  progress: Progrés
149
+ scope: Àmbit
138
150
  start_date: Inici
139
151
  status: Estat
140
152
  title: Títol
@@ -148,6 +160,9 @@ ca:
148
160
  fields:
149
161
  description: Descripció
150
162
  entry_date: Data
163
+ result_m:
164
+ executed: Executat
165
+ view: Veure
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ ca:
178
193
  votes: Suports
179
194
  timeline:
180
195
  title: Evolució del projecte
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Categoria
201
+ scope_id_eq:
202
+ label: Àmbit
203
+ status_id_eq:
204
+ label: Estat
181
205
  components:
182
206
  accountability:
183
207
  name: Seguiment
@@ -212,10 +236,6 @@ ca:
212
236
  description: Nombre de resultats generats
213
237
  object: resultats
214
238
  title: Resultats
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Resultats
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Veure tots els resultats (%{count})
@@ -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: Hlasy
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})
@@ -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
@@ -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})
@@ -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})
@@ -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})
@@ -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:
@@ -121,6 +124,11 @@ es-MX:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'El padre no se encontró en la base de datos (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Fechas
130
+ results: Resultados
131
+ unspecified: No especificado
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Errores
@@ -133,8 +141,12 @@ es-MX:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Categoría
145
+ created_at: Creado
136
146
  end_date: Fin
147
+ id: ID
137
148
  progress: Progreso
149
+ scope: Ámbito
138
150
  start_date: Inicio
139
151
  status: Estado
140
152
  title: Título
@@ -148,6 +160,9 @@ es-MX:
148
160
  fields:
149
161
  description: Descripción
150
162
  entry_date: Fecha
163
+ result_m:
164
+ executed: Ejecutado
165
+ view: Ver
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ es-MX:
178
193
  votes: Soportes
179
194
  timeline:
180
195
  title: Evolución del proyecto
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Categoría
201
+ scope_id_eq:
202
+ label: Ámbito
203
+ status_id_eq:
204
+ label: Estado
181
205
  components:
182
206
  accountability:
183
207
  name: Seguimiento
@@ -212,10 +236,6 @@ es-MX:
212
236
  description: Número de resultados generados
213
237
  object: resultados
214
238
  title: Resultados
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Resultados
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Ver todos los resultados (%{count})