decidim-accountability 0.26.2 → 0.27.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +13 -1
  3. data/app/commands/decidim/accountability/admin/create_imported_result.rb +1 -1
  4. data/app/commands/decidim/accountability/admin/create_result.rb +1 -1
  5. data/app/commands/decidim/accountability/admin/create_status.rb +6 -3
  6. data/app/commands/decidim/accountability/admin/create_timeline_entry.rb +11 -7
  7. data/app/commands/decidim/accountability/admin/destroy_result.rb +1 -1
  8. data/app/commands/decidim/accountability/admin/update_imported_result.rb +1 -1
  9. data/app/commands/decidim/accountability/admin/update_result.rb +1 -1
  10. data/app/commands/decidim/accountability/admin/update_status.rb +6 -3
  11. data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +9 -5
  12. data/app/controllers/decidim/accountability/admin/statuses_controller.rb +5 -3
  13. data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +5 -3
  14. data/app/controllers/decidim/accountability/results_controller.rb +12 -12
  15. data/app/forms/decidim/accountability/admin/result_form.rb +2 -2
  16. data/app/forms/decidim/accountability/admin/timeline_entry_form.rb +2 -1
  17. data/app/helpers/decidim/accountability/breadcrumb_helper.rb +2 -2
  18. data/app/models/decidim/accountability/result.rb +9 -5
  19. data/app/models/decidim/accountability/status.rb +6 -2
  20. data/app/models/decidim/accountability/timeline_entry.rb +6 -0
  21. data/app/permissions/decidim/accountability/admin/permissions.rb +7 -1
  22. data/app/presenters/decidim/accountability/admin_log/status_presenter.rb +38 -0
  23. data/app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb +37 -0
  24. data/app/services/decidim/accountability/results_calculator.rb +10 -6
  25. data/app/views/decidim/accountability/admin/results/index.html.erb +1 -1
  26. data/app/views/decidim/accountability/admin/timeline_entries/_form.html.erb +5 -1
  27. data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +2 -2
  28. data/app/views/decidim/accountability/results/_home_categories.html.erb +2 -2
  29. data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +3 -3
  30. data/app/views/decidim/accountability/results/_results_leaf.html.erb +3 -3
  31. data/app/views/decidim/accountability/results/_results_parent.html.erb +1 -1
  32. data/app/views/decidim/accountability/results/_scope_filters.html.erb +3 -3
  33. data/app/views/decidim/accountability/results/_search.html.erb +1 -1
  34. data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -2
  35. data/app/views/decidim/accountability/results/_timeline.html.erb +8 -2
  36. data/app/views/decidim/accountability/results/home.html.erb +3 -1
  37. data/app/views/decidim/accountability/versions/show.html.erb +3 -1
  38. data/config/locales/ar.yml +3 -1
  39. data/config/locales/bg.yml +1 -1
  40. data/config/locales/ca.yml +11 -1
  41. data/config/locales/cs.yml +11 -1
  42. data/config/locales/da.yml +1 -1
  43. data/config/locales/de.yml +11 -1
  44. data/config/locales/el.yml +1 -1
  45. data/config/locales/en.yml +10 -1
  46. data/config/locales/es-MX.yml +11 -1
  47. data/config/locales/es-PY.yml +11 -1
  48. data/config/locales/es.yml +11 -1
  49. data/config/locales/eu.yml +1 -1
  50. data/config/locales/fi-plain.yml +11 -1
  51. data/config/locales/fi.yml +11 -1
  52. data/config/locales/fr-CA.yml +11 -1
  53. data/config/locales/fr.yml +11 -1
  54. data/config/locales/ga-IE.yml +1 -0
  55. data/config/locales/gl.yml +1 -1
  56. data/config/locales/hu.yml +20 -10
  57. data/config/locales/id-ID.yml +1 -1
  58. data/config/locales/is-IS.yml +2 -2
  59. data/config/locales/it.yml +1 -1
  60. data/config/locales/ja.yml +11 -1
  61. data/config/locales/lb.yml +1 -1
  62. data/config/locales/lt.yml +13 -1
  63. data/config/locales/lv.yml +1 -1
  64. data/config/locales/nl.yml +12 -1
  65. data/config/locales/no.yml +13 -3
  66. data/config/locales/pl.yml +11 -1
  67. data/config/locales/pt-BR.yml +1 -1
  68. data/config/locales/pt.yml +1 -1
  69. data/config/locales/ro-RO.yml +1 -1
  70. data/config/locales/ru.yml +1 -1
  71. data/config/locales/si-LK.yml +1 -1
  72. data/config/locales/sk.yml +1 -1
  73. data/config/locales/sl.yml +1 -1
  74. data/config/locales/sr-CS.yml +1 -1
  75. data/config/locales/sv.yml +7 -1
  76. data/config/locales/tr-TR.yml +1 -1
  77. data/config/locales/uk.yml +1 -1
  78. data/config/locales/zh-CN.yml +1 -1
  79. data/db/migrate/20220331150008_add_title_to_timeline_entries.rb +7 -0
  80. data/db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb +13 -0
  81. data/lib/decidim/accountability/component.rb +2 -1
  82. data/lib/decidim/accountability/test/factories.rb +1 -0
  83. data/lib/decidim/accountability/version.rb +1 -1
  84. data/lib/decidim/api/timeline_entry_type.rb +1 -0
  85. metadata +28 -25
  86. data/app/services/decidim/accountability/result_search.rb +0 -48
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -158,7 +159,6 @@ gl:
158
159
  progress: Progreso
