decidim-accountability 0.23.0 → 0.24.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) 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 -14
  25. data/config/locales/cs.yml +41 -21
  26. data/config/locales/da.yml +197 -0
  27. data/config/locales/de.yml +42 -22
  28. data/config/locales/el.yml +0 -4
  29. data/config/locales/en.yml +24 -4
  30. data/config/locales/es-MX.yml +12 -4
  31. data/config/locales/es-PY.yml +12 -4
  32. data/config/locales/es.yml +21 -13
  33. data/config/locales/eu.yml +8 -12
  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 +48 -5
  39. data/config/locales/hu.yml +0 -4
  40. data/config/locales/id-ID.yml +0 -4
  41. data/config/locales/is-IS.yml +53 -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 +33 -13
  46. data/config/locales/no.yml +22 -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 +4 -4
  51. data/config/locales/ru.yml +0 -4
  52. data/config/locales/si-LK.yml +31 -0
  53. data/config/locales/sk.yml +23 -4
  54. data/config/locales/sl.yml +0 -4
  55. data/config/locales/sr-CS.yml +0 -4
  56. data/config/locales/sv.yml +26 -4
  57. data/config/locales/sw-KE.yml +1 -0
  58. data/config/locales/tr-TR.yml +59 -18
  59. data/config/locales/uk.yml +0 -4
  60. data/config/locales/zh-CN.yml +0 -4
  61. data/lib/decidim/accountability.rb +1 -0
  62. data/lib/decidim/accountability/admin_engine.rb +2 -0
  63. data/lib/decidim/accountability/api.rb +10 -0
  64. data/lib/decidim/accountability/component.rb +20 -8
  65. data/lib/decidim/accountability/engine.rb +0 -17
  66. data/lib/decidim/accountability/version.rb +1 -1
  67. data/lib/decidim/api/accountability_type.rb +26 -0
  68. data/lib/decidim/api/result_type.rb +32 -0
  69. data/lib/decidim/api/status_type.rb +19 -0
  70. data/lib/decidim/api/timeline_entry_type.rb +17 -0
  71. metadata +46 -33
  72. data/app/types/decidim/accountability/accountability_type.rb +0 -32
  73. data/app/types/decidim/accountability/result_type.rb +0 -35
  74. data/app/types/decidim/accountability/status_type.rb +0 -20
  75. data/app/types/decidim/accountability/timeline_entry_type.rb +0 -18
  76. data/app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_results.html.erb +0 -12
  77. data/app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb +0 -32
@@ -32,6 +32,8 @@ fi-pl:
32
32
  decidim:
33
33
  accountability:
34
34
  actions:
35
+ attachment_collections: Kansiot
36
+ attachments: Liitteet
35
37
  confirm_destroy: Oletko varma, että haluat poistaa tämän tuloksen?
36
38
  destroy: Poista
37
39
  edit: Muokkaa
@@ -42,6 +44,7 @@ fi-pl:
42
44
  title: Toiminnot
43
45
  admin:
44
46
  exports:
47
+ result_comments: Kommentit
45
48
  results: Tulokset
46
49
  import_results:
47
50
  new:
@@ -121,6 +124,11 @@ fi-pl:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'Pääelementtiä ei löytynyt tietokannasta (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Päivämäärät
130
+ results: Tulokset
131
+ unspecified: Ei määritelty
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Virheet
@@ -133,8 +141,12 @@ fi-pl:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Aihepiiri
145
+ created_at: Luontiaika
136
146
  end_date: Päättymispäivä
147
+ id: ID
137
148
  progress: Edistyminen
149
+ scope: Teema
138
150
  start_date: Alkamispäivä
139
151
  status: Tila
140
152
  title: Otsikko
@@ -148,6 +160,9 @@ fi-pl:
148
160
  fields:
149
161
  description: Kuvaus
150
162
  entry_date: Päivämäärä
163
+ result_m:
164
+ executed: Valmistunut
165
+ view: Näytä
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ fi-pl:
178
193
  votes: Kannatukset
179
194
  timeline:
180
195
  title: Projektin kehitys
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Aihepiiri
201
+ scope_id_eq:
202
+ label: Teema
203
+ status_id_eq:
204
+ label: Tila
181
205
  components:
182
206
  accountability:
183
207
  name: Vastuullisuus
@@ -212,10 +236,6 @@ fi-pl:
212
236
  description: Luotujen tulosten lukumäärä
