decidim-debates 0.30.2 → 0.31.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/debates/debate_card_metadata_cell.rb +33 -2
- data/app/cells/decidim/debates/debate_l_cell.rb +1 -1
- data/app/commands/decidim/debates/admin/create_debate.rb +2 -2
- data/app/commands/decidim/debates/admin/update_debate.rb +2 -2
- data/app/commands/decidim/debates/create_debate.rb +2 -3
- data/app/commands/decidim/debates/update_debate.rb +2 -2
- data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +1 -1
- data/app/controllers/decidim/debates/admin/debates_controller.rb +2 -2
- data/app/controllers/decidim/debates/debates_controller.rb +4 -4
- data/app/forms/decidim/debates/debate_form.rb +0 -2
- data/app/helpers/decidim/debates/application_helper.rb +3 -4
- data/app/models/decidim/debates/debate.rb +32 -10
- data/app/packs/src/decidim/debates/admin/debates.js +2 -2
- data/app/permissions/decidim/debates/permissions.rb +3 -3
- data/app/presenters/decidim/debates/admin_log/value_types/debate_title_description_presenter.rb +1 -1
- data/app/presenters/decidim/debates/debate_presenter.rb +6 -14
- data/app/views/decidim/debates/admin/debate_closes/edit.html.erb +1 -1
- data/app/views/decidim/debates/admin/debates/_actions.html.erb +71 -27
- data/app/views/decidim/debates/admin/debates/_debate-tr.html.erb +5 -5
- data/app/views/decidim/debates/admin/debates/_form.html.erb +2 -2
- data/app/views/decidim/debates/admin/debates/index.html.erb +8 -5
- data/app/views/decidim/debates/admin/debates/manage_trash.html.erb +2 -1
- data/app/views/decidim/debates/debates/_close_debate_modal.html.erb +1 -1
- data/app/views/decidim/debates/debates/_debate_actions.html.erb +8 -8
- data/app/views/decidim/debates/debates/_form.html.erb +0 -4
- data/app/views/decidim/debates/debates/show.html.erb +9 -15
- data/config/assets.rb +2 -2
- data/config/locales/ar.yml +0 -8
- data/config/locales/bg.yml +0 -14
- data/config/locales/ca-IT.yml +12 -16
- data/config/locales/ca.yml +12 -16
- data/config/locales/cs.yml +12 -16
- data/config/locales/de.yml +12 -16
- data/config/locales/el.yml +0 -14
- data/config/locales/en.yml +12 -16
- data/config/locales/es-MX.yml +12 -16
- data/config/locales/es-PY.yml +12 -16
- data/config/locales/es.yml +12 -16
- data/config/locales/eu.yml +12 -16
- data/config/locales/fi-plain.yml +12 -16
- data/config/locales/fi.yml +12 -16
- data/config/locales/fr-CA.yml +8 -15
- data/config/locales/fr.yml +8 -15
- data/config/locales/ga-IE.yml +0 -10
- data/config/locales/gl.yml +0 -6
- data/config/locales/hu.yml +0 -14
- data/config/locales/id-ID.yml +0 -6
- data/config/locales/is-IS.yml +0 -4
- data/config/locales/it.yml +0 -14
- data/config/locales/ja.yml +12 -16
- data/config/locales/lb.yml +0 -12
- data/config/locales/lt.yml +0 -14
- data/config/locales/lv.yml +0 -4
- data/config/locales/nl.yml +0 -10
- data/config/locales/no.yml +0 -14
- data/config/locales/pl.yml +0 -14
- data/config/locales/pt-BR.yml +0 -14
- data/config/locales/pt.yml +0 -15
- data/config/locales/ro-RO.yml +1 -14
- data/config/locales/ru.yml +0 -4
- data/config/locales/sk.yml +0 -6
- data/config/locales/sv.yml +16 -14
- data/config/locales/tr-TR.yml +0 -15
- data/config/locales/uk.yml +0 -4
- data/config/locales/zh-CN.yml +0 -14
- data/config/locales/zh-TW.yml +0 -14
- data/db/migrate/20250515115545_rename_debates_endorsements_count_to_likes.rb +11 -0
- data/lib/decidim/api/debate_type.rb +15 -1
- data/lib/decidim/debates/component.rb +25 -9
- data/lib/decidim/debates/debate_serializer.rb +2 -2
- data/lib/decidim/debates/engine.rb +8 -39
- data/lib/decidim/debates/seeds.rb +1 -1
- data/lib/decidim/debates/test/factories.rb +22 -21
- data/lib/decidim/debates/version.rb +1 -1
- metadata +13 -15
- data/app/queries/decidim/debates/metrics/debate_followers_metric_measure.rb +0 -31
- data/app/queries/decidim/debates/metrics/debate_participants_metric_measure.rb +0 -27
- data/app/queries/decidim/debates/metrics/debates_metric_manage.rb +0 -45
data/config/locales/nl.yml
CHANGED
@@ -11,7 +11,6 @@ nl:
|
|
11
11
|
instructions: Instructies om deel te nemen
|
12
12
|
start_time: Begint om
|
13
13
|
title: Titel
|
14
|
-
user_group_id: Maak een debat als
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Debat gesloten
|
17
16
|
decidim/debates/create_debate_event: Debat
|
@@ -94,7 +93,6 @@ nl:
|
|
94
93
|
state: Status
|
95
94
|
state_values:
|
96
95
|
closed: Gesloten
|
97
|
-
open: Open
|
98
96
|
index:
|
99
97
|
new_debate: Nieuw debat
|
100
98
|
new:
|
@@ -106,9 +104,6 @@ nl:
|
|
106
104
|
random: Willekeurige volgorde
|
107
105
|
recent: Meest recent
|
108
106
|
updated: Onlangs bijgewerkt
|
109
|
-
show:
|
110
|
-
debate_closed: Gesloten
|
111
|
-
open: Debat openen
|
112
107
|
update:
|
113
108
|
invalid: Er is een fout opgetreden bij het bijwerken van het debat.
|
114
109
|
success: Debat succesvol bijgewerkt.
|
@@ -160,10 +155,5 @@ nl:
|
|
160
155
|
name: debatten
|
161
156
|
next_level_in: Neem deel aan %{score} meer debatten om het volgende niveau te bereiken!
|
162
157
|
unearned_another: Deze gebruiker heeft nog geen deelgenomen aan een debat.
|
163
|
-
metrics:
|
164
|
-
debates:
|
165
|
-
description: Aantal debatten gemaakt
|
166
|
-
object: debatten
|
167
|
-
title: Debatten
|
168
158
|
statistics:
|
169
159
|
debates_count: Debatten
|
data/config/locales/no.yml
CHANGED
@@ -11,7 +11,6 @@
|
|
11
11
|
instructions: Instruksjoner for å delta
|
12
12
|
start_time: Starter den
|
13
13
|
title: Tittel
|
14
|
-
user_group_id: Opprett innspillstråd som
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Innspillstråden er stengt
|
17
16
|
decidim/debates/create_debate_event: Innspillstråd
|
@@ -27,7 +26,6 @@
|
|
27
26
|
debates:
|
28
27
|
actions:
|
29
28
|
comment: Kommenter
|
30
|
-
endorse: Påtegne
|
31
29
|
name: Innspillstråder
|
32
30
|
settings:
|
33
31
|
global:
|
@@ -38,8 +36,6 @@
|
|
38
36
|
announcement: Kunngjøring
|
39
37
|
comments_blocked: Kommentarer er blokkert
|
40
38
|
creation_enabled: Deltakere kan opprette debatter
|
41
|
-
endorsements_blocked: Påtegnelser blokkert
|
42
|
-
endorsements_enabled: Påtegnelser aktivert
|
43
39
|
debates:
|
44
40
|
actions:
|
45
41
|
close: Lukk
|
@@ -108,8 +104,6 @@
|
|
108
104
|
state: Status
|
109
105
|
state_values:
|
110
106
|
closed: Lukket
|
111
|
-
open: Åpen
|
112
|
-
user_group: Grupper
|
113
107
|
index:
|
114
108
|
new_debate: Ny innspillstråd
|
115
109
|
new:
|
@@ -122,11 +116,8 @@
|
|
122
116
|
recent: Nyeste
|
123
117
|
updated: Sist oppdatert
|
124
118
|
show:
|
125
|
-
debate_closed: Lukket
|
126
119
|
debate_conclusions_are: 'Innspillstråden er avsluttet den %{date}, med denne oppsummeringen:'
|
127
120
|
edit_conclusions: Rediger oppsummering
|
128
|
-
groups_count: Grupper
|
129
|
-
open: Åpen debatt
|
130
121
|
participants_count: Deltakere
|
131
122
|
update:
|
132
123
|
invalid: Det oppsto et problem med å oppdatere innspillstråden.
|
@@ -179,10 +170,5 @@
|
|
179
170
|
name: Innspillstråder
|
180
171
|
next_level_in: Delta i %{score} flere innspillstråder for å nå neste nivå!
|
181
172
|
unearned_another: Denne deltakeren har ikke deltatt i noen innspillstråder ennå.
|
182
|
-
metrics:
|
183
|
-
debates:
|
184
|
-
description: Antall innspillstråder opprettet
|
185
|
-
object: innspillstråder
|
186
|
-
title: Innspillstråder
|
187
173
|
statistics:
|
188
174
|
debates_count: Debatter
|
data/config/locales/pl.yml
CHANGED
@@ -11,7 +11,6 @@ pl:
|
|
11
11
|
instructions: Instrukcje uczestnictwa
|
12
12
|
start_time: Zaczyna się
|
13
13
|
title: Tytuł
|
14
|
-
user_group_id: Utwórz debatę jako
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Debata zamknięta
|
17
16
|
decidim/debates/create_debate_event: Debata
|
@@ -29,7 +28,6 @@ pl:
|
|
29
28
|
debates:
|
30
29
|
actions:
|
31
30
|
comment: Skomentuj
|
32
|
-
endorse: Rekomendacje
|
33
31
|
name: Debaty
|
34
32
|
settings:
|
35
33
|
global:
|
@@ -40,8 +38,6 @@ pl:
|
|
40
38
|
announcement: Ogłoszenie
|
41
39
|
comments_blocked: Komentarze zablokowane
|
42
40
|
creation_enabled: Uczestnicy mogą tworzyć debaty
|
43
|
-
endorsements_blocked: Rekomendacje zablokowane
|
44
|
-
endorsements_enabled: Rekomendacje włączone
|
45
41
|
debates:
|
46
42
|
actions:
|
47
43
|
close: Zamknij
|
@@ -117,8 +113,6 @@ pl:
|
|
117
113
|
state: Status
|
118
114
|
state_values:
|
119
115
|
closed: Zakończone
|
120
|
-
open: Otwarte
|
121
|
-
user_group: Grupy
|
122
116
|
index:
|
123
117
|
new_debate: Nowa debata
|
124
118
|
new:
|
@@ -131,11 +125,8 @@ pl:
|
|
131
125
|
recent: Najnowsze
|
132
126
|
updated: Ostatnio aktualizowane
|
133
127
|
show:
|
134
|
-
debate_closed: Zakończone
|
135
128
|
debate_conclusions_are: 'Debata została zamknięta %{date} z następującymi wnioskami:'
|
136
129
|
edit_conclusions: Edytuj wnioski
|
137
|
-
groups_count: Grupy
|
138
|
-
open: Otwarta
|
139
130
|
participants_count: Użytkownicy
|
140
131
|
update:
|
141
132
|
invalid: Podczas aktualizowania debaty wystąpił błąd.
|
@@ -202,10 +193,5 @@ pl:
|
|
202
193
|
next_level_in: Weź udział w %{score} kolejnych debatach, aby awansować na kolejny poziom!
|
203
194
|
unearned_another: Ten użytkownik nie uczestniczył jeszcze w żadnej debacie.
|
204
195
|
unearned_own: Nie uczestniczono jeszcze w żadnej debacie.
|
205
|
-
metrics:
|
206
|
-
debates:
|
207
|
-
description: Liczba utworzonych debat
|
208
|
-
object: debaty
|
209
|
-
title: Debaty
|
210
196
|
statistics:
|
211
197
|
debates_count: Debaty
|
data/config/locales/pt-BR.yml
CHANGED
@@ -11,7 +11,6 @@ pt-BR:
|
|
11
11
|
instructions: Instruções para participar
|
12
12
|
start_time: Começa em
|
13
13
|
title: Título
|
14
|
-
user_group_id: Criar debate como
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Debate encerrado
|
17
16
|
decidim/debates/create_debate_event: Debate
|
@@ -27,7 +26,6 @@ pt-BR:
|
|
27
26
|
debates:
|
28
27
|
actions:
|
29
28
|
comment: Comentário
|
30
|
-
endorse: Endossar
|
31
29
|
name: Debates
|
32
30
|
settings:
|
33
31
|
global:
|
@@ -38,8 +36,6 @@ pt-BR:
|
|
38
36
|
announcement: Anúncio
|
39
37
|
comments_blocked: Comentários bloqueados
|
40
38
|
creation_enabled: Os participantes podem criar debates
|
41
|
-
endorsements_blocked: Endossos bloqueados
|
42
|
-
endorsements_enabled: Endossos habilitados
|
43
39
|
debates:
|
44
40
|
actions:
|
45
41
|
close: Fechar
|
@@ -113,8 +109,6 @@ pt-BR:
|
|
113
109
|
state: Status
|
114
110
|
state_values:
|
115
111
|
closed: Fechado
|
116
|
-
open: Aberto
|
117
|
-
user_group: Grupos
|
118
112
|
index:
|
119
113
|
new_debate: Novo debate
|
120
114
|
new:
|
@@ -127,11 +121,8 @@ pt-BR:
|
|
127
121
|
recent: Mais recente
|
128
122
|
updated: Atualizado recentemente
|
129
123
|
show:
|
130
|
-
debate_closed: Fechado
|
131
124
|
debate_conclusions_are: 'O debate foi encerrado em %{date} com estas conclusões:'
|
132
125
|
edit_conclusions: Editar conclusões
|
133
|
-
groups_count: Grupos
|
134
|
-
open: Debate aberto
|
135
126
|
participants_count: Participantes
|
136
127
|
update:
|
137
128
|
invalid: Ocorreu um problema ao atualizar esse debate.
|
@@ -198,10 +189,5 @@ pt-BR:
|
|
198
189
|
next_level_in: Participe em mais %{score} debates para alcançar o próximo nível!
|
199
190
|
unearned_another: Este usuário ainda não participou de nenhum debate.
|
200
191
|
unearned_own: Você ainda não participou de nenhum debate ainda.
|
201
|
-
metrics:
|
202
|
-
debates:
|
203
|
-
description: Número de debates criados
|
204
|
-
object: debates
|
205
|
-
title: Debates
|
206
192
|
statistics:
|
207
193
|
debates_count: Debates
|
data/config/locales/pt.yml
CHANGED
@@ -11,7 +11,6 @@ pt:
|
|
11
11
|
instructions: Instruções para participar
|
12
12
|
start_time: Começa em
|
13
13
|
title: Título
|
14
|
-
user_group_id: Criar debate como
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Debate fechado
|
17
16
|
decidim/debates/create_debate_event: Debate
|
@@ -32,7 +31,6 @@ pt:
|
|
32
31
|
actions:
|
33
32
|
comment: Comentários
|
34
33
|
create: Criar debate
|
35
|
-
endorse: Apoiar
|
36
34
|
name: Debates
|
37
35
|
settings:
|
38
36
|
global:
|
@@ -49,8 +47,6 @@ pt:
|
|
49
47
|
announcement: Anúncio
|
50
48
|
comments_blocked: Comentários bloqueados
|
51
49
|
creation_enabled: Os participantes podem criar debates
|
52
|
-
endorsements_blocked: Apoios bloqueados
|
53
|
-
endorsements_enabled: Endossamentos ativados
|
54
50
|
debates:
|
55
51
|
actions:
|
56
52
|
close: Fechar
|
@@ -147,8 +143,6 @@ pt:
|
|
147
143
|
state: Estado
|
148
144
|
state_values:
|
149
145
|
closed: Fechar
|
150
|
-
open: Abertas
|
151
|
-
user_group: Grupos
|
152
146
|
index:
|
153
147
|
new_debate: Novo debate
|
154
148
|
new:
|
@@ -162,12 +156,9 @@ pt:
|
|
162
156
|
updated: Actualizado recentemente
|
163
157
|
show:
|
164
158
|
close_debate: Fechar
|
165
|
-
debate_closed: Fechar
|
166
159
|
debate_conclusions_are: 'O debate foi fechado em %{date} com as seguintes conclusões:'
|
167
160
|
edit_conclusions: Editar conclusões
|
168
161
|
edit_debate: Editar
|
169
|
-
groups_count: Grupos
|
170
|
-
open: Abrir debate
|
171
162
|
participants_count: Participantes
|
172
163
|
update:
|
173
164
|
invalid: Ocorreu um problema ao atualizar o debate.
|
@@ -239,11 +230,6 @@ pt:
|
|
239
230
|
next_level_in: Participe em mais %{score} debates para alcançar o próximo nível!
|
240
231
|
unearned_another: Este participante ainda não fez parte de nenhum debate.
|
241
232
|
unearned_own: Ainda não participou de nenhum debate.
|
242
|
-
metrics:
|
243
|
-
debates:
|
244
|
-
description: Número de debates criados
|
245
|
-
object: debates
|
246
|
-
title: Debates
|
247
233
|
open_data:
|
248
234
|
help:
|
249
235
|
debate_comments:
|
@@ -267,7 +253,6 @@ pt:
|
|
267
253
|
created_at: A data e a hora em que o debate foi criado
|
268
254
|
description: Descrição do debate
|
269
255
|
end_time: Quando este debate termina, se for um debate aberto e tiver um tempo limitado
|
270
|
-
endorsements_count: O número de recomendações que este debate tem
|
271
256
|
follows_count: O número de seguidores que este debate tem
|
272
257
|
id: O identificador único do debate
|
273
258
|
information_updates: As atualizações que o autor fez no debate
|
data/config/locales/ro-RO.yml
CHANGED
@@ -11,7 +11,6 @@ ro:
|
|
11
11
|
instructions: Instrucţiuni de participare
|
12
12
|
start_time: Începe la
|
13
13
|
title: Titlu
|
14
|
-
user_group_id: Creați dezbaterea ca
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Dezbatere închisă
|
17
16
|
decidim/debates/create_debate_event: Dezbatere
|
@@ -33,7 +32,6 @@ ro:
|
|
33
32
|
actions:
|
34
33
|
comment: Comentați
|
35
34
|
create: Creați o dezbatere
|
36
|
-
endorse: Susține
|
37
35
|
name: Dezbateri
|
38
36
|
settings:
|
39
37
|
global:
|
@@ -50,8 +48,6 @@ ro:
|
|
50
48
|
announcement: Anunț
|
51
49
|
comments_blocked: Comentarii blocate
|
52
50
|
creation_enabled: Participanții pot crea dezbateri
|
53
|
-
endorsements_blocked: Susțineri dezactivate
|
54
|
-
endorsements_enabled: Susțineri activate
|
55
51
|
debates:
|
56
52
|
actions:
|
57
53
|
close: Închideți
|
@@ -126,8 +122,6 @@ ro:
|
|
126
122
|
state: Stare
|
127
123
|
state_values:
|
128
124
|
closed: Închisă
|
129
|
-
open: Deschisă
|
130
|
-
user_group: Grupuri
|
131
125
|
index:
|
132
126
|
new_debate: Dezbatere nouă
|
133
127
|
new:
|
@@ -141,11 +135,8 @@ ro:
|
|
141
135
|
recent: Cele mai recente
|
142
136
|
updated: Actualizate recent
|
143
137
|
show:
|
144
|
-
debate_closed: Închisă
|
145
138
|
debate_conclusions_are: 'Dezbaterea s-a încheiat la %{date} cu următoarele concluzii:'
|
146
139
|
edit_conclusions: Modificați concluziile
|
147
|
-
groups_count: Grupuri
|
148
|
-
open: Dezbatere deschisă
|
149
140
|
participants_count: Participanți
|
150
141
|
update:
|
151
142
|
invalid: A apărut o problemă la actualizarea dezbaterii.
|
@@ -203,10 +194,6 @@ ro:
|
|
203
194
|
next_level_in: Participați la încă %{score} dezbateri pentru a ajunge la următorul nivel!
|
204
195
|
unearned_another: Acest participant nu a luat parte la nicio dezbatere încă.
|
205
196
|
unearned_own: Nu ați participat la nicio dezbatere încă.
|
206
|
-
metrics:
|
207
|
-
debates:
|
208
|
-
description: Numărul dezbaterilor create
|
209
|
-
object: dezbateri
|
210
|
-
title: Dezbateri
|
211
197
|
statistics:
|
212
198
|
debates_count: Dezbateri
|
199
|
+
debates_count_tooltip: Numărul de discuții care au avut loc.
|
data/config/locales/ru.yml
CHANGED
@@ -9,7 +9,6 @@ ru:
|
|
9
9
|
instructions: Указания для участия
|
10
10
|
start_time: 'Начинается:'
|
11
11
|
title: Название
|
12
|
-
user_group_id: Начать обсуждение в качестве
|
13
12
|
models:
|
14
13
|
decidim/debates/create_debate_event: Обсуждение
|
15
14
|
decidim/debates/creation_disabled_event: Обсуждения отключены
|
@@ -98,6 +97,3 @@ ru:
|
|
98
97
|
email_intro: 'Теперь вы можете начинать новые обсуждения в %{participatory_space_title}! Начните со страницы:'
|
99
98
|
email_outro: Вы получили это уведомление, потому что вы следите за «%{participatory_space_title}». Вы можете отписаться от уведомлений, перейдя по приведенной выше ссылке.
|
100
99
|
email_subject: Теперь в %{participatory_space_title} можно начинать обсуждения
|
101
|
-
metrics:
|
102
|
-
debates:
|
103
|
-
title: Обсуждения
|
data/config/locales/sk.yml
CHANGED
@@ -9,7 +9,6 @@ sk:
|
|
9
9
|
instructions: Inštrukcie ku zapojeniu
|
10
10
|
start_time: Začiatok
|
11
11
|
title: Názov
|
12
|
-
user_group_id: Vytvoriť debatu ako
|
13
12
|
models:
|
14
13
|
decidim/debates/create_debate_event: Debata
|
15
14
|
decidim/debates/creation_disabled_event: Debaty zakázané
|
@@ -114,8 +113,3 @@ sk:
|
|
114
113
|
name: Debaty
|
115
114
|
next_level_in: Podieľajte sa na ďalších %{score} debatách pre dosiahnutie ďalšej úrovne!
|
116
115
|
unearned_another: Tento účastník sa nezúčastnil na žiadnej debate.
|
117
|
-
metrics:
|
118
|
-
debates:
|
119
|
-
description: Počet vytvorených debát
|
120
|
-
object: debaty
|
121
|
-
title: Debaty
|
data/config/locales/sv.yml
CHANGED
@@ -11,7 +11,6 @@ sv:
|
|
11
11
|
instructions: Instruktioner för att delta
|
12
12
|
start_time: Startdatum
|
13
13
|
title: Titel
|
14
|
-
user_group_id: Skapa debatt som
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Debatten avslutades
|
17
16
|
decidim/debates/create_debate_event: Debatt
|
@@ -23,11 +22,14 @@ sv:
|
|
23
22
|
one: Debatt
|
24
23
|
other: Debatter
|
25
24
|
decidim:
|
25
|
+
admin:
|
26
|
+
tooltips:
|
27
|
+
deleted_debates_info: Kan inte ta bort denna debatt
|
26
28
|
components:
|
27
29
|
debates:
|
28
30
|
actions:
|
29
31
|
comment: Kommentera
|
30
|
-
|
32
|
+
like: Gilla
|
31
33
|
name: Debatter
|
32
34
|
settings:
|
33
35
|
global:
|
@@ -38,8 +40,8 @@ sv:
|
|
38
40
|
announcement: Meddelande
|
39
41
|
comments_blocked: Stäng av kommentarer
|
40
42
|
creation_enabled: Deltagarna kan skapa debatter
|
41
|
-
|
42
|
-
|
43
|
+
likes_blocked: Gilla är blockerat
|
44
|
+
likes_enabled: Gilla är aktiverat
|
43
45
|
debates:
|
44
46
|
actions:
|
45
47
|
close: Stäng
|
@@ -113,8 +115,7 @@ sv:
|
|
113
115
|
state: Status
|
114
116
|
state_values:
|
115
117
|
closed: Avslutade
|
116
|
-
|
117
|
-
user_group: Grupper
|
118
|
+
ongoing: Pågående
|
118
119
|
index:
|
119
120
|
new_debate: Ny debatt
|
120
121
|
new:
|
@@ -128,11 +129,12 @@ sv:
|
|
128
129
|
recent: Senaste
|
129
130
|
updated: Senast uppdaterade
|
130
131
|
show:
|
131
|
-
|
132
|
+
closed: Avslutad
|
132
133
|
debate_conclusions_are: 'Debatten avslutades %{date} med följande slutsatser:'
|
133
134
|
edit_conclusions: Redigera slutsatser
|
134
|
-
|
135
|
-
|
135
|
+
not_started: Inte påbörjad
|
136
|
+
ongoing: Pågående
|
137
|
+
open_ended: Utan slut
|
136
138
|
participants_count: Deltagare
|
137
139
|
update:
|
138
140
|
invalid: Det gick inte att uppdatera debatten.
|
@@ -199,10 +201,10 @@ sv:
|
|
199
201
|
next_level_in: Delta i %{score} till debatter för att nå nästa nivå!
|
200
202
|
unearned_another: Deltagaren har inte deltagit i någon debatt än.
|
201
203
|
unearned_own: Du har inte deltagit i någon debatt än.
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
title: Debatter
|
204
|
+
open_data:
|
205
|
+
help:
|
206
|
+
debates:
|
207
|
+
likes_count: Antal som gillar debatten
|
207
208
|
statistics:
|
208
209
|
debates_count: Debatter
|
210
|
+
debates_count_tooltip: Antalet diskussioner som hållits.
|
data/config/locales/tr-TR.yml
CHANGED
@@ -11,7 +11,6 @@ tr:
|
|
11
11
|
instructions: Katılma talimatları
|
12
12
|
start_time: Den başlar
|
13
13
|
title: Başlık
|
14
|
-
user_group_id: Olarak tartışma oluştur
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: Tartışma kapandı
|
17
16
|
decidim/debates/create_debate_event: tartışma
|
@@ -24,8 +23,6 @@ tr:
|
|
24
23
|
decidim:
|
25
24
|
components:
|
26
25
|
debates:
|
27
|
-
actions:
|
28
|
-
endorse: Onayla
|
29
26
|
name: Tartışmalar
|
30
27
|
settings:
|
31
28
|
global:
|
@@ -35,8 +32,6 @@ tr:
|
|
35
32
|
step:
|
36
33
|
announcement: duyuru
|
37
34
|
comments_blocked: Yorumlar engellendi
|
38
|
-
endorsements_blocked: Onaylar engellendi
|
39
|
-
endorsements_enabled: Onaylar etkinleştirildi
|
40
35
|
debates:
|
41
36
|
actions:
|
42
37
|
close: Kapat
|
@@ -108,8 +103,6 @@ tr:
|
|
108
103
|
state: Statü
|
109
104
|
state_values:
|
110
105
|
closed: Kapalı
|
111
|
-
open: Açık
|
112
|
-
user_group: Gruplar
|
113
106
|
index:
|
114
107
|
new_debate: Yeni tartışma
|
115
108
|
new:
|
@@ -122,11 +115,8 @@ tr:
|
|
122
115
|
recent: En yeni
|
123
116
|
updated: Yeni güncellenmiş
|
124
117
|
show:
|
125
|
-
debate_closed: Kapalı
|
126
118
|
debate_conclusions_are: 'Tartışma bu sonuçlarla %{date} tarihinde kapatıldı:'
|
127
119
|
edit_conclusions: Sonuçları düzenleyin
|
128
|
-
groups_count: Gruplar
|
129
|
-
open: Açık tartışma
|
130
120
|
participants_count: Katılımcılar
|
131
121
|
update:
|
132
122
|
invalid: Bu tartışmayı güncellerken bir sorun oluştu.
|
@@ -186,8 +176,3 @@ tr:
|
|
186
176
|
name: Tartışmalar
|
187
177
|
next_level_in: Bir sonraki seviyeye ulaşmak için %{score} tartışmaya katılın!
|
188
178
|
unearned_another: Bu katılımcı henüz bir tartışmada yer almadı.
|
189
|
-
metrics:
|
190
|
-
debates:
|
191
|
-
description: Oluşturulan tartışmaların sayısı
|
192
|
-
object: tartışmalar
|
193
|
-
title: Tartışmalar
|
data/config/locales/uk.yml
CHANGED
@@ -9,7 +9,6 @@ uk:
|
|
9
9
|
instructions: Вказівки до участі
|
10
10
|
start_time: 'Починається:'
|
11
11
|
title: Назва
|
12
|
-
user_group_id: Започаткувати обговорення як
|
13
12
|
models:
|
14
13
|
decidim/debates/create_debate_event: Обговорення
|
15
14
|
decidim/debates/creation_disabled_event: Обговорення вимкнене
|
@@ -98,6 +97,3 @@ uk:
|
|
98
97
|
email_intro: 'Тепер в %{participatory_space_title} з''явилась можливість започатковувати нові обговорення! Почніть брати участь зі сторінки:'
|
99
98
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{participatory_space_title}. Ви можете відписатися від цих сповіщень, перейшовши за наведеним вище посиланням.
|
100
99
|
email_subject: В %{participatory_space_title} почалось обговорення
|
101
|
-
metrics:
|
102
|
-
debates:
|
103
|
-
title: Обговорення
|
data/config/locales/zh-CN.yml
CHANGED
@@ -11,7 +11,6 @@ zh-CN:
|
|
11
11
|
instructions: 参与说明
|
12
12
|
start_time: 开始于
|
13
13
|
title: 标题
|
14
|
-
user_group_id: 创建辩论为
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: 辩论结束
|
17
16
|
decidim/debates/create_debate_event: B. 辩论
|
@@ -23,8 +22,6 @@ zh-CN:
|
|
23
22
|
decidim:
|
24
23
|
components:
|
25
24
|
debates:
|
26
|
-
actions:
|
27
|
-
endorse: 批准
|
28
25
|
name: 辩论
|
29
26
|
settings:
|
30
27
|
global:
|
@@ -34,8 +31,6 @@ zh-CN:
|
|
34
31
|
step:
|
35
32
|
announcement: 通 知
|
36
33
|
comments_blocked: 评论已阻止
|
37
|
-
endorsements_blocked: 已阻止授权
|
38
|
-
endorsements_enabled: 授权已启用
|
39
34
|
debates:
|
40
35
|
actions:
|
41
36
|
close: 关闭
|
@@ -98,8 +93,6 @@ zh-CN:
|
|
98
93
|
state: 状态
|
99
94
|
state_values:
|
100
95
|
closed: 已关闭
|
101
|
-
open: 打开
|
102
|
-
user_group: 群組
|
103
96
|
index:
|
104
97
|
new_debate: 新的辩论
|
105
98
|
new:
|
@@ -112,10 +105,8 @@ zh-CN:
|
|
112
105
|
recent: 最新的
|
113
106
|
updated: 最近更新
|
114
107
|
show:
|
115
|
-
debate_closed: 已关闭
|
116
108
|
debate_conclusions_are: '辩论在 %{date} 结束后得出以下结论:'
|
117
109
|
edit_conclusions: 编辑结论
|
118
|
-
groups_count: 群組
|
119
110
|
participants_count: 参加者
|
120
111
|
update:
|
121
112
|
invalid: 有人在更新辩论时遇到问题。
|
@@ -168,8 +159,3 @@ zh-CN:
|
|
168
159
|
name: 辩论
|
169
160
|
next_level_in: 参加更多的 %{score} 次辩论,以达到下一级!
|
170
161
|
unearned_another: 这位与会者尚未参加任何辩论。
|
171
|
-
metrics:
|
172
|
-
debates:
|
173
|
-
description: 创建的辩论数
|
174
|
-
object: 辩论情况
|
175
|
-
title: 辩论
|
data/config/locales/zh-TW.yml
CHANGED
@@ -11,7 +11,6 @@ zh-TW:
|
|
11
11
|
instructions: 參加指南
|
12
12
|
start_time: 開始於
|
13
13
|
title: 標題
|
14
|
-
user_group_id: 建立辯論為
|
15
14
|
models:
|
16
15
|
decidim/debates/close_debate_event: 辯論功能已關閉
|
17
16
|
decidim/debates/create_debate_event: 辯論
|
@@ -26,7 +25,6 @@ zh-TW:
|
|
26
25
|
debates:
|
27
26
|
actions:
|
28
27
|
comment: 留言
|
29
|
-
endorse: 連署
|
30
28
|
name: 辯論
|
31
29
|
settings:
|
32
30
|
global:
|
@@ -37,8 +35,6 @@ zh-TW:
|
|
37
35
|
announcement: 公告
|
38
36
|
comments_blocked: 留言已封鎖
|
39
37
|
creation_enabled: 參與者可以建立辯論
|
40
|
-
endorsements_blocked: 連署已封鎖
|
41
|
-
endorsements_enabled: 連署已封鎖
|
42
38
|
debates:
|
43
39
|
actions:
|
44
40
|
close: 關閉
|
@@ -106,8 +102,6 @@ zh-TW:
|
|
106
102
|
state: 狀態
|
107
103
|
state_values:
|
108
104
|
closed: 關閉
|
109
|
-
open: 開啟
|
110
|
-
user_group: 群組
|
111
105
|
index:
|
112
106
|
new_debate: 新辯論
|
113
107
|
new:
|
@@ -120,11 +114,8 @@ zh-TW:
|
|
120
114
|
recent: 最近
|
121
115
|
updated: 最近更新
|
122
116
|
show:
|
123
|
-
debate_closed: 關閉
|
124
117
|
debate_conclusions_are: '此辯論已於 %{date} 結束,以下是總結結論:'
|
125
118
|
edit_conclusions: 修改結論
|
126
|
-
groups_count: 群組
|
127
|
-
open: 開放性辯論
|
128
119
|
participants_count: 參與者
|
129
120
|
update:
|
130
121
|
invalid: 更新此辯論時發生問題。
|
@@ -182,10 +173,5 @@ zh-TW:
|
|
182
173
|
next_level_in: 再參與 %{score} 個辯論,即可達成下一等級!
|
183
174
|
unearned_another: 這位參與者尚未參與任何辯論。
|
184
175
|
unearned_own: 您尚未參與任何辯論。
|
185
|
-
metrics:
|
186
|
-
debates:
|
187
|
-
description: 建立的辯論次數
|
188
|
-
object: 辯論
|
189
|
-
title: 辯論
|
190
176
|
statistics:
|
191
177
|
debates_count: 辯論
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class RenameDebatesEndorsementsCountToLikes < ActiveRecord::Migration[7.0]
|
4
|
+
def change
|
5
|
+
rename_column :decidim_debates_debates, :endorsements_count, :likes_count
|
6
|
+
|
7
|
+
rename_index :decidim_debates_debates,
|
8
|
+
:idx_decidim_debates_debates_on_endorsemnts_count,
|
9
|
+
:index_decidim_debates_debates_on_likes_count
|
10
|
+
end
|
11
|
+
end
|
@@ -7,18 +7,32 @@ module Decidim
|
|
7
7
|
implements Decidim::Comments::CommentableInterface
|
8
8
|
implements Decidim::Core::AuthorableInterface
|
9
9
|
implements Decidim::Core::TimestampsInterface
|
10
|
+
implements Decidim::Core::FollowableInterface
|
11
|
+
implements Decidim::Core::ReferableInterface
|
12
|
+
implements Decidim::Core::AttachableInterface
|
13
|
+
implements Decidim::Core::LikeableInterface
|
14
|
+
implements Decidim::Core::TraceableInterface
|
10
15
|
|
11
16
|
description "A debate"
|
12
17
|
|
18
|
+
field :closed_at, Decidim::Core::DateTimeType, "The closed time for this debate", null: true
|
19
|
+
field :comments_enabled, Boolean, "Whether the comments are enabled for this debate", null: true
|
20
|
+
field :conclusions, Decidim::Core::TranslatedFieldType, "The conclusion for this debate", null: true
|
13
21
|
field :description, Decidim::Core::TranslatedFieldType, "The description for this debate", null: true
|
14
22
|
field :end_time, Decidim::Core::DateTimeType, "The end time for this debate", null: true
|
15
23
|
field :id, GraphQL::Types::ID, "The internal ID for this debate", null: false
|
16
24
|
field :image, GraphQL::Types::String, "The image of this debate", null: true
|
17
25
|
field :information_updates, Decidim::Core::TranslatedFieldType, "The information updates for this debate", null: true
|
18
26
|
field :instructions, Decidim::Core::TranslatedFieldType, "The instructions for this debate", null: true
|
19
|
-
field :
|
27
|
+
field :last_comment_at, Decidim::Core::DateTimeType, "The last comment time for this debate", null: true
|
28
|
+
field :last_comment_by, Decidim::Core::UserType, "The last commenter for this debate", null: true
|
20
29
|
field :start_time, Decidim::Core::DateTimeType, "The start time for this debate", null: true
|
21
30
|
field :title, Decidim::Core::TranslatedFieldType, "The title for this debate", null: true
|
31
|
+
field :url, GraphQL::Types::String, "The URL for this debate", null: false
|
32
|
+
|
33
|
+
def url
|
34
|
+
Decidim::ResourceLocatorPresenter.new(object).url
|
35
|
+
end
|
22
36
|
|
23
37
|
def self.authorized?(object, context)
|
24
38
|
context[:debate] = object
|