159
160
  timeline_entry:
160
161
  fields:
161
- description: Descrición
162
162
  entry_date: Data
163
163
  result_m:
164
164
  executed: Executado
@@ -1,10 +1,11 @@
1
+ ---
1
2
  hu:
2
3
  activemodel:
3
4
  attributes:
4
5
  result:
5
6
  decidim_accountability_status_id: Állapot
6
7
  decidim_category_id: Kategória
7
- decidim_scope_id: Hatáskör
8
+ decidim_scope_id: Hatókör
8
9
  description: Leírás
9
10
  end_date: Befejezés dátuma
10
11
  progress: Folyamat
@@ -21,6 +22,7 @@ hu:
21
22
  timeline_entry:
22
23
  description: Leírás
23
24
  entry_date: Dátum
25
+ title: Cím
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Az eredményhez kapcsolódó javaslat
26
28
  decidim/accountability/result_progress_updated_event: Az eredmények frissítve
@@ -94,7 +96,7 @@ hu:
94
96
  index:
95
97
  title: Állapotok
96
98
  new:
97
- create: Státusz létrehozása
99
+ create: Állapot létrehozása
98
100
  title: Új állapot
99
101
  update:
100
102
  invalid: Probléma történt az állapot frissítésekor
@@ -109,7 +111,7 @@ hu:
109
111
  title: Bejegyzés szerkesztése
110
112
  update: Bejegyzés frissítése
111
113
  index:
112
- title: Projekt ütemtervének bejegyzései
114
+ title: Projekt idővonal bejegyzései
113
115
  new:
114
116
  create: Bejegyzés létrehozása
115
117
  title: Új bejegyzés
@@ -121,6 +123,14 @@ hu:
121
123
  create: "%{user_name} által létrehozott eredmény: %{resource_name} (itt: %{space_name})"
122
124
  delete: "%{user_name} törölte a(z) %{resource_name} eredményt innen: %{space_name}"
123
125
  update: "%{user_name} frissítette a(z) %{resource_name} eredmény itt: %{space_name}"