213
237
  object: tulokset
214
238
  title: Tulokset
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Tulokset
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Näytä kaikki (%{count} kpl)
@@ -32,6 +32,8 @@ fi:
32
32
  decidim:
33
33
  accountability:
34
34
  actions:
35
+ attachment_collections: Kansiot
36
+ attachments: Liitteet
35
37
  confirm_destroy: Oletko varma, että haluat poistaa tämän tuloksen?
36
38
  destroy: Poista
37
39
  edit: Muokkaa
@@ -42,6 +44,7 @@ fi:
42
44
  title: Toiminnot
43
45
  admin:
44
46
  exports:
47
+ result_comments: Kommentit
45
48
  results: Tulokset
46
49
  import_results:
47
50
  new:
@@ -121,6 +124,11 @@ fi:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'Pääelementtiä ei löytynyt tietokannasta (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Päivämäärät
130
+ results: Tulokset
131
+ unspecified: Ei määritelty
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Virheet
@@ -133,8 +141,12 @@ fi:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Aihepiiri
145
+ created_at: Luontiaika
136
146
  end_date: Päättymispäivä
147
+ id: ID
137
148
  progress: Edistyminen
149
+ scope: Teema
138
150
  start_date: Alkamispäivä
139
151
  status: Tila
140
152
  title: Otsikko
@@ -148,6 +160,9 @@ fi:
148
160
  fields:
149
161
  description: Kuvaus
150
162
  entry_date: Päivämäärä
163
+ result_m:
164
+ executed: Valmistunut
165
+ view: Näytä
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ fi:
178
193
  votes: Kannatukset
179
194
  timeline:
180
195
  title: Projektin kehitys
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Aihepiiri
201
+ scope_id_eq:
202
+ label: Teema
203
+ status_id_eq:
204
+ label: Tila
181
205
  components:
182
206
  accountability:
183
207
  name: Vastuullisuus
@@ -212,10 +236,6 @@ fi:
212
236
  description: Luotujen tulosten lukumäärä
213
237
  object: tulokset
214
238
  title: Tulokset
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Tulokset
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Näytä kaikki (%{count} kpl)
@@ -32,6 +32,8 @@ fr-CA:
32
32
  decidim:
33
33
  accountability:
34
34
  actions:
35
+ attachment_collections: Dossiers
36
+ attachments: Pièces jointes
35
37
  confirm_destroy: Êtes-vous sûr de vouloir supprimer ce %{name}?
36
38
  destroy: Supprimer
37
39
  edit: Modifier
@@ -42,6 +44,7 @@ fr-CA:
42
44
  title: Actions
43
45
  admin:
44
46
  exports:
47
+ result_comments: Commentaires
45
48
  results: Réalisations
46
49
  import_results:
47
50
  new:
@@ -121,6 +124,11 @@ fr-CA:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'Le parent n''a pas été trouvé dans la base de données (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Dates
130
+ results: Réalisations
131
+ unspecified: Non précisé
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Erreurs
@@ -133,8 +141,12 @@ fr-CA:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Catégorie
145
+ created_at: Créé le
136
146
  end_date: Date de fin
147
+ id: ID
137
148
  progress: Avancement
149
+ scope: Secteur
138
150
  start_date: Date de début
139
151
  status: Statut
140
152
  title: Titre
@@ -148,6 +160,9 @@ fr-CA:
148
160
  fields:
149
161
  description: Description
150
162
  entry_date: Date
163
+ result_m:
164
+ executed: Exécuté
165
+ view: Voir
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ fr-CA:
178
193
  votes: Votes
179
194
  timeline:
180
195
  title: Évolution du projet
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Catégorie
201
+ scope_id_eq:
202
+ label: Secteur
203
+ status_id_eq:
204
+ label: Statut
181
205
  components:
182
206
  accountability:
183
207
  name: Suivi
@@ -212,10 +236,6 @@ fr-CA:
212
236
  description: Nombre de résultats générés
213
237
  object: résultats
214
238
  title: Résultats
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Réalisations
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Voir tous les résultats (%{count})
@@ -32,6 +32,8 @@ fr:
32
32
  decidim:
33
33
  accountability:
34
34
  actions:
35
+ attachment_collections: Dossiers
36
+ attachments: Pièces jointes
35
37
  confirm_destroy: Êtes-vous sûr de vouloir supprimer ce %{name}?
