decidim-debates 0.23.3 → 0.24.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/admin/decidim_debates_manifest.js +1 -0
- data/app/assets/javascripts/decidim/debates/admin/debates.js.es6 +25 -0
- data/app/cells/decidim/debates/debate_m/open_date.erb +7 -0
- data/app/cells/decidim/debates/debate_m_cell.rb +1 -1
- data/app/cells/decidim/debates/reported_content/show.erb +4 -0
- data/app/cells/decidim/debates/reported_content_cell.rb +13 -0
- data/app/commands/decidim/debates/admin/create_debate.rb +3 -2
- data/app/commands/decidim/debates/admin/update_debate.rb +2 -1
- data/app/commands/decidim/debates/create_debate.rb +1 -0
- data/app/commands/decidim/debates/update_debate.rb +2 -1
- data/app/controllers/decidim/debates/debates_controller.rb +1 -5
- data/app/forms/decidim/debates/admin/close_debate_form.rb +1 -1
- data/app/forms/decidim/debates/admin/debate_form.rb +30 -2
- data/app/forms/decidim/debates/close_debate_form.rb +1 -1
- data/app/forms/decidim/debates/debate_form.rb +17 -0
- data/app/models/decidim/debates/debate.rb +11 -1
- data/app/permissions/decidim/debates/admin/permissions.rb +8 -1
- data/app/views/decidim/debates/admin/debates/_form.html.erb +15 -2
- data/app/views/decidim/debates/admin/debates/index.html.erb +10 -2
- data/app/views/decidim/debates/debates/_filters.html.erb +1 -1
- data/app/views/decidim/debates/debates/_form.html.erb +6 -0
- data/app/views/decidim/debates/debates/show.html.erb +5 -21
- data/config/locales/ca.yml +17 -4
- data/config/locales/cs.yml +17 -4
- data/config/locales/de.yml +17 -4
- data/config/locales/en.yml +17 -4
- data/config/locales/es-MX.yml +10 -4
- data/config/locales/es-PY.yml +10 -4
- data/config/locales/es.yml +10 -4
- data/config/locales/fi-plain.yml +17 -4
- data/config/locales/fi.yml +17 -4
- data/config/locales/fr-CA.yml +17 -4
- data/config/locales/fr.yml +17 -4
- data/config/locales/gl.yml +10 -4
- data/config/locales/ja.yml +10 -4
- data/config/locales/nl.yml +17 -4
- data/config/locales/no.yml +10 -4
- data/config/locales/pl.yml +36 -6
- data/config/locales/ro-RO.yml +13 -0
- data/config/locales/sv.yml +10 -4
- data/config/locales/tr-TR.yml +17 -4
- data/config/locales/zh-CN.yml +10 -4
- data/db/migrate/20200930145546_add_scope_to_debates_debate.rb +7 -0
- data/db/migrate/20201126112752_archive_debates.rb +8 -0
- data/db/migrate/20210125101735_revert_archive_debates.rb +8 -0
- data/lib/decidim/api/debate_type.rb +26 -0
- data/lib/decidim/api/debates_type.rb +26 -0
- data/lib/decidim/debates.rb +1 -0
- data/lib/decidim/debates/admin_engine.rb +4 -0
- data/lib/decidim/debates/api.rb +8 -0
- data/lib/decidim/debates/component.rb +22 -10
- data/lib/decidim/debates/test/factories.rb +1 -1
- data/lib/decidim/debates/version.rb +1 -1
- metadata +25 -16
- data/app/types/decidim/debates/debate_type.rb +0 -28
- data/app/types/decidim/debates/debates_type.rb +0 -32
data/config/locales/gl.yml
CHANGED
@@ -134,10 +134,16 @@ gl:
|
|
134
134
|
email_subject: Os debates agora están dispoñibles en %{participatory_space_title}
|
135
135
|
notification_title: Agora podes comezar <a href="%{resource_path}">novos debates</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
136
136
|
debate_closed:
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
137
|
+
affected_user:
|
138
|
+
email_intro: 'Pechouse o debate "%{resource_title}". Podes ler as súas conclusións na súa páxina:'
|
139
|
+
email_outro: Recibiches esta notificación porque segues o debate "%{resource_title}". Podes deixar de seguilo dende a ligazón anterior.
|
140
|
+
email_subject: Pechouse o debate "%{resource_title}"
|
141
|
+
notification_title: O debate <a href="%{resource_path}">%{resource_title}</a> foi pechado.
|
142
|
+
follower:
|
143
|
+
email_intro: 'Pechouse o debate "%{resource_title}". Podes ler as súas conclusións na súa páxina:'
|
144
|
+
email_outro: Recibiches esta notificación porque segues o debate "%{resource_title}". Podes deixar de seguilo dende a ligazón anterior.
|
145
|
+
email_subject: Pechouse o debate "%{resource_title}"
|
146
|
+
notification_title: O debate <a href="%{resource_path}">%{resource_title}</a> foi pechado.
|
141
147
|
gamification:
|
142
148
|
badges:
|
143
149
|
commented_debates:
|
data/config/locales/ja.yml
CHANGED
@@ -198,10 +198,16 @@ ja:
|
|
198
198
|
email_subject: ディベートは %{participatory_space_title} で利用可能になりました
|
199
199
|
notification_title: <a href="%{participatory_space_url}">%{participatory_space_title}</a> 内で <a href="%{resource_path}">新しいディベート</a> を開始できます。
|
200
200
|
debate_closed:
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
201
|
+
affected_user:
|
202
|
+
email_intro: '「%{resource_title}」のディベートは終了しました。そのページから結論を読むことができます。'
|
203
|
+
email_outro: '%{resource_title} をフォローしているため、この通知を受け取りました。前のリンクから通知の受信を停止することができます。'
|
204
|
+
email_subject: '「%{resource_title}」のディベートは終了しました'
|
205
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> のディベートは終了しました。
|
206
|
+
follower:
|
207
|
+
email_intro: '「%{resource_title}」のディベートは終了しました。そのページから結論を読むことができます。'
|
208
|
+
email_outro: '%{resource_title} をフォローしているため、この通知を受け取りました。前のリンクから通知の受信を停止することができます。'
|
209
|
+
email_subject: '「%{resource_title}」のディベートは終了しました'
|
210
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> のディベートは終了しました。
|
205
211
|
gamification:
|
206
212
|
badges:
|
207
213
|
commented_debates:
|
data/config/locales/nl.yml
CHANGED
@@ -58,6 +58,10 @@ nl:
|
|
58
58
|
edit:
|
59
59
|
title: Bewerk debat
|
60
60
|
update: Update debat
|
61
|
+
form:
|
62
|
+
debate_type: Type debat
|
63
|
+
finite: Einde (met begin- en eindtijden)
|
64
|
+
open: Start (geen begin- of eindtijden)
|
61
65
|
index:
|
62
66
|
title: Debatten
|
63
67
|
new:
|
@@ -66,6 +70,8 @@ nl:
|
|
66
70
|
update:
|
67
71
|
invalid: Er is een probleem opgetreden tijdens het bijwerken van dit debat.
|
68
72
|
success: Debat succesvol bijgewerkt.
|
73
|
+
exports:
|
74
|
+
comments: Reacties
|
69
75
|
models:
|
70
76
|
debate:
|
71
77
|
name: Debat
|
@@ -129,6 +135,7 @@ nl:
|
|
129
135
|
back: Terug naar het overzicht
|
130
136
|
date: 'Datum:'
|
131
137
|
edit_debate: Bewerk debat
|
138
|
+
open: Debat openen
|
132
139
|
update:
|
133
140
|
invalid: Er is een fout opgetreden bij het bijwerken van het debat.
|
134
141
|
success: Debat succesvol bijgewerkt.
|
@@ -176,10 +183,16 @@ nl:
|
|
176
183
|
email_subject: Debatten zijn nu beschikbaar in %{participatory_space_title}
|
177
184
|
notification_title: Je kan nu beginnen met <a href="%{resource_path}">nieuwe debatten</a> in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
178
185
|
debate_closed:
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
186
|
+
affected_user:
|
187
|
+
email_intro: 'Het debat "%{resource_title}" is gesloten. U kunt de conclusies lezen op de pagina:'
|
188
|
+
email_outro: Je hebt deze melding ontvangen omdat je het "%{resource_title}" debat volgt. Je kan stoppen met volgen via vorige link.
|
189
|
+
email_subject: De "%{resource_title}" debat is gesloten
|
190
|
+
notification_title: Het debat <a href="%{resource_path}">%{resource_title}</a> is gesloten.
|
191
|
+
follower:
|
192
|
+
email_intro: 'Het debat "%{resource_title}" is gesloten. U kunt de conclusies lezen op de pagina:'
|
193
|
+
email_outro: Je hebt deze melding ontvangen omdat je het "%{resource_title}" debat volgt. Je kan stoppen met volgen via vorige link.
|
194
|
+
email_subject: De "%{resource_title}" debat is gesloten
|
195
|
+
notification_title: Het debat <a href="%{resource_path}">%{resource_title}</a> is gesloten.
|
183
196
|
gamification:
|
184
197
|
badges:
|
185
198
|
commented_debates:
|
data/config/locales/no.yml
CHANGED
@@ -174,10 +174,16 @@
|
|
174
174
|
email_subject: Innspillstråder nå tilgjengelig i %{participatory_space_title}
|
175
175
|
notification_title: Du kan nå starte <a href="%{resource_path}">nye innspillstråder</a> i <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
176
176
|
debate_closed:
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
177
|
+
affected_user:
|
178
|
+
email_intro: 'Innspillstråden %{resource_title} er avsluttet. Du kan lese oppsummeringen på denne siden:'
|
179
|
+
email_outro: Du har mottatt denne varslingen fordi du følger innspillstråden "%{resource_title}". Du kan slutte å følge den ved å trykke på linken over.
|
180
|
+
email_subject: Innspillstråden %{resource_title} er avsluttet
|
181
|
+
notification_title: Innspillstråden <a href="%{resource_path}">%{resource_title}</a> er avsluttet.
|
182
|
+
follower:
|
183
|
+
email_intro: 'Innspillstråden %{resource_title} er avsluttet. Du kan lese oppsummeringen på denne siden:'
|
184
|
+
email_outro: Du har mottatt denne varslingen fordi du følger innspillstråden "%{resource_title}". Du kan slutte å følge den ved å trykke på linken over.
|
185
|
+
email_subject: Innspillstråden %{resource_title} er avsluttet
|
186
|
+
notification_title: Innspillstråden <a href="%{resource_path}">%{resource_title}</a> er avsluttet.
|
181
187
|
gamification:
|
182
188
|
badges:
|
183
189
|
commented_debates:
|
data/config/locales/pl.yml
CHANGED
@@ -67,6 +67,10 @@ pl:
|
|
67
67
|
edit:
|
68
68
|
title: Edytuj debatę
|
69
69
|
update: Zaktualizuj debatę
|
70
|
+
form:
|
71
|
+
debate_type: Typ debaty
|
72
|
+
finite: Zakończ (z czasem rozpoczęcia i zakończenia)
|
73
|
+
open: Otwórz (bez czasu rozpoczęcia i zakończenia)
|
70
74
|
index:
|
71
75
|
title: Debaty
|
72
76
|
new:
|
@@ -75,6 +79,8 @@ pl:
|
|
75
79
|
update:
|
76
80
|
invalid: Wystąpił błąd podczas aktualizowania tej debaty.
|
77
81
|
success: Debata została zaktualizowana pomyślnie.
|
82
|
+
exports:
|
83
|
+
comments: Komentarze
|
78
84
|
models:
|
79
85
|
debate:
|
80
86
|
name: Debata
|
@@ -83,6 +89,8 @@ pl:
|
|
83
89
|
close: "%{user_name} zamknął/zamknęła debatę %{resource_name} w przestrzeni %{space_name}"
|
84
90
|
create: "%{user_name} utworzył(a) debatę %{resource_name} w przestrzeni %{space_name}"
|
85
91
|
update: "%{user_name} zaktualizował(a) debatę %{resource_name} w przestrzeni %{space_name}"
|
92
|
+
debate_m:
|
93
|
+
commented_time_ago: Skomentowano %{time} temu
|
86
94
|
debates:
|
87
95
|
close:
|
88
96
|
invalid: Podczas zamykania debaty wystąpił błąd.
|
@@ -104,19 +112,28 @@ pl:
|
|
104
112
|
debate:
|
105
113
|
participate: Dołącz
|
106
114
|
edit:
|
107
|
-
back:
|
115
|
+
back: Wróć
|
108
116
|
save: Zapisz zmiany
|
109
117
|
title: Edytuj debatę
|
110
118
|
filters:
|
119
|
+
activity: Moja aktywność
|
111
120
|
all: Wszystkie
|
112
121
|
category: Kategoria
|
113
122
|
category_prompt: Wybierz kategorię
|
114
123
|
citizens: Obywatele
|
124
|
+
commented: Skomentowano
|
125
|
+
my_debates: Moje debaty
|
115
126
|
official: Urzędnik
|
116
127
|
origin: Źródło
|
128
|
+
scope: Zakres
|
117
129
|
search: Szukaj
|
130
|
+
state: Status
|
131
|
+
state_values:
|
132
|
+
closed: Zakończone
|
133
|
+
open: Otwarte
|
134
|
+
user_groups: Grupy użytkowników
|
118
135
|
filters_small_view:
|
119
|
-
close_modal: Zamknij
|
136
|
+
close_modal: Zamknij okno
|
120
137
|
filter: Filtr
|
121
138
|
filter_by: Filtruj według
|
122
139
|
unfold: Rozwiń
|
@@ -128,6 +145,12 @@ pl:
|
|
128
145
|
back: Wróć
|
129
146
|
create: Utwórz
|
130
147
|
title: Nowa debata
|
148
|
+
orders:
|
149
|
+
commented: Najczęściej komentowane
|
150
|
+
label: Sortuj debaty według
|
151
|
+
random: Kolejność losowa
|
152
|
+
recent: Najnowsze
|
153
|
+
updated: Ostatnio aktualizowane
|
131
154
|
show:
|
132
155
|
back: Powrót do listy
|
133
156
|
close_debate: Zamknij debatę
|
@@ -139,6 +162,7 @@ pl:
|
|
139
162
|
groups_count: Grupy
|
140
163
|
last_comment_by: Ostatni komentarz autorstwa
|
141
164
|
no_comments_yet: Brak komentarzy
|
165
|
+
open: Otwórz
|
142
166
|
participants_count: Użytkownicy
|
143
167
|
update:
|
144
168
|
invalid: Podczas aktualizowania debaty wystąpił błąd.
|
@@ -187,10 +211,16 @@ pl:
|
|
187
211
|
email_subject: Debaty są teraz dostępne w %{participatory_space_title}
|
188
212
|
notification_title: Możesz teraz tworzyć <a href="%{resource_path}">nowe debaty</a> w <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
189
213
|
debate_closed:
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
214
|
+
affected_user:
|
215
|
+
email_intro: 'Debata "%{resource_title}" została zamknięta. Możesz przeczytać wnioski na jej stronie:'
|
216
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz debatę "%{resource_title}". Możesz przestać ją obserwować po kliknięciu w poprzedni link.
|
217
|
+
email_subject: Debata "%{resource_title}" została zakończona
|
218
|
+
notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> została zamknięta.
|
219
|
+
follower:
|
220
|
+
email_intro: 'Debata "%{resource_title}" została zamknięta. Możesz przeczytać wnioski na jej stronie:'
|
221
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz debatę "%{resource_title}". Możesz przestać ją obserwować po kliknięciu w poprzedni link.
|
222
|
+
email_subject: Debata "%{resource_title}" została zakończona
|
223
|
+
notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> została zamknięta.
|
194
224
|
gamification:
|
195
225
|
badges:
|
196
226
|
commented_debates:
|
data/config/locales/ro-RO.yml
CHANGED
@@ -3,6 +3,8 @@ ro:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categorie
|
6
|
+
closed_at: Închisă la
|
7
|
+
conclusions: Concluzii
|
6
8
|
decidim_category_id: Categorie
|
7
9
|
description: Descriere
|
8
10
|
end_time: Se termină la
|
@@ -12,6 +14,7 @@ ro:
|
|
12
14
|
title: Titlu
|
13
15
|
user_group_id: Creează o dezbatere ca
|
14
16
|
models:
|
17
|
+
decidim/debates/close_debate_event: Dezbatere închisă
|
15
18
|
decidim/debates/create_debate_event: Dezbatere
|
16
19
|
decidim/debates/creation_disabled_event: Dezbateri dezactivate
|
17
20
|
decidim/debates/creation_enabled_event: Dezbateri activate
|
@@ -38,6 +41,7 @@ ro:
|
|
38
41
|
creation_enabled: Crearea de dezbateri de către participanți este activată
|
39
42
|
debates:
|
40
43
|
actions:
|
44
|
+
close: Închide
|
41
45
|
confirm_destroy: Ești sigur?
|
42
46
|
destroy: Ștergere
|
43
47
|
edit: Editare
|
@@ -154,6 +158,15 @@ ro:
|
|
154
158
|
email_outro: Ați primit această notificare deoarece urmăriți %{participatory_space_title}. Puteți înceta să primiți notificări urmând linkul anterior.
|
155
159
|
email_subject: Dezbaterile sunt acum disponibile în %{participatory_space_title}
|
156
160
|
notification_title: Acum poți începe <a href="%{resource_path}">noi dezbateri</a> în <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
161
|
+
debate_closed:
|
162
|
+
affected_user:
|
163
|
+
email_intro: 'Dezbaterea pentru "%{resource_title}” a fost închisă. Puteți citi concluziile pe pagina sa:'
|
164
|
+
email_subject: Dezbaterea pentru "%{resource_title}” a fost închisă
|
165
|
+
notification_title: Dezbaterea pentru <a href="%{resource_path}">%{resource_title}</a> a fost închisă.
|
166
|
+
follower:
|
167
|
+
email_intro: 'Dezbaterea pentru "%{resource_title}” a fost închisă. Puteți citi concluziile pe pagina sa:'
|
168
|
+
email_subject: Dezbaterea pentru "%{resource_title}” a fost închisă
|
169
|
+
notification_title: Dezbaterea pentru <a href="%{resource_path}">%{resource_title}</a> a fost închisă.
|
157
170
|
gamification:
|
158
171
|
badges:
|
159
172
|
commented_debates:
|
data/config/locales/sv.yml
CHANGED
@@ -187,10 +187,16 @@ sv:
|
|
187
187
|
email_subject: Debatter är nu tillgängliga i %{participatory_space_title}
|
188
188
|
notification_title: Nu kan du starta <a href="%{resource_path}">nya debatter</a> i <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
189
189
|
debate_closed:
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
190
|
+
affected_user:
|
191
|
+
email_intro: 'Debatten "%{resource_title}" stängdes. Du kan läsa slutsatserna från dess sida:'
|
192
|
+
email_outro: Du har fått det här meddelandet eftersom du följer debatten "%{resource_title}". Du kan sluta följa det på föregående länk.
|
193
|
+
email_subject: Debatten "%{resource_title}" stängdes
|
194
|
+
notification_title: Debatten <a href="%{resource_path}">%{resource_title}</a> stängdes.
|
195
|
+
follower:
|
196
|
+
email_intro: 'Debatten "%{resource_title}" stängdes. Du kan läsa slutsatserna från dess sida:'
|
197
|
+
email_outro: Du har fått det här meddelandet eftersom du följer debatten "%{resource_title}". Du kan sluta följa det på föregående länk.
|
198
|
+
email_subject: Debatten "%{resource_title}" stängdes
|
199
|
+
notification_title: Debatten <a href="%{resource_path}">%{resource_title}</a> stängdes.
|
194
200
|
gamification:
|
195
201
|
badges:
|
196
202
|
commented_debates:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -65,6 +65,10 @@ tr:
|
|
65
65
|
edit:
|
66
66
|
title: Tartışmayı düzenle
|
67
67
|
update: Tartışmayı güncelle
|
68
|
+
form:
|
69
|
+
debate_type: Tartışma türü
|
70
|
+
finite: Sonlu (Başlangıç ve bitiş saatleri ile)
|
71
|
+
open: Açık (Başlangıç veya bitiş zamanı yok)
|
68
72
|
index:
|
69
73
|
title: Tartışmalar
|
70
74
|
new:
|
@@ -73,6 +77,8 @@ tr:
|
|
73
77
|
update:
|
74
78
|
invalid: Bu tartışmayı güncellerken bir sorun oluştu.
|
75
79
|
success: Tartışma başarıyla güncellendi.
|
80
|
+
exports:
|
81
|
+
comments: Yorumlar
|
76
82
|
models:
|
77
83
|
debate:
|
78
84
|
name: Tartışma
|
@@ -152,6 +158,7 @@ tr:
|
|
152
158
|
groups_count: Gruplar
|
153
159
|
last_comment_by: Son yorum
|
154
160
|
no_comments_yet: Henüz yorum yok
|
161
|
+
open: Açık tartışma
|
155
162
|
participants_count: Katılımcılar
|
156
163
|
update:
|
157
164
|
invalid: Bu tartışmayı güncellerken bir sorun oluştu.
|
@@ -200,10 +207,16 @@ tr:
|
|
200
207
|
email_subject: Tartışmalar artık %{participatory_space_title} içinde mevcut
|
201
208
|
notification_title: Artık <a href="%{participatory_space_url}">%{participatory_space_title} </a> ’de <a href="%{resource_path}"> yeni tartışmalar </a> başlatabilirsiniz
|
202
209
|
debate_closed:
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
210
|
+
affected_user:
|
211
|
+
email_intro: '"%{resource_title}" tartışması kapatıldı. Sonuçları sayfasından okuyabilirsiniz:'
|
212
|
+
email_outro: Bu bildirimi, "%{resource_title}" tartışmasını takip ettiğiniz için aldınız. Önceki bağlantıdan takibini bırakabilirsiniz.
|
213
|
+
email_subject: '"%{resource_title}" tartışması kapatıldı'
|
214
|
+
notification_title: <a href="%{resource_path}">%{resource_title} </a> tartışması kapatıldı.
|
215
|
+
follower:
|
216
|
+
email_intro: '"%{resource_title}" tartışması kapatıldı. Sonuçları sayfasından okuyabilirsiniz:'
|
217
|
+
email_outro: Bu bildirimi, "%{resource_title}" tartışmasını takip ettiğiniz için aldınız. Önceki bağlantıdan takibini bırakabilirsiniz.
|
218
|
+
email_subject: '"%{resource_title}" tartışması kapatıldı'
|
219
|
+
notification_title: <a href="%{resource_path}">%{resource_title} </a> tartışması kapatıldı.
|
207
220
|
gamification:
|
208
221
|
badges:
|
209
222
|
commented_debates:
|
data/config/locales/zh-CN.yml
CHANGED
@@ -195,10 +195,16 @@ zh-CN:
|
|
195
195
|
email_outro: 您收到此通知是因为您正在关注 %{participatory_space_title}。您可以停止收到跟随上一个链接的通知。
|
196
196
|
email_subject: 在 %{participatory_space_title} 中可以使用的辩论
|
197
197
|
debate_closed:
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
198
|
+
affected_user:
|
199
|
+
email_intro: '"%{resource_title}"辩论已经关闭。您可以从其页面阅读结论:'
|
200
|
+
email_outro: 您收到此通知是因为您正在关注"%{resource_title}"的辩论。您可以从上一个链接取消跟进。
|
201
|
+
email_subject: '"%{resource_title}"辩论已关闭'
|
202
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> 辩论已经结束。
|
203
|
+
follower:
|
204
|
+
email_intro: '"%{resource_title}"辩论已经关闭。您可以从其页面阅读结论:'
|
205
|
+
email_outro: 您收到此通知是因为您正在关注"%{resource_title}"的辩论。您可以从上一个链接取消跟进。
|
206
|
+
email_subject: '"%{resource_title}"辩论已关闭'
|
207
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> 辩论已经结束。
|
202
208
|
gamification:
|
203
209
|
badges:
|
204
210
|
commented_debates:
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
class DebateType < Decidim::Api::Types::BaseObject
|
6
|
+
implements Decidim::Core::CategorizableInterface
|
7
|
+
implements Decidim::Comments::CommentableInterface
|
8
|
+
implements Decidim::Core::AuthorableInterface
|
9
|
+
implements Decidim::Core::ScopableInterface
|
10
|
+
|
11
|
+
description "A debate"
|
12
|
+
|
13
|
+
field :id, GraphQL::Types::ID, "The internal ID for this debate", null: false
|
14
|
+
field :title, Decidim::Core::TranslatedFieldType, "The title for this debate", null: true
|
15
|
+
field :description, Decidim::Core::TranslatedFieldType, "The description for this debate", null: true
|
16
|
+
field :instructions, Decidim::Core::TranslatedFieldType, "The instructions for this debate", null: true
|
17
|
+
field :start_time, Decidim::Core::DateTimeType, "The start time for this debate", null: true
|
18
|
+
field :end_time, Decidim::Core::DateTimeType, "The end time for this debate", null: true
|
19
|
+
field :image, GraphQL::Types::String, "The image of this debate", null: true
|
20
|
+
field :created_at, Decidim::Core::DateTimeType, "When this debate was created", null: true
|
21
|
+
field :updated_at, Decidim::Core::DateTimeType, "When this debate was updated", null: true
|
22
|
+
field :information_updates, Decidim::Core::TranslatedFieldType, "The information updates for this debate", null: true
|
23
|
+
field :reference, GraphQL::Types::String, "The reference for this debate", null: true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
class DebatesType < Decidim::Api::Types::BaseObject
|
6
|
+
implements Decidim::Core::ComponentInterface
|
7
|
+
|
8
|
+
graphql_name "Debates"
|
9
|
+
description "A debates component of a participatory space."
|
10
|
+
|
11
|
+
field :debates, Decidim::Debates::DebateType.connection_type, null: true, connection: true
|
12
|
+
|
13
|
+
def debates
|
14
|
+
Debate.where(component: object).includes(:component)
|
15
|
+
end
|
16
|
+
|
17
|
+
field :debate, Decidim::Debates::DebateType, null: true do
|
18
|
+
argument :id, GraphQL::Types::ID, required: true
|
19
|
+
end
|
20
|
+
|
21
|
+
def debate(**args)
|
22
|
+
Debate.where(component: object).find_by(id: args[:id])
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/decidim/debates.rb
CHANGED