126
+ status:
127
+ create: "%{user_name} létrehozta a(z) %{resource_name} állapotot"
128
+ delete: "%{user_name} törölte a(z) %{resource_name} állapotot"
129
+ update: "%{user_name} frissítette a(z) %{resource_name} állapotot"
130
+ timeline_entry:
131
+ create: "%{user_name} létrehozta az %{resource_name} idővonal bejegyzést"
132
+ delete: "%{user_name} törölte a(z) %{resource_name} idővonal bejegyzést"
133
+ update: "%{user_name} frissítette a %{resource_name} idővonal bejegyzést"
124
134
  value_types:
125
135
  parent_presenter:
126
136
  not_found: 'Nem található az adatbázisban (ID: %{id})'
@@ -158,8 +168,8 @@ hu:
158
168
  progress: Folyamat
159
169
  timeline_entry:
160
170
  fields:
161
- description: Leírás
162
171
  entry_date: Dátum
172
+ title: Cím
163
173
  result_m:
164
174
  executed: Végrehajtva
165
175
  view: Nézet
@@ -170,7 +180,7 @@ hu:
170
180
  other: "%{count} találat"
171
181
  filters:
172
182
  all: Összes
173
- scopes: Hatáskörök
183
+ scopes: Hatókörök
174
184
  home:
175
185
  categories_label: Kategóriák
176
186
  subcategories_label: Alkategóriák
@@ -225,13 +235,13 @@ hu:
225
235
  accountability:
226
236
  proposal_linked:
227
237
  email_intro: 'A "%{proposal_title}" nevű javaslat szerepel az eredményben. Erről az oldalról érhető el:'
228
- email_outro: Ezt az értesítést azért kaptad, mert követed a(z) "%{proposal_title}" nevű ajánlást. Az értesítéseket a következő linkre kattintva kapcsolhatod ki.
238
+ email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{proposal_title}". Az értesítéseket az előző linkre kattintva kapcsolhatod ki.'
229
239
  email_subject: A %{proposal_title} frissítve lett
230
240
  notification_title: 'A(z) <a href="%{proposal_path}">%{proposal_title}</a> javaslat szerepel ebben a(z) eredményben: <a href="%{resource_path}">%{resource_title}</a>.'
231
241
  result_progress_updated:
232
242
  email_intro: 'A "%{resource_title}" eredmény, amely magában foglalja a "%{proposal_title}" javaslatot, most már %{progress}% -ban teljes. Láthatod ezt erről oldalról:'
233
- email_outro: Ezt az értesítést azért kaptad, mert "%{proposal_title}" -t követed, és ez a javaslat szerepel a "%{resource_title}" eredményben. Leállíthatoa az értesítések fogadását követve az előző linket.
234
- email_subject: '%{resource_title} frissítése'
243
+ email_outro: Ezt az értesítést azért kaptad, mert "%{proposal_title}" -t követed, és ez a javaslat szerepel a "%{resource_title}" eredményben. Leállíthatod az értesítések fogadását követve az előző linket.
244
+ email_subject: '%{resource_title} frissítése folyamatban'
235
245
  notification_title: Az eredmény <a href="%{resource_path}">%{resource_title}</a>, amely magában foglalja a <a href="%{proposal_path}">%{proposal_title}</a>javaslatot, most %{progress}%-ban teljes.
236
246
  metrics:
237
247
  results:
@@ -243,8 +253,8 @@ hu:
243
253
  see_all: Eredmények megtekintése (%{count})
244
254
  resource_links:
245
255
  included_projects:
246
- result_project: Ebben az eredményben szereplő projektek
256
+ result_project: Az eredményben szereplő projektek
247
257
  included_proposals:
248
- result_proposal: Az eredménybe foglalt javaslatok
258
+ result_proposal: Ebben az eredményben szereplő javaslatok
249
259
  statistics:
250
260
  results_count: Találatok
@@ -1,3 +1,4 @@
1
+ ---
1
2
  id:
2
3
  activemodel:
3
4
  attributes:
@@ -128,7 +129,6 @@ id:
128
129
  progress: Kemajuan