36
38
  destroy: Supprimer
37
39
  edit: Modifier
@@ -42,6 +44,7 @@ fr:
42
44
  title: Actions
43
45
  admin:
44
46
  exports:
47
+ result_comments: Commentaires
45
48
  results: Réalisations
46
49
  import_results:
47
50
  new:
@@ -121,6 +124,11 @@ fr:
121
124
  value_types:
122
125
  parent_presenter:
123
126
  not_found: 'Le parent n''a pas été trouvé dans la base de données (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Dates
130
+ results: Réalisations
131
+ unspecified: Non précisé
124
132
  import_mailer:
125
133
  import:
126
134
  errors: Erreurs
@@ -133,8 +141,12 @@ fr:
133
141
  models:
134
142
  result:
135
143
  fields:
144
+ category: Catégorie
145
+ created_at: Créé le
136
146
  end_date: Date de fin
147
+ id: ID
137
148
  progress: Avancement
149
+ scope: Secteur
138
150
  start_date: Date de début
139
151
  status: Statut
140
152
  title: Titre
@@ -148,6 +160,9 @@ fr:
148
160
  fields:
149
161
  description: Description
150
162
  entry_date: Date
163
+ result_m:
164
+ executed: Exécuté
165
+ view: Voir
151
166
  results:
152
167
  count:
153
168
  results_count:
@@ -178,6 +193,15 @@ fr:
178
193
  votes: Votes
179
194
  timeline:
180
195
  title: Évolution du projet
196
+ admin:
197
+ filters:
198
+ results:
199
+ category_id_eq:
200
+ label: Catégorie
201
+ scope_id_eq:
202
+ label: Secteur
203
+ status_id_eq:
204
+ label: Statut
181
205
  components:
182
206
  accountability:
183
207
  name: Suivi
@@ -212,10 +236,6 @@ fr:
212
236
  description: Nombre de résultats générés
213
237
  object: résultats
214
238
  title: Résultats
215
- participatory_processes:
216
- participatory_process_groups:
217
- highlighted_results:
218
- results: Réalisations
219
239
  participatory_spaces:
220
240
  highlighted_results:
221
241
  see_all: Voir tous les résultats (%{count})
@@ -9,7 +9,7 @@ gl:
9
9
  end_date: Data de finalización
10
10
  progress: Progreso
11
11
  project_ids: Proxectos incluídos
12
- proposals: Propostas incluidas
12
+ proposals: Propostas incluídas
13
13
  start_date: Data de inicio
14
14
  title: Título
15
15
  updated_at: Actualizado en
@@ -32,16 +32,29 @@ gl:
32
32
  decidim:
33
33
  accountability:
34
34
  actions:
35
+ attachment_collections: Cartafoles
36
+ attachments: Ficheiros anexos
35
37
  confirm_destroy: Estás seguro de que queres eliminar este %{name}?
36
38
  destroy: Eliminar
37
39
  edit: Editar
40
+ import_csv: Importar CSV
38
41
  new: Novo %{name}
39
42
  preview: Vista previa
40
43
  timeline_entries: Evolución do proxecto
41
44
  title: Accións
42
45
  admin:
43
46
  exports:
47
+ result_comments: Comentarios
44
48
  results: Resultados
49
+ import_results:
50
+ new:
51
+ import: Importar
52
+ info: "<p>Recomendámosche seguir os seguintes pasos:</p><ol><li>Crear os estados para os Resultados que desexes engadir (<a href='%{link_new_status}' target='_blank'>ligazón</a>)</li><li>Crear polo menos un Resultado de xeito manual a través deste panel de administrador (<a href='%{link_new_result}' target='_blank'>ligazón</a>) antes de usar Importar, para entender o formato e que precisas encher.</li><li>Descargar o ficheiro en formato CSV (%{link_export_csv})</li><li>Fai os trocos localmente. Só podes trocar as seguintes columnas do CSV:</li></ol><ul><li><b>category/id:</b> ID da categoría</li><li><b>scope/id:</b> ID do ámbito</li><li><b>parent/id:</b> ID do pai (para Resultados relacionados). Opcional</li><li><b>title/I18N:</b> Título no idioma X</li><li><b>description/I18N:</b> Descrición no idioma X</li><li><b>start_date:</b> data na que se inicia a execución do resultado (formato YYYY-MM-DD)</li><li><b>end_date:</b> data na que remata a execución (formato YYYY-MM-DD)</li><li><b>status/id:</b> ID do estado do resultado</li><li><b>progress:</b> Porcentaxe (de 0 a 100) da execución</li><li><b>proposals_ids:</b> ID interno das propostas relacionadas (separadas por comas). Isto converterase automaticamente en <span class='attribute-name'>proposal_url</span></li></ul>"
53
+ link: ligazón
54
+ title: Importar resultados dun CSV
55
+ imports:
56
+ create:
57
+ success: Importando o ficheiro. Recibirás un correo electrónico nos vindeiros minutos co resultado da importación
45
58
  models:
46
59
  result:
47
60
  name: Resultado
@@ -111,13 +124,29 @@ gl:
111
124
  value_types:
112
125
  parent_presenter:
113
126
  not_found: 'Non se atopou o pai na base de datos (ID: %{id})'
127
+ content_blocks:
128
+ highlighted_results:
129
+ dates: Datas
130
+ results: Resultados
131
+ unspecified: Sen especificar
132
+ import_mailer:
133
+ import:
134
+ errors: Erros
135
+ errors_present: Produciuse un erro ao importar os resultados
136
+ row_number: Fila
137
+ subject: Resultados importados con éxito
138
+ success: Resultados importados con éxito. Podes revisar os resultados no panel de administración.
114
139
  last_activity:
115
140
  new_result_at_html: "<span>Novo resultado en %{link}</span>"
116
141
  models:
117
142
  result:
118
143
  fields:
144
+ category: Categoría
145
+ created_at: Creado
119
146
  end_date: Data de finalización
147
+ id: ID
120
148
  progress: Progreso
149
+ scope: Ámbito
121
150
  start_date: Data de inicio
122
151
  status: Estado
123
152
  title: Título
@@ -131,6 +160,9 @@ gl:
131
160
  fields:
132
161
  description: Descrición
133
162
  entry_date: Data
163
+ result_m:
164
+ executed: Executado
165
+ view: Ver
134
166
  results:
135
167
  count:
136
168
  results_count:
@@ -161,6 +193,15 @@ gl:
161
193
  votes: Soporta
162
194
  timeline:
163
195
  title: Evolución do proxecto
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
164
205
  components:
165
206
  accountability:
166
207
  name: Responsabilidade
@@ -168,10 +209,13 @@ gl:
168
209
  global:
169
210
  categories_label: Nome para "Categorías"
170
211
  comments_enabled: Comentarios habilitados
212
+ comments_max_length: Lonxitude máxima dos comentarios (0 para valor predefinido)
171
213
  display_progress_enabled: Mostrar o progreso
172
214
  heading_leaf_level_results: Nome para "Proxectos"
173
215
  heading_parent_level_results: Nome para "Resultados"
174
216
  intro: Intro
217
+ scope_id: Ámbito
218
+ scopes_enabled: Ámbitos habilitados
175
219
  subcategories_label: Nome para "Subcategorías"
176
220
  step:
177
221
  comments_blocked: Comentarios bloqueados
@@ -192,10 +236,9 @@ gl:
192
236
  description: Número de resultados xerados
193
237
  object: resultados
194
238
  title: Resultados
195
- participatory_processes:
196
- participatory_process_groups:
197
- highlighted_results:
198
- results: Resultados
239
+ participatory_spaces:
240
+ highlighted_results:
241
+ see_all: Ver todos os resultados (%{count})
199
242
  resource_links:
200
243
  included_projects:
201
244
  result_project: Proxectos incluídos neste resultado
@@ -209,10 +209,6 @@ hu:
209
209
  description: A keletkezett eredmények száma
210
210
  object: eredmények
211
211
  title: Eredmények
212
- participatory_processes:
213
- participatory_process_groups:
214
- highlighted_results:
215
- results: Eredmények
216
212
  participatory_spaces:
217
213
  highlighted_results:
218
214
  see_all: Eredmények megtekintése (%{count})
@@ -190,10 +190,6 @@ id:
190
190
  description: Jumlah hasil yang dihasilkan
191
191
  object: hasil
192
192
  title: Hasil
193
- participatory_processes:
194
- participatory_process_groups:
195
- highlighted_results:
196
- results: Hasil
197
193
  resource_links:
198
194
  included_projects:
199
195
  result_project: Proyek termasuk dalam hasil ini