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.
- checksums.yaml +4 -4
- data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +13 -1
- data/app/commands/decidim/accountability/admin/create_imported_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/create_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/create_status.rb +6 -3
- data/app/commands/decidim/accountability/admin/create_timeline_entry.rb +11 -7
- data/app/commands/decidim/accountability/admin/destroy_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_imported_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_result.rb +1 -1
- data/app/commands/decidim/accountability/admin/update_status.rb +6 -3
- data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +9 -5
- data/app/controllers/decidim/accountability/admin/statuses_controller.rb +5 -3
- data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +5 -3
- data/app/controllers/decidim/accountability/results_controller.rb +12 -12
- data/app/forms/decidim/accountability/admin/result_form.rb +2 -2
- data/app/forms/decidim/accountability/admin/timeline_entry_form.rb +2 -1
- data/app/helpers/decidim/accountability/breadcrumb_helper.rb +2 -2
- data/app/models/decidim/accountability/result.rb +9 -5
- data/app/models/decidim/accountability/status.rb +6 -2
- data/app/models/decidim/accountability/timeline_entry.rb +6 -0
- data/app/permissions/decidim/accountability/admin/permissions.rb +7 -1
- data/app/presenters/decidim/accountability/admin_log/status_presenter.rb +38 -0
- data/app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb +37 -0
- data/app/services/decidim/accountability/results_calculator.rb +10 -6
- data/app/views/decidim/accountability/admin/results/index.html.erb +1 -1
- data/app/views/decidim/accountability/admin/timeline_entries/_form.html.erb +5 -1
- data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +2 -2
- data/app/views/decidim/accountability/results/_home_categories.html.erb +2 -2
- data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +3 -3
- data/app/views/decidim/accountability/results/_results_leaf.html.erb +3 -3
- data/app/views/decidim/accountability/results/_results_parent.html.erb +1 -1
- data/app/views/decidim/accountability/results/_scope_filters.html.erb +3 -3
- data/app/views/decidim/accountability/results/_search.html.erb +1 -1
- data/app/views/decidim/accountability/results/_show_leaf.html.erb +2 -2
- data/app/views/decidim/accountability/results/_timeline.html.erb +8 -2
- data/app/views/decidim/accountability/results/home.html.erb +3 -1
- data/app/views/decidim/accountability/versions/show.html.erb +3 -1
- data/config/locales/ar.yml +3 -1
- data/config/locales/bg.yml +1 -1
- data/config/locales/ca.yml +11 -1
- data/config/locales/cs.yml +11 -1
- data/config/locales/da.yml +1 -1
- data/config/locales/de.yml +11 -1
- data/config/locales/el.yml +1 -1
- data/config/locales/en.yml +10 -1
- data/config/locales/es-MX.yml +11 -1
- data/config/locales/es-PY.yml +11 -1
- data/config/locales/es.yml +11 -1
- data/config/locales/eu.yml +1 -1
- data/config/locales/fi-plain.yml +11 -1
- data/config/locales/fi.yml +11 -1
- data/config/locales/fr-CA.yml +11 -1
- data/config/locales/fr.yml +11 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +1 -1
- data/config/locales/hu.yml +20 -10
- data/config/locales/id-ID.yml +1 -1
- data/config/locales/is-IS.yml +2 -2
- data/config/locales/it.yml +1 -1
- data/config/locales/ja.yml +11 -1
- data/config/locales/lb.yml +1 -1
- data/config/locales/lt.yml +13 -1
- data/config/locales/lv.yml +1 -1
- data/config/locales/nl.yml +12 -1
- data/config/locales/no.yml +13 -3
- data/config/locales/pl.yml +11 -1
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +1 -1
- data/config/locales/ro-RO.yml +1 -1
- data/config/locales/ru.yml +1 -1
- data/config/locales/si-LK.yml +1 -1
- data/config/locales/sk.yml +1 -1
- data/config/locales/sl.yml +1 -1
- data/config/locales/sr-CS.yml +1 -1
- data/config/locales/sv.yml +7 -1
- data/config/locales/tr-TR.yml +1 -1
- data/config/locales/uk.yml +1 -1
- data/config/locales/zh-CN.yml +1 -1
- data/db/migrate/20220331150008_add_title_to_timeline_entries.rb +7 -0
- data/db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb +13 -0
- data/lib/decidim/accountability/component.rb +2 -1
- data/lib/decidim/accountability/test/factories.rb +1 -0
- data/lib/decidim/accountability/version.rb +1 -1
- data/lib/decidim/api/timeline_entry_type.rb +1 -0
- metadata +28 -25
- data/app/services/decidim/accountability/result_search.rb +0 -48
data/config/locales/gl.yml
CHANGED
data/config/locales/hu.yml
CHANGED
@@ -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:
|
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:
|
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
|
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:
|
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
|
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.
|
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:
|
256
|
+
result_project: Az eredményben szereplő projektek
|
247
257
|
included_proposals:
|
248
|
-
result_proposal:
|
258
|
+
result_proposal: Ebben az eredményben szereplő javaslatok
|
249
259
|
statistics:
|
250
260
|
results_count: Találatok
|
data/config/locales/id-ID.yml
CHANGED
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
@@ -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: 表示
|
data/config/locales/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
@@ -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:
|
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
@@ -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
|
data/config/locales/no.yml
CHANGED
@@ -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:
|
66
|
+
name: Oppføring i tidslinjen
|
65
67
|
results:
|
66
68
|
create:
|
67
|
-
invalid: Det
|
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
|
data/config/locales/pl.yml
CHANGED
@@ -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
|
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -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
|
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -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
|
-
|
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
|
|
@@ -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
|