129
130
  timeline_entry:
130
131
  fields:
131
- description: Deskripsi
132
132
  entry_date: Tanggal
133
133
  results:
134
134
  count:
@@ -1,4 +1,5 @@
1
- is-IS:
1
+ ---
2
+ is:
2
3
  activemodel:
3
4
  attributes:
4
5
  result:
@@ -145,7 +146,6 @@ is-IS:
145
146
  progress: Framfarir
146
147
  timeline_entry:
147
148
  fields:
148
- description: Lýsing
149
149
  entry_date: Dagsetning
150
150
  result_m:
151
151
  executed: Framkvæmt
@@ -1,3 +1,4 @@
1
+ ---
1
2
  it:
2
3
  activemodel:
3
4
  attributes:
@@ -158,7 +159,6 @@ it:
158
159
  progress: Avanzamento
159
160
  timeline_entry:
160
161
  fields:
161
- description: Descrizione
162
162
  entry_date: Data
163
163
  result_m:
164
164
  executed: Eseguito
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ja:
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@ ja:
21
22
  timeline_entry:
22
23
  description: 説明
23
24
  entry_date: 日付
25
+ title: タイトル
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: 結果に提案を含めます
26
28
  decidim/accountability/result_progress_updated_event: 結果の進捗状況が更新されました
@@ -120,6 +122,14 @@ ja:
120
122
  create: "%{user_name} が結果 %{resource_name} を %{space_name} に作成しました"
121
123
  delete: "%{user_name} が %{resource_name} の結果 %{space_name} を削除しました"
122
124
  update: "%{user_name} の結果 %{resource_name} を %{space_name} に更新しました"
125
+ status:
126
+ create: "%{user_name} が %{resource_name} ステータスを作成しました"
127
+ delete: "%{user_name} が %{resource_name} ステータスを削除しました"
128
+ update: "%{user_name} が %{resource_name} ステータスを更新しました"
129
+ timeline_entry:
130
+ create: "%{user_name} が %{resource_name} タイムラインエントリを作成しました"
131
+ delete: "%{user_name} が %{resource_name} タイムラインエントリを削除しました"
132
+ update: "%{user_name} が %{resource_name} タイムラインエントリを更新しました"
123
133
  value_types:
124
134
  parent_presenter:
125
135
  not_found: '親がデータベース上に見つかりませんでした (ID: %{id})'
@@ -157,8 +167,8 @@ ja:
157
167
  progress: 進捗状況
158
168
  timeline_entry:
159
169
  fields:
160
- description: 説明
161
170
  entry_date: 日付
171
+ title: タイトル
162
172
  result_m:
163
173
  executed: 実行日時
164
174
  view: 表示
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lb:
2
3
  activemodel:
3
4
  attributes:
@@ -158,7 +159,6 @@ lb:
158
159
  progress: Fortschritt
159
160
  timeline_entry:
160
161
  fields:
161
- description: Beschreiwung
162
162
  entry_date: Datum
163
163
  result_m:
164
164
  executed: Ausgeführt
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lt:
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@ lt:
21
22
  timeline_entry:
22
23
  description: Aprašymas
23
24
  entry_date: Data
25
+ title: Pavadinimas
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Pasiūlymas įtrauktas į rezultatą
26
28
  decidim/accountability/result_progress_updated_event: Rezultato progresas atnaujintas
@@ -123,6 +125,14 @@ lt:
123
125
  create: "%{user_name} sukūrė rezultatą %{resource_name} erdvėje %{space_name}"
124
126
  delete: "%{user_name} pašalino %{resource_name} rezultatą erdvėje %{space_name}"
125
127
  update: "%{user_name} atnaujino rezultatą %{resource_name} erdvėje %{space_name}"
