decidim-admin 0.27.0 → 0.27.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/commands/decidim/admin/unblock_user.rb +1 -1
- data/app/controllers/decidim/admin/block_user_controller.rb +3 -3
- data/app/controllers/decidim/admin/newsletter_templates_controller.rb +1 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +1 -0
- data/app/forms/decidim/admin/block_user_form.rb +2 -2
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +3 -1
- data/app/forms/decidim/admin/user_group_csv_verification_form.rb +10 -0
- data/app/helpers/decidim/admin/bulk_actions_helper.rb +1 -6
- data/app/models/decidim/admin/fake_newsletter.rb +20 -0
- data/app/packs/stylesheets/decidim/admin/extra/_quill.scss +7 -0
- data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +0 -1
- data/app/permissions/decidim/admin/permissions.rb +32 -2
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/imports/new.html.erb +1 -1
- data/app/views/decidim/admin/moderated_users/index.html.erb +1 -1
- data/app/views/decidim/admin/moderations/index.html.erb +8 -4
- data/app/views/decidim/admin/moderations/reports/index.html.erb +5 -1
- data/config/locales/ar.yml +17 -13
- data/config/locales/ca.yml +26 -6
- data/config/locales/cs.yml +23 -3
- data/config/locales/de.yml +14 -4
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +21 -1
- data/config/locales/es-MX.yml +23 -3
- data/config/locales/es-PY.yml +23 -3
- data/config/locales/es.yml +26 -6
- data/config/locales/eu.yml +42 -11
- data/config/locales/fi-plain.yml +24 -4
- data/config/locales/fi.yml +26 -6
- data/config/locales/fr-CA.yml +23 -3
- data/config/locales/fr.yml +23 -3
- data/config/locales/gl.yml +0 -1
- data/config/locales/gn-PY.yml +1 -0
- data/config/locales/hu.yml +2 -2
- data/config/locales/id-ID.yml +4 -1
- data/config/locales/is-IS.yml +4 -1
- data/config/locales/it.yml +1 -2
- data/config/locales/ja.yml +22 -2
- data/config/locales/ka-GE.yml +1 -0
- data/config/locales/lb.yml +0 -1
- data/config/locales/lo-LA.yml +1 -0
- data/config/locales/lt.yml +1 -2
- data/config/locales/lv.yml +1 -1
- data/config/locales/nl.yml +1 -2
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +1 -1
- data/config/locales/pt-BR.yml +1 -2
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +47 -5
- data/config/locales/ru.yml +4 -1
- data/config/locales/sk.yml +1 -1
- data/config/locales/sr-CS.yml +8 -0
- data/config/locales/sv.yml +23 -3
- data/config/locales/tr-TR.yml +2 -1
- data/config/locales/uk.yml +4 -1
- data/config/locales/zh-CN.yml +1 -1
- data/lib/decidim/admin/engine.rb +11 -1
- data/lib/decidim/admin/test/manage_moderations_examples.rb +79 -1
- data/lib/decidim/admin/version.rb +1 -1
- metadata +12 -10
- data/app/packs/stylesheets/decidim/admin/modules/_import_result.scss +0 -10
data/config/locales/ro-RO.yml
CHANGED
@@ -15,17 +15,24 @@ ro:
|
|
15
15
|
description: Descriere
|
16
16
|
file: Fişier
|
17
17
|
title: Numele fișierului sau al imaginii atașate
|
18
|
+
weight: Poziție
|
18
19
|
attachment_collection:
|
19
20
|
description: Descriere
|
20
21
|
name: Nume
|
22
|
+
weight: Poziție
|
21
23
|
category:
|
22
24
|
description: Descriere
|
23
25
|
name: Nume
|
24
26
|
parent_id: Categoria mamă
|
27
|
+
weight: Poziție
|
25
28
|
component:
|
26
29
|
name: Nume
|
27
30
|
published_at: Publicat în
|
28
|
-
weight:
|
31
|
+
weight: Poziție
|
32
|
+
external_domain:
|
33
|
+
value: Valoare
|
34
|
+
help_section:
|
35
|
+
content: Conținut
|
29
36
|
id: ID
|
30
37
|
import:
|
31
38
|
user_group_id: Creează importuri ca
|
@@ -93,6 +100,9 @@ ro:
|
|
93
100
|
welcome_notification_body: Conținutul notificării de bun venit
|
94
101
|
welcome_notification_subject: Subiectul notificării de bun venit
|
95
102
|
youtube_handler: Responsabil YouTube
|
103
|
+
participatory_space_private_user:
|
104
|
+
email: E-mail
|
105
|
+
name: Nume
|
96
106
|
scope:
|
97
107
|
code: Cod
|
98
108
|
name: Nume
|
@@ -114,22 +124,35 @@ ro:
|
|
114
124
|
show_in_footer: Afișează în subsol
|
115
125
|
slug: URL slug
|
116
126
|
title: Titlu
|
117
|
-
|
127
|
+
topic_id: Subiect
|
128
|
+
weight: Poziție
|
118
129
|
static_page_topic:
|
119
130
|
description: Descriere
|
120
131
|
show_in_footer: Afișează în subsol
|
121
132
|
title: Titlu
|
122
|
-
weight:
|
133
|
+
weight: Poziție
|
123
134
|
user_group_csv_verification:
|
124
135
|
file: Fişier
|
125
136
|
errors:
|
126
137
|
models:
|
138
|
+
newsletter:
|
139
|
+
attributes:
|
140
|
+
base:
|
141
|
+
at_least_one_space: Selectează cel puțin un spațiu participativ
|
127
142
|
organization:
|
128
143
|
attributes:
|
129
144
|
official_img_footer:
|
130
145
|
allowed_file_content_types: Fișier invalid
|
131
146
|
official_img_header:
|
132
147
|
allowed_file_content_types: Fișier invalid
|
148
|
+
participatory_space_private_user_csv_import:
|
149
|
+
attributes:
|
150
|
+
file:
|
151
|
+
malformed: Fişier de import malformat, vă rugăm să citiţi instrucţiunile cu atenţie şi asiguraţi-vă că fişierul este codificat UTF-8.
|
152
|
+
user_group_csv_verification:
|
153
|
+
attributes:
|
154
|
+
file:
|
155
|
+
malformed: Fişier de import malformat, vă rugăm să citiţi instrucţiunile cu atenţie şi asiguraţi-vă că fişierul este codificat UTF-8.
|
133
156
|
new_import:
|
134
157
|
attributes:
|
135
158
|
file:
|
@@ -173,13 +196,15 @@ ro:
|
|
173
196
|
permissions: Drepturi
|
174
197
|
reject: Respinge
|
175
198
|
share: Distribuie
|
199
|
+
user:
|
200
|
+
new: Administrator nou
|
176
201
|
verify: Verifică
|
177
202
|
admin_terms_of_use:
|
178
203
|
accept:
|
179
204
|
error: A apărut o eroare la acceptarea termenilor de utilizare ai administratorului.
|
180
205
|
success: Super! Ai acceptat termenii de utilizare ai administratorului.
|
181
206
|
actions:
|
182
|
-
accept: Sunt de acord cu
|
207
|
+
accept: Sunt de acord cu acești termeni și condiţii
|
183
208
|
are_you_sure: Sigur dorești să refuzi termenii de utilizare ai adiminstratorului?
|
184
209
|
refuse: Refuz termenii
|
185
210
|
title: Acceptă termenii și condițiile de utilizare
|
@@ -836,10 +861,22 @@ ro:
|
|
836
861
|
invalid: A apărut o problemă la citirea fișierului CSV.
|
837
862
|
success: Fișier-ul CSV a fost încărcat cu succes, trimitem un e-mail de invitație participanților. Acest lucru ar putea dura puțin timp.
|
838
863
|
new:
|
864
|
+
destroy:
|
865
|
+
button: Șterge toți participanții privați
|
866
|
+
confirm: Sunteți sigur că doriți să ștergeți toți participanții privați? Această acțiune nu poate fi anulată, și nu îi veți putea recupera.
|
867
|
+
empty: Nu aveți niciun participant privat.
|
868
|
+
explanation: Aveți %{count} participanți privați.
|
869
|
+
title: Ștergere participanți privați
|
839
870
|
explanation: 'Încărcă fişierul tău CSV. Trebuie să aibă două coloane cu e-mail în prima coloană a fișierului și numele în ultima coloană (e-mail, numele) pentru utilizatorii pe care doriţi să îi adăugaţi în spaţiul participativ, fără antet. Evită folosirea caracterelor invalide, cum ar fi `<>?%&^*#@()[]=+:;"{}\<unk> ` în numele utilizatorului.'
|
840
871
|
title: Încarcă fișierul tău CSV
|
841
872
|
upload: Încarcă
|
842
873
|
reminders:
|
874
|
+
create:
|
875
|
+
error: A apărut o eroare la crearea de memento-uri.
|
876
|
+
success:
|
877
|
+
one: "I se va reaminti utilizatorului."
|
878
|
+
few: "Se va reaminti celor %{count} utilizatori."
|
879
|
+
other: "Se va reaminti celor %{count} utilizatori."
|
843
880
|
new:
|
844
881
|
submit: Trimite
|
845
882
|
resource_permissions:
|
@@ -899,6 +936,7 @@ ro:
|
|
899
936
|
gallery:
|
900
937
|
add_images: Adaugă imagini
|
901
938
|
delete_image: Șterge imaginea
|
939
|
+
edit_images: Editare imagini
|
902
940
|
gallery_legend: Adaugă o galerie de imagini (opțional)
|
903
941
|
static_page_topics:
|
904
942
|
create:
|
@@ -959,6 +997,7 @@ ro:
|
|
959
997
|
static_pages: Pagini
|
960
998
|
statistics: Activitate
|
961
999
|
user_groups: Grupuri
|
1000
|
+
users: Administratori
|
962
1001
|
user_group:
|
963
1002
|
csv_verify:
|
964
1003
|
invalid: A apărut o problemă la citirea fișierului CSV.
|
@@ -994,6 +1033,7 @@ ro:
|
|
994
1033
|
role: Rol
|
995
1034
|
new:
|
996
1035
|
create: Invită
|
1036
|
+
title: Invită un administrator nou
|
997
1037
|
users_statistics:
|
998
1038
|
users_count:
|
999
1039
|
admins: Administratori
|
@@ -1041,9 +1081,11 @@ ro:
|
|
1041
1081
|
moderation:
|
1042
1082
|
fields:
|
1043
1083
|
created_at: Data creării
|
1084
|
+
deleted_resource: Resursă ștersă
|
1044
1085
|
hidden_at: Ascuns la
|
1045
1086
|
participatory_space: Spațiu participativ
|
1046
1087
|
report_count: Număr
|
1088
|
+
reportable_id: ID
|
1047
1089
|
reportable_type: Tip
|
1048
1090
|
reported_content_url: URL-ul conținutului raportat
|
1049
1091
|
reports: Rapoarte
|
@@ -1060,7 +1102,7 @@ ro:
|
|
1060
1102
|
decidim:
|
1061
1103
|
admin:
|
1062
1104
|
global_moderations:
|
1063
|
-
title:
|
1105
|
+
title: Moderări globale
|
1064
1106
|
newsletters:
|
1065
1107
|
title: Buletine informative
|
1066
1108
|
settings:
|
data/config/locales/ru.yml
CHANGED
@@ -501,6 +501,9 @@ ru:
|
|
501
501
|
edit:
|
502
502
|
active_content_blocks: Блоки действующего содержимого
|
503
503
|
inactive_content_blocks: Блоки недействующего содержимого
|
504
|
+
organization_homepage_content_blocks:
|
505
|
+
edit:
|
506
|
+
update: Обновить
|
504
507
|
participatory_space_private_users:
|
505
508
|
create:
|
506
509
|
error: При попытке добавить частного участника в это пространство соучастия произошла ошибка.
|
@@ -632,10 +635,10 @@ ru:
|
|
632
635
|
models:
|
633
636
|
moderation:
|
634
637
|
fields:
|
638
|
+
created_at: Дата создания
|
635
639
|
hidden_at: 'Скрыто:'
|
636
640
|
report_count: Количество
|
637
641
|
reported_content_url: Веб-адрес обжалованного содержимого
|
638
|
-
reports: Жалобы
|
639
642
|
visit_url: Посетите веб-адрес
|
640
643
|
errors:
|
641
644
|
messages:
|
data/config/locales/sk.yml
CHANGED
@@ -754,10 +754,10 @@ sk:
|
|
754
754
|
models:
|
755
755
|
moderation:
|
756
756
|
fields:
|
757
|
+
created_at: Dátum vytvorenia
|
757
758
|
hidden_at: Skryté
|
758
759
|
report_count: Počet
|
759
760
|
reported_content_url: Nahlásiť URL obsahu
|
760
|
-
reports: Nahlásenia
|
761
761
|
visit_url: Navštíviť URL
|
762
762
|
errors:
|
763
763
|
messages:
|
data/config/locales/sr-CS.yml
CHANGED
@@ -556,6 +556,9 @@ sr:
|
|
556
556
|
images:
|
557
557
|
preview: Pregled
|
558
558
|
omnipresent_banner_appearance_title: Izmeni sveprisutni baner
|
559
|
+
organization_homepage_content_blocks:
|
560
|
+
edit:
|
561
|
+
update: Ažuriraj
|
559
562
|
shared:
|
560
563
|
gallery:
|
561
564
|
add_images: Dodaj slike
|
@@ -570,3 +573,8 @@ sr:
|
|
570
573
|
last_month: Poslednji mesec
|
571
574
|
last_week: Poslednje nedelje
|
572
575
|
no_users_count_statistics_yet: Još nema statistike o broju korisnika
|
576
|
+
moderations:
|
577
|
+
models:
|
578
|
+
moderation:
|
579
|
+
fields:
|
580
|
+
created_at: Datum kreiranja
|
data/config/locales/sv.yml
CHANGED
@@ -15,17 +15,24 @@ sv:
|
|
15
15
|
description: Beskrivning
|
16
16
|
file: Fil
|
17
17
|
title: Bilaga eller bildnamn
|
18
|
+
weight: Ordning
|
18
19
|
attachment_collection:
|
19
20
|
description: Beskrivning
|
20
21
|
name: Namn
|
22
|
+
weight: Ordning
|
21
23
|
category:
|
22
24
|
description: Beskrivning
|
23
25
|
name: Namn
|
24
26
|
parent_id: Överordnad
|
27
|
+
weight: Ordning
|
25
28
|
component:
|
26
29
|
name: Namn
|
27
30
|
published_at: Publicerad
|
28
|
-
weight:
|
31
|
+
weight: Ordning
|
32
|
+
external_domain:
|
33
|
+
value: Värde
|
34
|
+
help_section:
|
35
|
+
content: Innehåll
|
29
36
|
id: ID
|
30
37
|
import:
|
31
38
|
user_group_id: Skapa import som
|
@@ -93,6 +100,9 @@ sv:
|
|
93
100
|
welcome_notification_body: Välkomstmeddelandets brödtext
|
94
101
|
welcome_notification_subject: Välkomstmeddelandets ämnesrad
|
95
102
|
youtube_handler: YouTube-hanterare
|
103
|
+
participatory_space_private_user:
|
104
|
+
email: E-post
|
105
|
+
name: Namn
|
96
106
|
scope:
|
97
107
|
code: Kod
|
98
108
|
name: Namn
|
@@ -114,12 +124,13 @@ sv:
|
|
114
124
|
show_in_footer: Visa i sidfoten
|
115
125
|
slug: URL slug
|
116
126
|
title: Titel
|
117
|
-
|
127
|
+
topic_id: Ämne
|
128
|
+
weight: Ordning
|
118
129
|
static_page_topic:
|
119
130
|
description: Beskrivning
|
120
131
|
show_in_footer: Visa i sidfoten
|
121
132
|
title: Titel
|
122
|
-
weight:
|
133
|
+
weight: Ordning
|
123
134
|
user_group_csv_verification:
|
124
135
|
file: Fil
|
125
136
|
errors:
|
@@ -134,6 +145,14 @@ sv:
|
|
134
145
|
allowed_file_content_types: Ogiltig bildfil
|
135
146
|
official_img_header:
|
136
147
|
allowed_file_content_types: Ogiltig bildfil
|
148
|
+
participatory_space_private_user_csv_import:
|
149
|
+
attributes:
|
150
|
+
file:
|
151
|
+
malformed: Fel format, läs igenom instruktionerna noga och se till att filen är UTF-8 kodad.
|
152
|
+
user_group_csv_verification:
|
153
|
+
attributes:
|
154
|
+
file:
|
155
|
+
malformed: Fel format, läs igenom instruktionerna noga och se till att filen är UTF-8 kodad.
|
137
156
|
new_import:
|
138
157
|
attributes:
|
139
158
|
file:
|
@@ -1057,6 +1076,7 @@ sv:
|
|
1057
1076
|
moderation:
|
1058
1077
|
fields:
|
1059
1078
|
created_at: Skapandedatum
|
1079
|
+
deleted_resource: Borttagen resurs
|
1060
1080
|
hidden_at: Dold
|
1061
1081
|
participatory_space: Deltagarutrymme
|
1062
1082
|
report_count: Antal
|
data/config/locales/tr-TR.yml
CHANGED
@@ -78,6 +78,8 @@ tr:
|
|
78
78
|
welcome_notification_body: Karşılama bildirimi gövdesi
|
79
79
|
welcome_notification_subject: Karşılama bildirimi konusu
|
80
80
|
youtube_handler: YouTube işleyici
|
81
|
+
participatory_space_private_user:
|
82
|
+
name: Adı
|
81
83
|
scope:
|
82
84
|
code: kod
|
83
85
|
name: isim
|
@@ -144,7 +146,6 @@ tr:
|
|
144
146
|
error: Yönetici kullanım şartlarını kabul ederken bir hata oluştu.
|
145
147
|
success: Harika! Yönetici kullanım şartlarını kabul ettiniz.
|
146
148
|
actions:
|
147
|
-
accept: Aşağıdaki şartları kabul ediyorum
|
148
149
|
refuse: Yönetici şartlarını reddedin
|
149
150
|
title: Kullanım şartlarını ve koşullarını kabul edin
|
150
151
|
required_review:
|
data/config/locales/uk.yml
CHANGED
@@ -457,6 +457,9 @@ uk:
|
|
457
457
|
edit:
|
458
458
|
active_content_blocks: Блоки діючого вмісту
|
459
459
|
inactive_content_blocks: Блоки недіючого вмісту
|
460
|
+
organization_homepage_content_blocks:
|
461
|
+
edit:
|
462
|
+
update: Оновити
|
460
463
|
participatory_space_private_users:
|
461
464
|
create:
|
462
465
|
error: При спробі додати приватного учасника до цього простору співучасті сталася помилка.
|
@@ -578,10 +581,10 @@ uk:
|
|
578
581
|
models:
|
579
582
|
moderation:
|
580
583
|
fields:
|
584
|
+
created_at: Дата створення
|
581
585
|
hidden_at: 'Приховано:'
|
582
586
|
report_count: Кількість
|
583
587
|
reported_content_url: Веб-адреса оскарженого вмісту
|
584
|
-
reports: Скарги
|
585
588
|
visit_url: Відвідайте веб-адресу
|
586
589
|
errors:
|
587
590
|
messages:
|
data/config/locales/zh-CN.yml
CHANGED
data/lib/decidim/admin/engine.rb
CHANGED
@@ -173,7 +173,10 @@ module Decidim
|
|
173
173
|
decidim_admin.root_path,
|
174
174
|
icon_name: "dashboard",
|
175
175
|
position: 1,
|
176
|
-
active: [
|
176
|
+
active: [%w(
|
177
|
+
decidim/admin/dashboard
|
178
|
+
decidim/admin/metrics
|
179
|
+
), []]
|
177
180
|
|
178
181
|
menu.add_item :moderations,
|
179
182
|
I18n.t("menu.moderation", scope: "decidim.admin"),
|
@@ -208,10 +211,15 @@ module Decidim
|
|
208
211
|
decidim/admin/user_groups_csv_verifications
|
209
212
|
decidim/admin/officializations
|
210
213
|
decidim/admin/impersonatable_users
|
214
|
+
decidim/admin/conflicts
|
211
215
|
decidim/admin/moderated_users
|
212
216
|
decidim/admin/managed_users/impersonation_logs
|
213
217
|
decidim/admin/managed_users/promotions
|
214
218
|
decidim/admin/authorization_workflows
|
219
|
+
decidim/verifications/id_documents/admin/pending_authorizations
|
220
|
+
decidim/verifications/id_documents/admin/config
|
221
|
+
decidim/verifications/postal_letter/admin/pending_authorizations
|
222
|
+
decidim/verifications/csv_census/admin/census
|
215
223
|
), []],
|
216
224
|
if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
|
217
225
|
|
@@ -238,6 +246,8 @@ module Decidim
|
|
238
246
|
decidim/admin/scopes
|
239
247
|
decidim/admin/scope_types
|
240
248
|
decidim/admin/areas decidim/admin/area_types
|
249
|
+
decidim/admin/help_sections
|
250
|
+
decidim/admin/organization_external_domain_whitelist
|
241
251
|
),
|
242
252
|
[]
|
243
253
|
],
|
@@ -136,14 +136,53 @@ shared_examples "manage moderations" do
|
|
136
136
|
expect(page).to have_no_selector("tr[data-id=\"#{moderation.id}\"]")
|
137
137
|
end
|
138
138
|
end
|
139
|
+
|
140
|
+
context "when the user changes language" do
|
141
|
+
around do |example|
|
142
|
+
previous_backend = I18n.backend
|
143
|
+
I18n.backend = I18n::Backend::Simple.new
|
144
|
+
example.run
|
145
|
+
I18n.backend = previous_backend
|
146
|
+
end
|
147
|
+
|
148
|
+
before do
|
149
|
+
I18n.backend.store_translations(
|
150
|
+
:ca,
|
151
|
+
activerecord: {
|
152
|
+
models: {
|
153
|
+
moderation.reportable.class.name.underscore.to_sym => {
|
154
|
+
one: "Objecte informable",
|
155
|
+
other: "Objectes informables"
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
)
|
160
|
+
|
161
|
+
within_language_menu do
|
162
|
+
click_link "Català"
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
it "renders the reportable types in the selected language" do
|
167
|
+
within "tr[data-id=\"#{moderation.id}\"]" do
|
168
|
+
expect(page).to have_content("Objecte informable")
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
139
172
|
end
|
140
173
|
|
141
174
|
context "when listing hidden resources" do
|
142
|
-
|
175
|
+
before do
|
143
176
|
within ".card-title" do
|
144
177
|
click_link "Hidden"
|
145
178
|
end
|
179
|
+
end
|
146
180
|
|
181
|
+
it "user can't unreport them" do
|
182
|
+
expect(page).not_to have_css(".action-icon--unreport")
|
183
|
+
end
|
184
|
+
|
185
|
+
it "user can review them" do
|
147
186
|
hidden_moderations.each do |moderation|
|
148
187
|
within "tr[data-id=\"#{moderation.id}\"]" do
|
149
188
|
expect(page).to have_css("a[href='#{moderation.reportable.reported_content_url}']")
|
@@ -151,4 +190,43 @@ shared_examples "manage moderations" do
|
|
151
190
|
end
|
152
191
|
end
|
153
192
|
end
|
193
|
+
|
194
|
+
context "when listing comments for deleted resources" do
|
195
|
+
let(:comments) do
|
196
|
+
reportables.first(reportables.length - 1).map do |resource|
|
197
|
+
create(:comment, commentable: resource)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
let!(:moderations) do
|
201
|
+
comments.map do |reportable|
|
202
|
+
space = reportable.is_a?(Decidim::Participable) ? reportable : reportable.participatory_space
|
203
|
+
moderation = create(:moderation, reportable: reportable, report_count: 1, participatory_space: space, reported_content: reportable.reported_searchable_content_text)
|
204
|
+
create(:report, moderation: moderation)
|
205
|
+
|
206
|
+
reportable.root_commentable.destroy!
|
207
|
+
reportable.reload
|
208
|
+
|
209
|
+
moderation
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
it "user can review them" do
|
214
|
+
moderations.each do |moderation|
|
215
|
+
within "tr[data-id=\"#{moderation.id}\"]" do
|
216
|
+
expect(page).to have_content "Deleted resource"
|
217
|
+
expect(page).to have_content "Spam"
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
it "user can hide them" do
|
223
|
+
moderation_id = moderations.first.id
|
224
|
+
within "tr[data-id=\"#{moderation_id}\"]" do
|
225
|
+
click_link "Hide"
|
226
|
+
end
|
227
|
+
|
228
|
+
expect(page).to have_admin_callout("Resource successfully hidden")
|
229
|
+
expect(page).not_to have_selector("tr[data-id=\"#{moderation_id}\"]")
|
230
|
+
end
|
231
|
+
end
|
154
232
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.27.
|
35
|
+
version: 0.27.2
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.27.
|
42
|
+
version: 0.27.2
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: devise
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,28 +88,28 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.27.
|
91
|
+
version: 0.27.2
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.27.
|
98
|
+
version: 0.27.2
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-participatory_processes
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.27.
|
105
|
+
version: 0.27.2
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - '='
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.27.
|
112
|
+
version: 0.27.2
|
113
113
|
description: Organization administration to manage a single organization.
|
114
114
|
email:
|
115
115
|
- josepjaume@gmail.com
|
@@ -387,7 +387,6 @@ files:
|
|
387
387
|
- app/packs/stylesheets/decidim/admin/modules/_filters.scss
|
388
388
|
- app/packs/stylesheets/decidim/admin/modules/_forms.scss
|
389
389
|
- app/packs/stylesheets/decidim/admin/modules/_icons.scss
|
390
|
-
- app/packs/stylesheets/decidim/admin/modules/_import_result.scss
|
391
390
|
- app/packs/stylesheets/decidim/admin/modules/_layout.scss
|
392
391
|
- app/packs/stylesheets/decidim/admin/modules/_loading-spinner.scss
|
393
392
|
- app/packs/stylesheets/decidim/admin/modules/_main-nav.scss
|
@@ -612,6 +611,7 @@ files:
|
|
612
611
|
- config/locales/fr.yml
|
613
612
|
- config/locales/ga-IE.yml
|
614
613
|
- config/locales/gl.yml
|
614
|
+
- config/locales/gn-PY.yml
|
615
615
|
- config/locales/hr-HR.yml
|
616
616
|
- config/locales/hr.yml
|
617
617
|
- config/locales/hu.yml
|
@@ -620,10 +620,12 @@ files:
|
|
620
620
|
- config/locales/is.yml
|
621
621
|
- config/locales/it.yml
|
622
622
|
- config/locales/ja.yml
|
623
|
+
- config/locales/ka-GE.yml
|
623
624
|
- config/locales/ko-KR.yml
|
624
625
|
- config/locales/ko.yml
|
625
626
|
- config/locales/lb-LU.yml
|
626
627
|
- config/locales/lb.yml
|
628
|
+
- config/locales/lo-LA.yml
|
627
629
|
- config/locales/lt-LT.yml
|
628
630
|
- config/locales/lt.yml
|
629
631
|
- config/locales/lv.yml
|
@@ -712,7 +714,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
712
714
|
- !ruby/object:Gem::Version
|
713
715
|
version: '0'
|
714
716
|
requirements: []
|
715
|
-
rubygems_version: 3.
|
717
|
+
rubygems_version: 3.3.7
|
716
718
|
signing_key:
|
717
719
|
specification_version: 4
|
718
720
|
summary: Decidim organization administration
|