decidim-accountability 0.27.4 → 0.27.6
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/show.erb +1 -1
- data/app/events/decidim/accountability/base_result_event.rb +25 -0
- data/app/events/decidim/accountability/proposal_linked_event.rb +1 -18
- data/app/events/decidim/accountability/result_progress_updated_event.rb +2 -18
- data/app/views/decidim/accountability/results/_home_header.html.erb +1 -1
- data/app/views/decidim/accountability/results/_show_leaf.html.erb +1 -1
- data/app/views/decidim/accountability/results/_timeline.html.erb +1 -1
- data/app/views/decidim/participatory_spaces/_result.html.erb +2 -2
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +61 -1
- data/config/locales/ca.yml +1 -1
- data/config/locales/da.yml +0 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +24 -24
- data/config/locales/he-IL.yml +219 -0
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/it.yml +2 -0
- data/config/locales/ja.yml +1 -1
- data/config/locales/kaa.yml +26 -0
- data/config/locales/ko.yml +188 -0
- data/config/locales/lb.yml +1 -1
- data/config/locales/lt.yml +22 -0
- data/config/locales/lv.yml +0 -1
- data/config/locales/no.yml +8 -8
- data/config/locales/pt-BR.yml +21 -0
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro-RO.yml +23 -21
- data/config/locales/ru.yml +0 -1
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +0 -1
- data/config/locales/sq-AL.yml +222 -0
- data/config/locales/sr-CS.yml +0 -1
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +13 -0
- data/config/locales/uk.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/decidim-accountability.gemspec +38 -0
- data/lib/decidim/accountability/component.rb +1 -1
- data/lib/decidim/accountability/test/factories.rb +29 -17
- data/lib/decidim/accountability/version.rb +1 -1
- data/lib/decidim/api/result_type.rb +0 -1
- metadata +30 -26
- data/config/environment.rb +0 -0
data/config/locales/ro-RO.yml
CHANGED
@@ -25,7 +25,7 @@ ro:
|
|
25
25
|
title: Titlu
|
26
26
|
models:
|
27
27
|
decidim/accountability/proposal_linked_event: Propunere inclusă în rezultat
|
28
|
-
decidim/accountability/result_progress_updated_event: Progresul rezultatului actualizat
|
28
|
+
decidim/accountability/result_progress_updated_event: Progresul rezultatului a fost actualizat
|
29
29
|
activerecord:
|
30
30
|
models:
|
31
31
|
decidim/accountability/result:
|
@@ -39,7 +39,7 @@ ro:
|
|
39
39
|
attachments: Atașamente
|
40
40
|
confirm_destroy: Sunteți sigur că doriți să ștergeți %{name}?
|
41
41
|
destroy: Ștergere
|
42
|
-
edit:
|
42
|
+
edit: Actualizare
|
43
43
|
import_csv: Importă CSV
|
44
44
|
new: '%{name} nou'
|
45
45
|
preview: Previzualizare
|
@@ -51,8 +51,8 @@ ro:
|
|
51
51
|
results: Rezultate
|
52
52
|
import_results:
|
53
53
|
new:
|
54
|
-
download_export:
|
55
|
-
import:
|
54
|
+
download_export: Descărcați Exportul în format CSV
|
55
|
+
import: Importați
|
56
56
|
title: Importați rezultate de la CSV
|
57
57
|
imports:
|
58
58
|
create:
|
@@ -61,7 +61,7 @@ ro:
|
|
61
61
|
result:
|
62
62
|
name: Rezultat
|
63
63
|
status:
|
64
|
-
name:
|
64
|
+
name: Stare
|
65
65
|
timeline_entry:
|
66
66
|
name: Intrare cronologie
|
67
67
|
results:
|
@@ -71,19 +71,19 @@ ro:
|
|
71
71
|
destroy:
|
72
72
|
success: Rezultatul a fost șters
|
73
73
|
edit:
|
74
|
-
title:
|
74
|
+
title: Actualizare rezultat
|
75
75
|
update: Actualizare rezultat
|
76
76
|
index:
|
77
77
|
title: Rezultate
|
78
78
|
new:
|
79
|
-
create:
|
79
|
+
create: Creați un rezultat nou
|
80
80
|
title: Rezultat nou
|
81
81
|
update:
|
82
82
|
invalid: A apărut o eroare la actualizarea acestui rezultat
|
83
83
|
success: Rezultatul a fost actualizat
|
84
84
|
shared:
|
85
85
|
subnav:
|
86
|
-
statuses:
|
86
|
+
statuses: Stări
|
87
87
|
statuses:
|
88
88
|
create:
|
89
89
|
invalid: A apărut o eroare la crearea acestui stadiu
|
@@ -91,13 +91,13 @@ ro:
|
|
91
91
|
destroy:
|
92
92
|
success: Stadiu şters cu succes
|
93
93
|
edit:
|
94
|
-
title:
|
95
|
-
update: Actualizare
|
94
|
+
title: Actualizare stare
|
95
|
+
update: Actualizare stare
|
96
96
|
index:
|
97
|
-
title:
|
97
|
+
title: Stări
|
98
98
|
new:
|
99
|
-
create: Creează
|
100
|
-
title:
|
99
|
+
create: Creează stare
|
100
|
+
title: Stare nouă
|
101
101
|
update:
|
102
102
|
invalid: A apărut o eroare la crearea acestui stadiu
|
103
103
|
success: Stadiu actualizat cu succes
|
@@ -108,22 +108,24 @@ ro:
|
|
108
108
|
destroy:
|
109
109
|
success: Intrare ștearsă cu succes
|
110
110
|
edit:
|
111
|
-
title:
|
112
|
-
update:
|
111
|
+
title: Editați înregistrarea
|
112
|
+
update: Actualizați înregistrarea
|
113
113
|
index:
|
114
114
|
title: Înregistrări în calendarul proiectului
|
115
115
|
new:
|
116
|
-
create:
|
116
|
+
create: Creați înregistrare
|
117
117
|
title: Înregistrare nouă
|
118
118
|
update:
|
119
119
|
invalid: A apărut o eroare la actualizarea acestei înregistrări
|
120
120
|
success: Înregistrare actualizată cu succes
|
121
121
|
admin_log:
|
122
122
|
result:
|
123
|
-
create: "%{user_name} a creat %{resource_name} în %{space_name}"
|
124
|
-
delete: "%{user_name} a șters %{resource_name}
|
125
|
-
update: "%{user_name} a actualizat %{resource_name}
|
123
|
+
create: "%{user_name} a creat rezultatul %{resource_name} în %{space_name}"
|
124
|
+
delete: "%{user_name} a șters rezultatul %{resource_name} din %{space_name}"
|
125
|
+
update: "%{user_name} a actualizat rezultatul %{resource_name} din %{space_name}"
|
126
126
|
status:
|
127
|
+
create: "%{user_name} a creat starea resursei %{resource_name}"
|
128
|
+
delete: "%{user_name} a șters starea resursei %{resource_name}"
|
127
129
|
update: "%{user_name} a actualizat starea %{resource_name}"
|
128
130
|
timeline_entry:
|
129
131
|
create: "%{user_name} a creat intrarea de cronologie pentru %{resource_name}"
|
@@ -156,7 +158,7 @@ ro:
|
|
156
158
|
progress: Progres
|
157
159
|
scope: Domeniu de interes
|
158
160
|
start_date: Dată de începere
|
159
|
-
status:
|
161
|
+
status: Stare
|
160
162
|
title: Titlu
|
161
163
|
status:
|
162
164
|
fields:
|
@@ -195,7 +197,7 @@ ro:
|
|
195
197
|
back_to_resource: Înapoi la rezultat
|
196
198
|
comments: Comentarii
|
197
199
|
contributions: Contribuții
|
198
|
-
last_edited_by: Ultima
|
200
|
+
last_edited_by: Ultima actualizare realizată de
|
199
201
|
last_updated_at: Ultima actualizare la
|
200
202
|
meetings: Întâlniri
|
201
203
|
proposals: Propuneri
|
data/config/locales/ru.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
@@ -0,0 +1,222 @@
|
|
1
|
+
---
|
2
|
+
sq:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
result:
|
6
|
+
decidim_accountability_status_id: Statusi
|
7
|
+
decidim_category_id: Kategoria
|
8
|
+
decidim_scope_id: Fushëveprimi
|
9
|
+
description: Përshkrimi
|
10
|
+
end_date: Data e përfundimit
|
11
|
+
progress: Ecuria
|
12
|
+
project_ids: Projektet e përfshira
|
13
|
+
proposals: Proposimet e përfshira
|
14
|
+
start_date: Data e fillimit
|
15
|
+
title: Titulli
|
16
|
+
updated_at: Përditësuar në
|
17
|
+
status:
|
18
|
+
description: Përshkrimi
|
19
|
+
key: Çelësi
|
20
|
+
name: Emri
|
21
|
+
progress: Ecuria
|
22
|
+
timeline_entry:
|
23
|
+
description: Përshkrimi
|
24
|
+
entry_date: Data
|
25
|
+
title: Titulli
|
26
|
+
models:
|
27
|
+
decidim/accountability/proposal_linked_event: Propozimi i përfshirë në një rezultat
|
28
|
+
decidim/accountability/result_progress_updated_event: Ecuria e përditësuar e rezultatit
|
29
|
+
activerecord:
|
30
|
+
models:
|
31
|
+
decidim/accountability/result:
|
32
|
+
one: Rezultati
|
33
|
+
other: Rezultati
|
34
|
+
decidim:
|
35
|
+
accountability:
|
36
|
+
actions:
|
37
|
+
attachment_collections: Dosjet
|
38
|
+
attachments: Bashkëngjitjet
|
39
|
+
confirm_destroy: Je i sigurt që dëshiron ta fshish këtë %{name}?
|
40
|
+
destroy: Fshij
|
41
|
+
edit: Përpuno
|
42
|
+
import_csv: Importo CSV
|
43
|
+
preview: Parapamje
|
44
|
+
timeline_entries: Evoluimi i projektit
|
45
|
+
title: Veprime
|
46
|
+
admin:
|
47
|
+
exports:
|
48
|
+
result_comments: Komente
|
49
|
+
results: Rezultatet
|
50
|
+
import_results:
|
51
|
+
new:
|
52
|
+
download_export: Shkarko dhe eksporto në formatin CSV
|
53
|
+
import: Importo
|
54
|
+
title: Importo rezultatet nga CSV
|
55
|
+
models:
|
56
|
+
result:
|
57
|
+
name: Rezultati
|
58
|
+
status:
|
59
|
+
name: Statusi
|
60
|
+
results:
|
61
|
+
edit:
|
62
|
+
title: Ndrysho rezultatin
|
63
|
+
update: Përditëso rezultatin
|
64
|
+
index:
|
65
|
+
title: Rezultatet
|
66
|
+
new:
|
67
|
+
create: Krijo rezultatin
|
68
|
+
title: Rezultat i ri
|
69
|
+
shared:
|
70
|
+
subnav:
|
71
|
+
statuses: Statuset
|
72
|
+
statuses:
|
73
|
+
edit:
|
74
|
+
title: Ndrysho statusin
|
75
|
+
update: Përditëso statusin
|
76
|
+
index:
|
77
|
+
title: Statuset
|
78
|
+
new:
|
79
|
+
create: Krijo statusin
|
80
|
+
title: Status i ri
|
81
|
+
timeline_entries:
|
82
|
+
edit:
|
83
|
+
title: Ndrysho shënimin
|
84
|
+
update: Përditëso shënimin
|
85
|
+
index:
|
86
|
+
title: Shënimet e afatit kohor të projektit
|
87
|
+
new:
|
88
|
+
create: Krijo një shënim të ri
|
89
|
+
title: Shënim i ri
|
90
|
+
admin_log:
|
91
|
+
result:
|
92
|
+
create: "%{user_name} krijoi rezultatin %{resource_name} në %{space_name}"
|
93
|
+
delete: "%{user_name} fshiu rezultatin %{resource_name} në %{space_name}"
|
94
|
+
update: "%{user_name} përditësoi rezultatin %{resource_name} në %{space_name}"
|
95
|
+
status:
|
96
|
+
create: "%{user_name} krijoi statusin %{resource_name}"
|
97
|
+
delete: "%{user_name} fshiu statusin %{resource_name}"
|
98
|
+
update: "%{user_name} përditësoi statusin %{resource_name}"
|
99
|
+
timeline_entry:
|
100
|
+
create: "%{user_name} krijoi %{resource_name}"
|
101
|
+
delete: "%{user_name} fshiu %{resource_name}"
|
102
|
+
update: "%{user_name} përditësoi %{resource_name}"
|
103
|
+
value_types:
|
104
|
+
parent_presenter:
|
105
|
+
not_found: '"Parent ID" nuk u gjetë në bazën e të dhënave(ID:%{id})'
|
106
|
+
content_blocks:
|
107
|
+
highlighted_results:
|
108
|
+
dates: Datat
|
109
|
+
results: Rezultatet
|
110
|
+
unspecified: I paspecifikuar
|
111
|
+
import_mailer:
|
112
|
+
import:
|
113
|
+
errors: Gabime
|
114
|
+
row_number: Rradhë
|
115
|
+
subject: Rezultatet u importuan suksesshëm
|
116
|
+
success: Rezultatet u importuan suksesshëm. Tani mund t'i rishqyrtoni rezultaten në ndërfaqen e administrimit.
|
117
|
+
models:
|
118
|
+
result:
|
119
|
+
fields:
|
120
|
+
category: Kategoria
|
121
|
+
created_at: Krijuar
|
122
|
+
end_date: Data e përfundimit
|
123
|
+
id: ID
|
124
|
+
progress: Ecuria
|
125
|
+
scope: Fushëveprimi
|
126
|
+
start_date: Data e fillimit
|
127
|
+
status: Statusi
|
128
|
+
title: Titulli
|
129
|
+
status:
|
130
|
+
fields:
|
131
|
+
description: Përshkrimi
|
132
|
+
key: Çelësi
|
133
|
+
name: Emri
|
134
|
+
progress: Ecuria
|
135
|
+
timeline_entry:
|
136
|
+
fields:
|
137
|
+
entry_date: Data
|
138
|
+
title: Titulli
|
139
|
+
result_m:
|
140
|
+
executed: Ekzekutuar
|
141
|
+
view: Shih
|
142
|
+
results:
|
143
|
+
count:
|
144
|
+
results_count:
|
145
|
+
one: 1 rezultat
|
146
|
+
other: "%{count} rezultate"
|
147
|
+
filters:
|
148
|
+
all: Të gjitha
|
149
|
+
home:
|
150
|
+
categories_label: Kategoritë
|
151
|
+
subcategories_label: Nënkategoritë
|
152
|
+
home_header:
|
153
|
+
global_status: Statusi i përgjithshëm i ekzekutimit
|
154
|
+
nav_breadcrumb:
|
155
|
+
global: Ekzekutimi i përgjithshëm
|
156
|
+
search:
|
157
|
+
search: Kërko për veprime
|
158
|
+
show:
|
159
|
+
stats:
|
160
|
+
attendees: Të pranishëm
|
161
|
+
back_to_resource: Kthehu mbrapsht tek rezultati
|
162
|
+
comments: Komente
|
163
|
+
contributions: Kontributet
|
164
|
+
last_edited_by: Së fundi edituar nga
|
165
|
+
last_updated_at: Përditësimi i fundit në
|
166
|
+
meetings: Mbledhjet
|
167
|
+
proposals: Propozimet
|
168
|
+
votes: Mbështetjet
|
169
|
+
timeline:
|
170
|
+
title: Evoluimi i projektit
|
171
|
+
admin:
|
172
|
+
filters:
|
173
|
+
results:
|
174
|
+
category_id_eq:
|
175
|
+
label: Kategoria
|
176
|
+
scope_id_eq:
|
177
|
+
label: Fushëveprimi
|
178
|
+
status_id_eq:
|
179
|
+
label: Statusi
|
180
|
+
components:
|
181
|
+
accountability:
|
182
|
+
actions:
|
183
|
+
comment: Koment
|
184
|
+
name: Përgjegjësia
|
185
|
+
settings:
|
186
|
+
global:
|
187
|
+
categories_label: Emri për "Kategoritë"
|
188
|
+
comments_enabled: Komentet e aktivizuara
|
189
|
+
comments_max_length: Madhësia maks. e komenteve
|
190
|
+
display_progress_enabled: Shfaq ecurinë
|
191
|
+
heading_leaf_level_results: Ermi për "Projekte"
|
192
|
+
heading_parent_level_results: Emri për "Rezultate"
|
193
|
+
intro: Hyrje
|
194
|
+
scope_id: Fushëveprimi
|
195
|
+
scopes_enabled: Fushveprimet e aktivizuara
|
196
|
+
subcategories_label: Emri për "Nënategoritë"
|
197
|
+
step:
|
198
|
+
comments_blocked: Komentet të bllokuara
|
199
|
+
events:
|
200
|
+
accountability:
|
201
|
+
proposal_linked:
|
202
|
+
email_intro: 'Propozimi %{proposal_title} u përfshi në një rezultat. Mund ta shihni nga kjo faqe:'
|
203
|
+
email_outro: Ky njoftim iu vjen sepse ndiqni %{proposal_title}. Mund t'i ndaloni njoftimet me anë të linkut të mëparshëm.
|
204
|
+
email_subject: Një përditësim për %{proposal_title}
|
205
|
+
notification_title: Propozimi <a href="%{proposal_path}">%{proposal_title}</a> u përfshi në rezultatin <a href="%{resource_path}">%{resource_title}</a>.
|
206
|
+
result_progress_updated:
|
207
|
+
email_intro: 'Rezultati %{resource_title} që përmbanë propozimin %{proposal_title} tanimë është %{progress} % i kompletuar. Mund ta shihni nga kjo faqe:'
|
208
|
+
email_outro: Kw njoftim iu vjen sepse ndiqni %{proposal_title} dhe ky propozim është i përfshirë në rezultatin %{resource_title}. Mund t'i ndalosh njoftimet duke ndejkur linkun e mëparshëm.
|
209
|
+
email_subject: Një përditësim për ecurinë e %{resource_title}
|
210
|
+
notification_title: Rezultati <a href="%{resource_path}">%{resource_title}</a> që përfshinë <a href="%{proposal_path}">%{proposal_title}</a> tani është %{progress} % i kompletuar.
|
211
|
+
metrics:
|
212
|
+
results:
|
213
|
+
description: Numri i rezultateve të gjeneruara
|
214
|
+
object: rezultatet
|
215
|
+
title: Rezultatet
|
216
|
+
resource_links:
|
217
|
+
included_projects:
|
218
|
+
result_project: Projektet e përfshira në këtë rezultat
|
219
|
+
included_proposals:
|
220
|
+
result_proposal: Propozimet e përfshira në këtë rezultat
|
221
|
+
statistics:
|
222
|
+
results_count: Rezultatet
|
data/config/locales/sr-CS.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
th:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -143,6 +143,14 @@ tr:
|
|
143
143
|
create: "%{user_name} sonuç yaratmıştır %{resource_name} içinde %{space_name}"
|
144
144
|
delete: "%{user_name} %{resource_name} sonuçtan %{space_name}sildi"
|
145
145
|
update: "%{user_name} güncellenen sonuç %{resource_name} in %{space_name}"
|
146
|
+
status:
|
147
|
+
create: "48 / 5.000\nÇeviri sonuçları\nÇeviri sonucu\n%{user_name}, %{resource_name} kaydını oluşturdu"
|
148
|
+
delete: "%{user_name}, %{resource_name} kaydını sildi"
|
149
|
+
update: "%{user_name}, %{resource_name} kaydını Güncelledi"
|
150
|
+
timeline_entry:
|
151
|
+
create: "%{user_name}, %{resource_name} zaman çizelgesi girişini oluşturdu"
|
152
|
+
delete: "%{user_name}, %{resource_name} zaman çizelgesi girişini sildi"
|
153
|
+
update: "%{user_name}, %{resource_name} zaman çizelgesi girişini güncelledi"
|
146
154
|
value_types:
|
147
155
|
parent_presenter:
|
148
156
|
not_found: 'Üst veritabanında bulunamadı (ID: %{id})'
|
@@ -181,6 +189,7 @@ tr:
|
|
181
189
|
timeline_entry:
|
182
190
|
fields:
|
183
191
|
entry_date: tarih
|
192
|
+
title: Başlık
|
184
193
|
result_m:
|
185
194
|
executed: Yürütüldü
|
186
195
|
view: Görünüm
|
@@ -225,6 +234,8 @@ tr:
|
|
225
234
|
label: Durum
|
226
235
|
components:
|
227
236
|
accountability:
|
237
|
+
actions:
|
238
|
+
comment: Yorum
|
228
239
|
name: Sorumluluk
|
229
240
|
settings:
|
230
241
|
global:
|
@@ -265,3 +276,5 @@ tr:
|
|
265
276
|
result_project: Bu sonuca dahil edilen projeler
|
266
277
|
included_proposals:
|
267
278
|
result_proposal: Bu sonuca dahil teklifler
|
279
|
+
statistics:
|
280
|
+
results_count: Sonuçlar
|
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/accountability/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Accountability.version
|
11
|
+
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
|
+
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://github.com/decidim/decidim"
|
15
|
+
s.required_ruby_version = "~> 3.0.0"
|
16
|
+
|
17
|
+
s.name = "decidim-accountability"
|
18
|
+
s.summary = "Decidim accountability module"
|
19
|
+
s.description = "An accountability component for decidim's participatory spaces."
|
20
|
+
|
21
|
+
s.files = Dir.chdir(__dir__) do
|
22
|
+
`git ls-files -z`.split("\x0").select do |f|
|
23
|
+
(File.expand_path(f) == __FILE__) ||
|
24
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
s.add_dependency "decidim-comments", Decidim::Accountability.version
|
29
|
+
s.add_dependency "decidim-core", Decidim::Accountability.version
|
30
|
+
|
31
|
+
s.add_development_dependency "decidim-admin", Decidim::Accountability.version
|
32
|
+
s.add_development_dependency "decidim-assemblies", Decidim::Accountability.version
|
33
|
+
s.add_development_dependency "decidim-comments", Decidim::Accountability.version
|
34
|
+
s.add_development_dependency "decidim-dev", Decidim::Accountability.version
|
35
|
+
s.add_development_dependency "decidim-meetings", Decidim::Accountability.version
|
36
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Accountability.version
|
37
|
+
s.add_development_dependency "decidim-proposals", Decidim::Accountability.version
|
38
|
+
end
|
@@ -29,7 +29,7 @@ Decidim.register_component(:accountability) do |component|
|
|
29
29
|
settings.attribute :scopes_enabled, type: :boolean, default: true
|
30
30
|
settings.attribute :scope_id, type: :scope
|
31
31
|
settings.attribute :comments_enabled, type: :boolean, default: true
|
32
|
-
settings.attribute :comments_max_length, type: :integer, required:
|
32
|
+
settings.attribute :comments_max_length, type: :integer, required: true
|
33
33
|
settings.attribute :intro, type: :text, translated: true, editor: true
|
34
34
|
settings.attribute :categories_label, type: :string, translated: true, editor: true
|
35
35
|
settings.attribute :subcategories_label, type: :string, translated: true, editor: true
|
@@ -8,16 +8,19 @@ require "decidim/participatory_processes/test/factories"
|
|
8
8
|
|
9
9
|
FactoryBot.define do
|
10
10
|
factory :accountability_component, parent: :component do
|
11
|
-
|
11
|
+
transient do
|
12
|
+
skip_injection { false }
|
13
|
+
end
|
14
|
+
name { generate_component_name(participatory_space.organization.available_locales, :accountability, skip_injection: skip_injection) }
|
12
15
|
manifest_name { :accountability }
|
13
|
-
participatory_space { create(:participatory_process, :with_steps, organization: organization) }
|
16
|
+
participatory_space { create(:participatory_process, :with_steps, organization: organization, skip_injection: skip_injection) }
|
14
17
|
settings do
|
15
18
|
{
|
16
|
-
intro:
|
17
|
-
categories_label:
|
18
|
-
subcategories_label:
|
19
|
-
heading_parent_level_results:
|
20
|
-
heading_leaf_level_results:
|
19
|
+
intro: generate_localized_description(:accountability_component_intro, skip_injection: skip_injection),
|
20
|
+
categories_label: generate_localized_word(:accountability_component_categories_label, skip_injection: skip_injection),
|
21
|
+
subcategories_label: generate_localized_word(:accountability_component_subcategories_label, skip_injection: skip_injection),
|
22
|
+
heading_parent_level_results: generate_localized_word(:accountability_component_heading_parent_level_results, skip_injection: skip_injection),
|
23
|
+
heading_leaf_level_results: generate_localized_word(:accountability_component_heading_leaf_level_results, skip_injection: skip_injection),
|
21
24
|
scopes_enabled: true,
|
22
25
|
scope_id: participatory_space.scope&.id
|
23
26
|
}
|
@@ -25,27 +28,36 @@ FactoryBot.define do
|
|
25
28
|
end
|
26
29
|
|
27
30
|
factory :status, class: "Decidim::Accountability::Status" do
|
28
|
-
|
31
|
+
transient do
|
32
|
+
skip_injection { false }
|
33
|
+
end
|
34
|
+
component { create(:accountability_component, skip_injection: skip_injection) }
|
29
35
|
sequence(:key) { |n| "status_#{n}" }
|
30
|
-
name {
|
31
|
-
description {
|
36
|
+
name { generate_localized_word(:status_name, skip_injection: skip_injection) }
|
37
|
+
description { generate_localized_word(:status_description, skip_injection: skip_injection) }
|
32
38
|
progress { rand(1..100) }
|
33
39
|
end
|
34
40
|
|
35
41
|
factory :result, class: "Decidim::Accountability::Result" do
|
36
|
-
|
37
|
-
|
38
|
-
|
42
|
+
transient do
|
43
|
+
skip_injection { false }
|
44
|
+
end
|
45
|
+
component { create(:accountability_component, skip_injection: skip_injection) }
|
46
|
+
title { generate_localized_title(:result_title, skip_injection: skip_injection) }
|
47
|
+
description { generate_localized_description(:result_description, skip_injection: skip_injection) }
|
39
48
|
start_date { "12/7/2017" }
|
40
49
|
end_date { "30/9/2017" }
|
41
|
-
status { create :status, component: component }
|
50
|
+
status { create :status, component: component, skip_injection: skip_injection }
|
42
51
|
progress { rand(1..100) }
|
43
52
|
end
|
44
53
|
|
45
54
|
factory :timeline_entry, class: "Decidim::Accountability::TimelineEntry" do
|
46
|
-
|
55
|
+
transient do
|
56
|
+
skip_injection { false }
|
57
|
+
end
|
58
|
+
result { create(:result, skip_injection: skip_injection) }
|
47
59
|
entry_date { "12/7/2017" }
|
48
|
-
title { generate_localized_title }
|
49
|
-
description { generate_localized_title }
|
60
|
+
title { generate_localized_title(:timeline_entry_title, skip_injection: skip_injection) }
|
61
|
+
description { generate_localized_title(:timeline_entry_description, skip_injection: skip_injection) }
|
50
62
|
end
|
51
63
|
end
|
@@ -3,7 +3,6 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Accountability
|
5
5
|
class ResultType < Decidim::Api::Types::BaseObject
|
6
|
-
implements Decidim::Core::ComponentInterface
|
7
6
|
implements Decidim::Core::CategorizableInterface
|
8
7
|
implements Decidim::Comments::CommentableInterface
|
9
8
|
implements Decidim::Core::ScopableInterface
|