128
+ status:
129
+ create: "%{user_name} sukūrė %{resource_name} būseną"
130
+ delete: "%{user_name} pašalino %{resource_name} būseną"
131
+ update: "%{user_name} atnaujino %{resource_name} būseną"
132
+ timeline_entry:
133
+ create: "%{user_name} sukūrė %{resource_name} laiko juostos įrašą"
134
+ delete: "%{user_name} pašalino %{resource_name} laiko juostos įrašą"
135
+ update: "%{user_name} atnaujino %{resource_name} laiko juostos įrašą"
126
136
  value_types:
127
137
  parent_presenter:
128
138
  not_found: 'Motininis elementas duomenų bazėje nerastas (ID: %{id})'
@@ -160,8 +170,8 @@ lt:
160
170
  progress: Progresas
161
171
  timeline_entry:
162
172
  fields:
163
- description: Aprašymas
164
173
  entry_date: Data
174
+ title: Pavadinimas
165
175
  result_m:
166
176
  executed: Įvykdyta
167
177
  view: Rodymas
@@ -180,6 +190,8 @@ lt:
180
190
  subcategories_label: Subkategorijos
181
191
  home_header:
182
192
  global_status: Bendra vykdymo būsena
193
+ nav_breadcrumb:
194
+ global: Bendras vykdymas
183
195
  search:
184
196
  search: Ieškoti veiksmų
185
197
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  activemodel:
3
4
  attributes:
@@ -143,7 +144,6 @@ lv:
143
144
  name: Nosaukums
144
145
  timeline_entry:
145
146
  fields:
146
- description: Apraksts
147
147
  entry_date: Datums
148
148
  results:
149
149
  count:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@ nl:
21
22
  timeline_entry:
22
23
  description: Beschrijving
23
24
  entry_date: Datum
25
+ title: Titel
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Voorstel opgenomen in een resultaat
26
28
  decidim/accountability/result_progress_updated_event: Resultaat voortgang bijgewerkt
@@ -49,6 +51,7 @@ nl:
49
51
  import_results:
50
52
  new:
51
53
  import: Importeren
54
+ info: "<p>Wij bevelen aan dat u de volgende stappen volgt:</p><ol><li>Maak de Statussen aan voor de Resultaten die u wilt toevoegen (<a href='%{link_new_status}' target='_blank'>link</a>)</li><li>Maak ten minste één Resultaat handmatig aan via dit Beheerderspaneel (<a href='%{link_new_result}' target='_blank'>link</a>) voordat u Importeren gebruikt, zodat u een beter inzicht hebt in het formaat en wat u moet invullen.</li><li>Download de Export in CSV-formaat (%{link_export_csv})</li><li>Voer de wijzigingen lokaal door. U kunt alleen de volgende kolommen van de CSV wijzigen:</li></ol><ul><li><b>category/id:</b> ID voor de Categorie</li><li><b>scope/id:</b> ID voor het Toepassingsgebied</li><li><b>parent/id:</b> ID van de hoofdwaarde (voor aanverwante resultaten). Facultatief</li><li><b>title/I18N:</b> Titel in X taal</li><li><b>description/I18N:</b> Beschrijving in X taal</li><li><b>start_date:</b> datum waarop de uitvoering van het resultaat start (formaat JJJJ-MM-DD)</li><li><b>end_date:</b> datum waarop de uitvoering van het resultaat eindigt (formaat JJJJ-MM-DD)</li><li><b>status/id:</b> ID van de status voor dit resultaat</li><li><b>progress:</b> Percentage (van 0 tot 100) van de uitvoering</li><li><b>proposals_ids:</b> intern ID van de aanverwante voorstellen (gescheiden door een komma). Het wordt automatisch omgezet in <span class='attribute-name'>proposal_url</span></li></ul>"
52
55
  link: link
53
56
  title: Importeer resultaten van CSV
54
57
  imports:
@@ -120,6 +123,14 @@ nl:
120
123
  create: "%{user_name} heeft het resultaat %{resource_name} gemaakt in %{space_name}"
121
124
  delete: "%{user_name} verwijderde het resultaat %{resource_name} in %{space_name}"
122
125
  update: "%{user_name} bijgewerkt resultaat %{resource_name} in %{space_name}"
126
+ status:
127
+ create: "%{user_name} heeft %{resource_name} status aangemaakt"
128
+ delete: "%{user_name} heeft %{resource_name} status verwijderd"
129
+ update: "%{user_name} heeft %{resource_name} status bijgewerkt"
130
+ timeline_entry:
131
+ create: "%{user_name} heeft timeline entry %{resource_name} aangemaakt"
132
+ delete: "%{user_name} heeft timeline entry %{resource_name} verwijderd"
133
+ update: "%{user_name} heeft timeline entry %{resource_name} bijgewerkt"
123
134
  value_types:
124
135
  parent_presenter:
125
136
  not_found: 'Het bovenliggende element is niet gevonden in de database (ID: %{id})'
@@ -157,8 +168,8 @@ nl:
157
168
  progress: Vooruitgang
158
169
  timeline_entry:
159
170
  fields:
160
- description: Beschrijving
161
171
  entry_date: Datum
172
+ title: Titel
162
173
  result_m:
163
174
  executed: Uitgevoerd
164
175
  view: Bekijk
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@
21
22
  timeline_entry:
22
23
  description: Beskrivelse
23
24
  entry_date: Dato
25
+ title: Tittel
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Forslag inkludert i et resultat
26
28
  decidim/accountability/result_progress_updated_event: Resultat fremgang oppdatert
@@ -61,10 +63,10 @@
61
63
  status:
62
64
  name: Status
63
65
  timeline_entry:
64
- name: Tidslinje oppføring
66
+ name: Oppføring i tidslinjen
65
67
  results:
66
68
  create:
67
- invalid: Det oppsto et problem med å opprette dette resultatet
69
+ invalid: Det oppstod et problem med å opprette dette resultatet
68
70
  success: Resultat ble opprettet
69
71
  destroy:
70
72
  success: Resultat ble slettet
@@ -121,6 +123,14 @@
121
123
  create: "%{user_name} opprettet resultat %{resource_name} i %{space_name}"
122
124
  delete: "%{user_name} slettet %{resource_name} resultatet i %{space_name}"
123
125
  update: "%{user_name} oppdaterte rusultat%{resource_name} i %{space_name}"
126
+ status:
127
+ create: "%{user_name} har opprettet statusen %{resource_name}"
128
+ delete: "%{user_name} slettet statusen %{resource_name}"
129
+ update: "%{user_name} oppdaterte statusen %{resource_name}"
130
+ timeline_entry:
131
+ create: "%{user_name} opprettet %{resource_name} i tidslinjen"
132
+ delete: "%{user_name} slettet %{resource_name} i tidslinjen"
133
+ update: "%{user_name} oppdaterte %{resource_name} i tidslinjen"
124
134
  value_types:
125
135
  parent_presenter:
126
136
  not_found: 'Overordnede ble ikke funnet i databasen (ID: %{id})'
@@ -158,8 +168,8 @@
158
168
  progress: Framgang
159
169
  timeline_entry:
160
170
  fields:
161
- description: Beskrivelse
162
171
  entry_date: Dato
172
+ title: Tittel
163
173
  result_m:
164
174
  executed: Utført
165
175
  view: Vis
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@ pl:
21
22
  timeline_entry:
22
23
  description: Opis
23
24
  entry_date: Data
25
+ title: Tytuł
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Propozycja zawarta w wyniku
26
28
  decidim/accountability/result_progress_updated_event: Aktualizacja postępu wyników
@@ -123,6 +125,14 @@ pl:
123
125
  create: "%{user_name} utworzył(a) wynik %{resource_name} w %{space_name}"
124
126
  delete: "%{user_name} usunął/usunęła wynik %{resource_name} z %{space_name}"
125
127
  update: "%{user_name} zaktualizował(a) wynik %{resource_name} w %{space_name}"
128
+ status:
129
+ create: "%{user_name} utworzył status %{resource_name}"
130
+ delete: "%{user_name} usunął %{resource_name} status"
131
+ update: "%{user_name} zaktualizował %{resource_name} status"
132
+ timeline_entry:
133
+ create: "%{user_name} utworzył wpis linii czasu %{resource_name}"
134
+ delete: "%{user_name} usunął wpis linii czasu %{resource_name}"
135
+ update: "%{user_name} zaktualizował wpis linii czasu %{resource_name}"
126
136
  value_types:
127
137
  parent_presenter:
128
138
  not_found: 'Nie znaleziono elementu nadrzędnego w bazie danych (ID: %{id})'
@@ -160,8 +170,8 @@ pl:
160
170
  progress: Postęp
161
171
  timeline_entry:
162
172
  fields:
163
- description: Opis
164
173
  entry_date: Data
174
+ title: Tytuł
165
175
  result_m:
166
176
  executed: Wykonane
167
177
  view: Zobacz
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt-BR:
2
3
  activemodel:
3
4
  attributes:
@@ -158,7 +159,6 @@ pt-BR:
158
159
  progress: Progresso
159
160
  timeline_entry:
160
161
  fields:
161
- description: Descrição
162
162
  entry_date: Data
163
163
  result_m:
164
164
  executed: Executado
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -158,7 +159,6 @@ pt:
158
159
  progress: Progresso
159
160
  timeline_entry:
160
161
  fields:
161
- description: Descrição
162
162
  entry_date: Data
163
163
  result_m:
164
164
  executed: Executado
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -159,7 +160,6 @@ ro:
159
160
  progress: Progres
160
161
  timeline_entry:
161
162
  fields:
162
- description: Descriere
163
163
  entry_date: Dată
164
164
  result_m:
165
165
  executed: Executat
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  attributes:
@@ -131,7 +132,6 @@ ru:
131
132
  progress: Продвижение
132
133
  timeline_entry:
133
134
  fields:
134
- description: Описание
135
135
  entry_date: Дата
136
136
  results:
137
137
  count:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  si:
2
3
  activemodel:
3
4
  attributes:
@@ -57,7 +58,6 @@ si:
57
58
  models:
58
59
  timeline_entry:
59
60
  fields:
60
- description: සවිස්තරය
61
61
  entry_date: දිනය
62
62
  results:
63
63
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  attributes:
@@ -152,7 +153,6 @@ sk:
152
153
  progress: Postup
153
154
  timeline_entry:
154
155
  fields:
155
- description: Popis
156
156
  entry_date: Dátum
157
157
  result_m:
158
158
  view: Zobraziť
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  attributes:
@@ -97,7 +98,6 @@ sl:
97
98
  progress: Napredek
98
99
  timeline_entry:
99
100
  fields:
100
- description: Opis
101
101
  entry_date: Datum
102
102
  results:
103
103
  filters:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  activemodel:
3
4
  attributes:
@@ -130,7 +131,6 @@ sr:
130
131
  progress: Napredak
131
132
  timeline_entry:
132
133
  fields:
133
- description: Opis
134
134
  entry_date: Datum
135
135
  results:
136
136
  count:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -21,6 +22,7 @@ sv:
21
22
  timeline_entry:
22
23
  description: Beskrivning
23
24
  entry_date: Datum
25
+ title: Titel
24
26
  models:
25
27
  decidim/accountability/proposal_linked_event: Förslag som ingår i ett resultat
26
28
  decidim/accountability/result_progress_updated_event: Uppdaterat resultatutvecklingen
@@ -121,6 +123,10 @@ sv:
121
123
  create: "%{user_name} skapade resultatet %{resource_name} i %{space_name}"
122
124
  delete: "%{user_name} raderade resultatet %{resource_name} i %{space_name}"
123
125
  update: "%{user_name} uppdaterade resultatet %{resource_name} i %{space_name}"
126
+ status:
127
+ create: "%{user_name} skapade statusen %{resource_name}"
128
+ delete: "%{user_name} raderade statusen %{resource_name}"
129
+ update: "%{user_name} uppdaterade statusen %{resource_name}"
124
130
  value_types:
125
131
  parent_presenter:
126
132
  not_found: 'Föräldraposten hittades inte i databasen (ID: %{id})'
@@ -158,8 +164,8 @@ sv:
158
164
  progress: Behandling
159
165
  timeline_entry:
160
166
  fields:
161
- description: Beskrivning
162
167
  entry_date: Datum
168
+ title: Titel
163
169
  result_m:
164
170
  executed: Utfört
165
171
  view: Visa
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -156,7 +157,6 @@ tr:
156
157
  progress: İlerleme
157
158
  timeline_entry:
158
159
  fields:
159
- description: Açıklama
160
160
  entry_date: tarih
161
161
  result_m:
162
162
  executed: Yürütüldü
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  attributes:
@@ -128,7 +129,6 @@ uk:
128
129
  progress: Перебіг
129
130
  timeline_entry:
130
131
  fields:
131
- description: Опис
132
132
  entry_date: Дата
133
133
  results:
134
134
  count:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -144,7 +145,6 @@ zh-CN:
144
145
  progress: 进展情况
145
146
  timeline_entry:
146
147
  fields:
147
- description: 描述
148
148
  entry_date: 日期
149
149
  results:
150
150
  count:
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddTitleToTimelineEntries < ActiveRecord::Migration[6.1]
4
+ def change
5
+ add_column :decidim_accountability_timeline_entries, :title, :jsonb
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MoveLegacyDescriptionToTitleOfTimelineEntries < ActiveRecord::Migration[6.1]
4
+ class TimelineEntry < ApplicationRecord
5
+ self.table_name = :decidim_accountability_timeline_entries
6
+ end
7
+
8
+ def up
9
+ TimelineEntry.find_each do |timeline_entry|
10
+ timeline_entry.update!(title: timeline_entry.description, description: nil)
11
+ end
12
+ end
13
+ end
@@ -159,7 +159,8 @@ Decidim.register_component(:accountability) do |component|
159
159
  rand(0..5).times do |i|
160
160
  child_result.timeline_entries.create!(
161
161
  entry_date: child_result.start_date + i.days,
162
- description: Decidim::Faker::Localized.sentence(word_count: 2)
162
+ title: Decidim::Faker::Localized.sentence(word_count: 2),
163
+ description: Decidim::Faker::Localized.paragraph(sentence_count: 1)
163
164
  )
164
165
  end
165
166
 
@@ -45,6 +45,7 @@ FactoryBot.define do
45
45
  factory :timeline_entry, class: "Decidim::Accountability::TimelineEntry" do
46
46
  result { create(:result) }
47
47
  entry_date { "12/7/2017" }
48
+ title { generate_localized_title }
48
49
  description { generate_localized_title }
49
50
  end
50
51
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.26.2"
7
+ "0.27.0.rc2"
8
8
  end
9
9
  end
10
10
  end
@@ -7,6 +7,7 @@ module Decidim
7
7
 
8
8
  field :id, GraphQL::Types::ID, "The internal ID for this timeline entry", null: false
9
9
  field :entry_date, Decidim::Core::DateType, "The entry date for this timeline entry", null: true
10
+ field :title, Decidim::Core::TranslatedFieldType, "The title for this timeline entry", null: true
10
11
  field :description, Decidim::Core::TranslatedFieldType, "The description for this timeline entry", null: true
11
12
  field :created_at, Decidim::Core::DateTimeType, "When this timeline entry was created", null: true
12
13
  field :updated_at, Decidim::Core::DateTimeType, "When this timeline entry was updated", null: true