decidim-admin 0.26.2 → 0.26.4

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/decidim/admin/organization_controller.rb +4 -3
  3. data/app/controllers/decidim/admin/resource_permissions_controller.rb +1 -1
  4. data/app/helpers/decidim/admin/settings_helper.rb +57 -11
  5. data/app/packs/entrypoints/decidim_admin.js +5 -1
  6. data/app/packs/src/decidim/admin/choose_language.js +11 -9
  7. data/app/packs/src/decidim/admin/dynamic_fields.component.js +1 -0
  8. data/app/packs/stylesheets/decidim/admin/modules/_forms.scss +6 -0
  9. data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +0 -1
  10. data/app/permissions/decidim/admin/permissions.rb +15 -2
  11. data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
  12. data/app/views/decidim/admin/imports/new.html.erb +1 -1
  13. data/app/views/decidim/admin/moderations/index.html.erb +8 -4
  14. data/app/views/decidim/admin/moderations/reports/index.html.erb +5 -1
  15. data/app/views/decidim/admin/resource_permissions/edit.html.erb +1 -1
  16. data/config/locales/ar.yml +1 -2
  17. data/config/locales/ca.yml +3 -2
  18. data/config/locales/cs.yml +15 -15
  19. data/config/locales/de.yml +0 -1
  20. data/config/locales/el.yml +0 -1
  21. data/config/locales/en.yml +2 -1
  22. data/config/locales/es-MX.yml +3 -2
  23. data/config/locales/es-PY.yml +3 -2
  24. data/config/locales/es.yml +3 -2
  25. data/config/locales/eu.yml +2 -2
  26. data/config/locales/fi-plain.yml +3 -2
  27. data/config/locales/fi.yml +3 -2
  28. data/config/locales/fr-CA.yml +3 -2
  29. data/config/locales/fr.yml +17 -16
  30. data/config/locales/gl.yml +0 -1
  31. data/config/locales/gn-PY.yml +1 -0
  32. data/config/locales/hu.yml +186 -3
  33. data/config/locales/id-ID.yml +3 -0
  34. data/config/locales/it.yml +0 -1
  35. data/config/locales/ja.yml +1 -1
  36. data/config/locales/lb.yml +0 -1
  37. data/config/locales/lo-LA.yml +1 -0
  38. data/config/locales/lt.yml +973 -0
  39. data/config/locales/nl.yml +61 -2
  40. data/config/locales/no.yml +5 -1
  41. data/config/locales/oc-FR.yml +1 -0
  42. data/config/locales/pl.yml +60 -3
  43. data/config/locales/pt-BR.yml +0 -1
  44. data/config/locales/pt.yml +0 -1
  45. data/config/locales/ro-RO.yml +6 -1
  46. data/config/locales/sv.yml +1 -1
  47. data/config/locales/tr-TR.yml +0 -1
  48. data/lib/decidim/admin/engine.rb +11 -1
  49. data/lib/decidim/admin/test/manage_moderations_examples.rb +72 -0
  50. data/lib/decidim/admin/version.rb +1 -1
  51. metadata +11 -9
  52. data/app/packs/stylesheets/decidim/admin/modules/_import_result.scss +0 -10
@@ -45,7 +45,7 @@ nl:
45
45
  enable_omnipresent_banner: Toon permanente header
46
46
  enable_participatory_space_filters: Schakel filters in voor de participatieve ruimte
47
47
  facebook_handler: Facebook naam
48
- favicon: Pictogram
48
+ favicon: Favicon
49
49
  force_authentication: Verplicht aanmelden
50
50
  force_users_to_authenticate_before_access_organization: Verplicht gebruikers om zich aan te melden voor toegang tot de organisatie
51
51
  from: E-mailadres afzender
@@ -63,6 +63,9 @@ nl:
63
63
  host: Host
64
64
  instagram_handler: Instagram gebruikersnaam
65
65
  logo: Logo
66
+ machine_translation_display_priority: Voorrang weergave machinevertaling
67
+ machine_translation_display_priority_original: Oorspronkelijke tekst eerst
68
+ machine_translation_display_priority_translation: Vertaalde tekst eerst
66
69
  name: Naam
67
70
  official_img_footer: Officieel logo voettekst
68
71
  official_img_header: Officieel logo header
@@ -100,6 +103,8 @@ nl:
100
103
  name: Naam
101
104
  organization: Organisatie
102
105
  plural: Meervoud
106
+ settings:
107
+ scope_id: Scope
103
108
  static_page:
104
109
  allow_public_access: Toegang zonder authenticatie toestaan
105
110
  changed_notably: Er zijn merkbare veranderingen geweest.
@@ -118,6 +123,10 @@ nl:
118
123
  file: Bestand
119
124
  errors:
120
125
  models:
126
+ newsletter:
127
+ attributes:
128
+ base:
129
+ at_least_one_space: Selecteer minstens één participatieve ruimte
121
130
  organization:
122
131
  attributes:
123
132
  official_img_footer:
@@ -166,6 +175,7 @@ nl:
166
175
  per_page: Per pagina
167
176
  permissions: Permissies
168
177
  reject: Weigeren
178
+ share: Deel
169
179
  user:
170
180
  new: Nieuwe gebruiker
171
181
  verify: Verifiëren
@@ -174,7 +184,6 @@ nl:
174
184
  error: Er is een fout opgetreden bij het accepteren van de admin gebruiksvoorwaarden.
175
185
  success: Geweldig! Je hebt de admin gebruiksvoorwaarden geaccepteerd.
176
186
  actions:
177
- accept: Ik ga akkoord met de volgende voorwaarden
178
187
  are_you_sure: Weet je zeker dat je de Admin gebruiksvoorwaarden wil resetten?
179
188
  refuse: Weiger de admin gebruiksvoorwaarden
180
189
  title: Ga akkoord met de gebruiksvoorwaarden
@@ -315,7 +324,20 @@ nl:
315
324
  error: Er is een fout opgetreden bij het bijwerken van dit onderdeel.
316
325
  success: Het onderdeel is met succes bijgewerkt.
317
326
  conflicts:
327
+ attempts: Pogingen
328
+ 'false': 'Nee'
329
+ managed_user_name: Beheerde gebruiker
330
+ solved: Opgelost
318
331
  title: Controle conflicten
332
+ transfer:
333
+ email: E-mail
334
+ error: Er is een probleem opgetreden bij het overbrengen van de huidige deelnemer naar een beheerde deelnemer.
335
+ name: Naam
336
+ reason: Reden
337
+ success: De overdracht is met succes voltooid.
338
+ title: Overdracht
339
+ 'true': 'Ja'
340
+ user_name: Gebruiker
319
341
  dashboard:
320
342
  show:
321
343
  view_more_logs: Bekijk meer logs
@@ -507,8 +529,10 @@ nl:
507
529
  help_sections: Helpsecties
508
530
  homepage: Startpagina
509
531
  impersonations: Zich voordoen als
532
+ moderation: Algemene moderatie
510
533
  newsletters: Nieuwsbrieven
511
534
  participants: Deelnemers
535
+ reported_users: Gerapporteerde gebruikers
512
536
  scope_types: Scope types
513
537
  scopes: Scopes
514
538
  settings: Instellingen
@@ -564,6 +588,14 @@ nl:
564
588
  fields:
565
589
  name: Naam
566
590
  plural: Meervoud
591
+ share_token:
592
+ fields:
593
+ created_at: Aangemaakt op
594
+ expires_at: Vervalt op
595
+ last_used_at: Laatste keer gebruikt
596
+ times_used: Aantal keren gebruikt
597
+ token: Token
598
+ user: Aangemaakt door
567
599
  static_page:
568
600
  fields:
569
601
  created_at: Aangemaakt op
@@ -589,8 +621,25 @@ nl:
589
621
  state: Staat
590
622
  users_count: Aantal deelnemers
591
623
  moderated_users:
624
+ index:
625
+ actions:
626
+ block: Gebruiker blokkeren
627
+ title: Acties
628
+ unblock: Deblokkeer gebruiker
629
+ unreport: Niet langer rapporteren
630
+ name: Naam
631
+ nickname: Bijnaam
632
+ reason: Reden
633
+ reports: Aantal rapporteringen
634
+ title: Gerapporteerde gebruikers weergeven
635
+ report:
636
+ reasons:
637
+ does_not_belong: Hoort niet bij
638
+ offensive: Beledigend
639
+ spam: Spam
592
640
  tabs:
593
641
  blocked: Geblokkeerd
642
+ unblocked: Niet geblokkeerd
594
643
  moderations:
595
644
  index:
596
645
  title: Moderaties
@@ -697,6 +746,7 @@ nl:
697
746
  officialize: "Valideren\n"
698
747
  officialized: Gevalideerd
699
748
  reofficialize: Hervalideren
749
+ reports: Rapporten
700
750
  show_email: Toon e-mailadres
701
751
  status: status
702
752
  unblock: Deblokkeer gebruiker
@@ -784,6 +834,7 @@ nl:
784
834
  invalid: Er is een fout opgetreden bij het lezen van het CSV-bestand.
785
835
  success: Het CSV-bestand is succesvol geüploaded. We sturen een uitnodigingsmail naar de deelnemers. Dit kan even duren.
786
836
  new:
837
+ explanation: 'Upload het CSV-bestand zonder headers. Het moet uit twee kolommen bestaan, met het e-mailadres in de eerste kolom en de naam in de laatste kolom van de gebruikers die je wil toevoegen aan de participatieve ruimte (e-mail, naam). Vermijd tekens als `<>?%&^*#@()[]=+:;"{}\|` in de namen.'
787
838
  title: Upload het CSV-bestand
788
839
  upload: Upload
789
840
  resource_permissions:
@@ -834,6 +885,11 @@ nl:
834
885
  share: Deel
835
886
  destroy:
836
887
  error: Er is een fout opgetreden bij het vernietigen van de token.
888
+ success: Token met succes verwijderd.
889
+ share_tokens:
890
+ empty: Er zijn geen actieve tokens
891
+ help: Deze tokens worden gebruikt om deze niet-gepubliceerde bron openbaar te delen met alle gebruikers. Ze worden verborgen wanneer de bron is gepubliceerd. Klik op het pictogram “delen” van het token om de deelbare URL te bezoeken.
892
+ title: Tokens delen
837
893
  shared:
838
894
  gallery:
839
895
  add_images: Afbeeldingen toevoegen
@@ -891,6 +947,7 @@ nl:
891
947
  impersonatable_users: Beheersbare deelnemers
892
948
  impersonations: Beheer van deelnemers
893
949
  metrics: Cijfers
950
+ panel: Admin
894
951
  participants: Deelnemers
895
952
  scope_types: Scope types
896
953
  scopes: Scopes
@@ -950,6 +1007,7 @@ nl:
950
1007
  metrics:
951
1008
  blocked_users:
952
1009
  object: geblokkeerde gebruikers
1010
+ title: Geblokkeerde gebruikers
953
1011
  reported_users:
954
1012
  object: gerapporteerde gebruikers
955
1013
  title: Gerapporteerde gebruikers
@@ -983,6 +1041,7 @@ nl:
983
1041
  hidden_at: Verborgen op
984
1042
  participatory_space: Participatieve ruimte
985
1043
  report_count: Aantal
1044
+ reportable_id: ID
986
1045
  reportable_type: Type
987
1046
  reported_content_url: Gerapporteerde inhouds-URL
988
1047
  reports: Meldingen
@@ -123,6 +123,10 @@
123
123
  file: Fil
124
124
  errors:
125
125
  models:
126
+ newsletter:
127
+ attributes:
128
+ base:
129
+ at_least_one_space: Velg minst et rom
126
130
  organization:
127
131
  attributes:
128
132
  official_img_footer:
@@ -180,7 +184,6 @@
180
184
  error: Det oppstod et problem med å godkjenne administrator vilkårene.
181
185
  success: Flott! Du har godtatt administratorenes vilkår for bruk.
182
186
  actions:
183
- accept: Jeg godtar følgende vilkår
184
187
  are_you_sure: Er du sikker på at du vil avslå administratorvilkårene for bruk?
185
188
  refuse: Avslå administratorvilkårene
186
189
  title: Godta vilkårene for bruk
@@ -1038,6 +1041,7 @@
1038
1041
  hidden_at: Skjult på
1039
1042
  participatory_space: Deltakerrom
1040
1043
  report_count: Antall
1044
+ reportable_id: ID
1041
1045
  reportable_type: Type
1042
1046
  reported_content_url: Rapportert innholds URL
1043
1047
  reports: Rapporter
@@ -0,0 +1 @@
1
+ oc:
@@ -184,11 +184,12 @@ pl:
184
184
  error: Wystąpił błąd podczas akceptowania warunków użytkowania dla administratorów.
185
185
  success: Świetnie! Zaakceptowano warunki użytkowania dla administratorów.
186
186
  actions:
187
- accept: Zgadzam się z warunkami użytkowania
187
+ are_you_sure: Czy na pewno nie wyrażasz zgody na warunki użytkowania dla administratorów?
188
188
  refuse: Nie akceptuję warunków dla administratorów
189
189
  title: Akceptuję warunki użytkowania
190
190
  required_review:
191
191
  alert: 'Wymagane: Zapoznaj się z warunkami użytkowania dla administratorów'
192
+ callout: Poświęć chwilę, aby zapoznać się z Warunkami użytkowania dla administratorów. W przeciwnym razie nie uzyskasz dostępu do administrowania platformą.
192
193
  cta: Zapoznaj się teraz.
193
194
  title: Warunki użytkowania dla administratorów
194
195
  area_types:
@@ -263,6 +264,7 @@ pl:
263
264
  block_user:
264
265
  new:
265
266
  action: Zablokuj konto i wyślij uzasadnienie
267
+ description: Blokowanie użytkownika sprawi, że jego konto nie będzie użyteczne. Możesz podać w uzasadnieniu wszelkie wytyczne dotyczące sposobu odblokowania użytkownika.
266
268
  justification: Uzasadnienie
267
269
  title: Zablokuj użytkownika %{name}
268
270
  categories:
@@ -325,6 +327,7 @@ pl:
325
327
  'false': 'Nie'
326
328
  managed_user_name: Zarządzany użytkownik
327
329
  solved: Rozwiązane
330
+ title: Konflikty weryfikacji
328
331
  transfer:
329
332
  email: Adres e-mail
330
333
  error: Podczas transferu bieżącego użytkownika do zarządzanego użytkownika wystąpił błąd.
@@ -343,6 +346,7 @@ pl:
343
346
  domain_too_short: Domena jest zbyt krótka
344
347
  update:
345
348
  error: Nie udało się zaktualizować białej listy domen
349
+ success: Biała lista domen pomyślnie zaktualizowana
346
350
  exports:
347
351
  export_as: "%{name} jako %{export_format}"
348
352
  formats:
@@ -361,9 +365,17 @@ pl:
361
365
  'false': 'Nie'
362
366
  'true': 'Tak'
363
367
  last_sign_in_at_present:
368
+ label: Zawsze zalogowany
364
369
  values:
365
370
  'false': 'Nie'
366
371
  'true': 'Tak'
372
+ moderated_users:
373
+ reports_reason_eq:
374
+ label: Powód zgłoszenia
375
+ values:
376
+ does_not_belong: Nie należy
377
+ offensive: Ofensywny
378
+ spam: Spam
367
379
  moderations:
368
380
  reportable_type_string_eq:
369
381
  label: Typ
@@ -398,9 +410,11 @@ pl:
398
410
  search_label: Szukaj
399
411
  search_placeholder:
400
412
  name_or_nickname_or_email_cont: Przeszukaj %{collection} według adresu e-mail, nazwiska lub nazwy użytkownika.
413
+ report_count_eq: Licznik raportów
401
414
  reported_id_string_or_reported_content_cont: Przeszukaj %{collection} według identyfikatora lub treści zgłoszenia.
402
415
  title_cont: Przeszukaj %{collection} według tytułu.
403
416
  user_name_or_user_email_cont: Przeszukaj %{collection} według nazwy lub e-maila.
417
+ user_name_or_user_nickname_or_user_email_cont: Szukaj %{collection} według adresu e-mail, nazwy lub pseudonimu.
404
418
  state_eq:
405
419
  label: Stan
406
420
  values:
@@ -454,7 +468,38 @@ pl:
454
468
  impersonate_new_managed_user: Zarządzaj nowym uczestnikiem
455
469
  imports:
456
470
  and: i
471
+ data_errors:
472
+ duplicate_headers:
473
+ detail: Proszę sprawdzić, czy plik zawiera wymagane kolumny lub nagłówki tylko raz.
474
+ message:
475
+ one: Duplikuj kolumnę %{columns}.
476
+ few: Duplikuj kolumny %{columns}.
477
+ many: Duplikuj kolumny %{columns}.
478
+ other: Duplikuj kolumny %{columns}.
479
+ invalid_indexes:
480
+ lines:
481
+ detail: Sprawdź, czy te dane są sformatowane poprawnie i zawierają prawidłowe rekordy.
482
+ message:
483
+ one: Znaleziono błąd w pliku importu. linia %{indexes}.
484
+ few: Znaleziono błąd w pliku importu. linie %{indexes}.
485
+ many: Znaleziono błąd w pliku importu. linie %{indexes}.
486
+ other: Znaleziono błędy w pliku importu w liniach %{indexes}.
487
+ records:
488
+ detail: Sprawdź, czy te rekordy są sformatowane poprawnie i zawierają prawidłowe rekordy.
489
+ message:
490
+ one: Znaleziono błąd w pliku importu dla rekordów o numerach porządkowych %{indexes}.
491
+ few: Znaleziono błąd w pliku importu dla rekordów o numerach porządkowych %{indexes}.
492
+ many: Znaleziono błąd w pliku importu dla rekordów o numerach porządkowych %{indexes}.
493
+ other: Znaleziono błędy w pliku importu dla rekordów o numerach porządkowych %{indexes}.
494
+ missing_headers:
495
+ detail: Proszę sprawdzić, czy plik zawiera wymagane kolumny.
496
+ message:
497
+ one: Brakująca kolumna %{columns}.
498
+ few: Brakujące kolumny %{columns}.
499
+ many: Brakujące kolumny %{columns}.
500
+ other: Brakujące kolumny %{columns}.
457
501
  error: Podczas importowania wystąpił błąd
502
+ example_error: Nie można utworzyć przykładu dla podanego typu
458
503
  new:
459
504
  accepted_mime_types:
460
505
  csv: csv
@@ -462,6 +507,8 @@ pl:
462
507
  xlsx: xlsx
463
508
  actions:
464
509
  back: Wróć
510
+ download_example: Pobierz przykład
511
+ download_example_format: Przykład jako %{name}
465
512
  file_legend: Zaimportuj plik, który zostanie przetworzony.
466
513
  import: Importuj
467
514
  notice: "Zaimportowano %{resource_name} %{number}"
@@ -564,7 +611,7 @@ pl:
564
611
  fields:
565
612
  created_at: Data utworzenia
566
613
  email: E-mail
567
- last_sign_in_at: Ostatni dzień rejestracji
614
+ last_sign_in_at: Ostatnie logowanie
568
615
  name: Imię
569
616
  role: Rola
570
617
  roles:
@@ -634,6 +681,7 @@ pl:
634
681
  newsletters:
635
682
  create:
636
683
  error: Podczas tworzenia newslettera wystąpił błąd.
684
+ success: Newsletter został pomyślnie utworzony. Sprawdź go przed wysłaniem.
637
685
  deliver:
638
686
  error: Podczas dostarczania tego newslettera wystąpił błąd.
639
687
  success: Newsletter został dostarczony pomyślnie.
@@ -716,10 +764,12 @@ pl:
716
764
  title: Oficjalizuj użytkownika "%{name}"
717
765
  show_email_modal:
718
766
  close_modal: Zamknij okno
767
+ description: Jeśli chcesz skontaktować się bezpośrednio z uczestnikiem, możesz kliknąć przycisk Pokaż aby zobaczyć jego adres e-mail. Ta akcja zostanie zarejestrowana.
719
768
  email_address: Adres e-mail
720
769
  full_name: Imię i nazwisko
721
770
  hidden: ukryty
722
771
  show: Pokaż
772
+ title: Pokaż adres e-mail uczestnika
723
773
  unblock:
724
774
  error: Wystąpił błąd podczas odblokowywania użytkownika
725
775
  success: Użytkownik został odblokowany
@@ -745,6 +795,7 @@ pl:
745
795
  form:
746
796
  colors:
747
797
  colors_title: Kolory organizacji
798
+ colors_warning_html: Uwaga! Zmiana tych kolorów może ograniczyć czytelność. Możesz sprawdzić kontrast wybranych kolorów korzystając z <a href="%{link}">WebAIM Contrast Checker</a> albo innych podobnych narzędzi.
748
799
  header_snippets_help: Użyj tego pola, aby dodać elementy do nagłówka kodu HTML. Najczęstszym zastosowaniem jest zintegrowanie usług innych firm, które wymagają dodatkowego kodu JavaScript lub CSS. Można również użyć go do dodawania dodatkowych meta tagów do HTML. Zauważ, że będzie to widoczne tylko na stronach publicznych, a nie w sekcji administracyjnej.
749
800
  cta_button_path_help: 'Możesz nadpisać adres do jakiego kieruje przycisk CTA na stronie głównej. Należy wpisać tylko to, co ma znaleźć się na końcu po znaku „/”, a nie pełen adres. Można użyć liter, cyfr, myślników i ukośników. Musi zaczynać się od litery. Przycisk CTA zostanie wyświetlony na stronie głównej między tekstem powitalnym a opisem. Przykład: %{url}'
750
801
  cta_button_text_help: Można nadpisać tekst przycisku CTA na stronie głównej dla każdego dostępnego języka organizacji. Jeśli to pole nie zostanie wypełnione, zostanie użyta wartość domyślna. Przycisk CTA zostanie wyświetlony na stronie głównej między tekstem powitalnym a opisem.
@@ -879,7 +930,7 @@ pl:
879
930
  title: Edytuj stronę
880
931
  update: Aktualizuj
881
932
  form:
882
- none: Żadna
933
+ none: Bez tematu
883
934
  slug_help: 'Wpisz tutaj tylko to, co ma znaleźć się na końcu po znaku „/”, a nie pełny adres URL. Można użyć liter, cyfr i myślników. Musi zaczynać się od litery. Przykład: %{url}'
884
935
  index:
885
936
  last_notable_change: Ostatnia istotna zmiana
@@ -956,6 +1007,10 @@ pl:
956
1007
  no_users_count_statistics_yet: Nie ma jeszcze statystyk dotyczących liczby użytkowników
957
1008
  participants: Użytkownicy
958
1009
  view_public_page: Zobacz stronę publiczną
1010
+ forms:
1011
+ errors:
1012
+ impersonate_user:
1013
+ reason: Aby zarządzać uczestnikiem niezarządzanym należy podać powód
959
1014
  metrics:
960
1015
  blocked_users:
961
1016
  object: zablokowani użytkownicy
@@ -990,9 +1045,11 @@ pl:
990
1045
  moderation:
991
1046
  fields:
992
1047
  created_at: Data utworzenia
1048
+ deleted_resource: Usunięty zasób
993
1049
  hidden_at: Ukryto
994
1050
  participatory_space: Przestrzeń partycypacyjna
995
1051
  report_count: Liczba
1052
+ reportable_id: ID
996
1053
  reportable_type: Typ
997
1054
  reported_content_url: URL zgłoszonej treści
998
1055
  reports: Zgłoszenia
@@ -178,7 +178,6 @@ pt-BR:
178
178
  error: Ocorreu um erro ao aceitar os termos de uso do administrador.
179
179
  success: Ótimo! Você aceitou os termos de uso do administrador.
180
180
  actions:
181
- accept: Concordo com os seguintes termos
182
181
  refuse: Recusar os termos do admin
183
182
  title: Concorde com os termos e condições de uso
184
183
  required_review:
@@ -179,7 +179,6 @@ pt:
179
179
  error: Ocorreu um erro ao aceitar os termos de utilização de administrador.
180
180
  success: Excelente! Aceitou os termos de utilização de administrador.
181
181
  actions:
182
- accept: Concordo com os seguintes termos
183
182
  are_you_sure: Tem a certeza que quer rejeitar os termos de utilização de administrador?
184
183
  refuse: Recusar os termos de administrador
185
184
  title: Concordar com os termos e condições de utilização
@@ -123,6 +123,10 @@ ro:
123
123
  file: Fişier
124
124
  errors:
125
125
  models:
126
+ newsletter:
127
+ attributes:
128
+ base:
129
+ at_least_one_space: Selectează cel puțin un spațiu participativ
126
130
  organization:
127
131
  attributes:
128
132
  official_img_footer:
@@ -180,7 +184,7 @@ ro:
180
184
  error: A apărut o eroare la acceptarea termenilor de utilizare ai administratorului.
181
185
  success: Super! Ai acceptat termenii de utilizare ai administratorului.
182
186
  actions:
183
- accept: Sunt de acord cu următorii termeni
187
+ accept: Sunt de acord cu acești termeni și condiţii
184
188
  are_you_sure: Sigur dorești să refuzi termenii de utilizare ai adiminstratorului?
185
189
  refuse: Refuz termenii
186
190
  title: Acceptă termenii și condițiile de utilizare
@@ -1039,6 +1043,7 @@ ro:
1039
1043
  moderation:
1040
1044
  fields:
1041
1045
  created_at: Data creării
1046
+ deleted_resource: Resursă ștersă
1042
1047
  hidden_at: Ascuns la
1043
1048
  participatory_space: Spațiu participativ
1044
1049
  report_count: Număr
@@ -184,7 +184,6 @@ sv:
184
184
  error: Ett fel inträffade när användarvillkoren för administratörer skulle godkännas.
185
185
  success: Du har godkänt användarvillkoren för administratörer.
186
186
  actions:
187
- accept: Jag godkänner villkoren
188
187
  are_you_sure: Är du säker på att du vill avvisa administratörsvillkoren?
189
188
  refuse: Avvisa villkoren för administratörer
190
189
  title: Godkänn användarvillkoren
@@ -1042,6 +1041,7 @@ sv:
1042
1041
  hidden_at: Dold
1043
1042
  participatory_space: Deltagarutrymme
1044
1043
  report_count: Antal
1044
+ reportable_id: ID
1045
1045
  reportable_type: Typ
1046
1046
  reported_content_url: Rapporterad innehållsadress
1047
1047
  reports: Rapporter
@@ -143,7 +143,6 @@ tr:
143
143
  error: Yönetici kullanım şartlarını kabul ederken bir hata oluştu.
144
144
  success: Harika! Yönetici kullanım şartlarını kabul ettiniz.
145
145
  actions:
146
- accept: Aşağıdaki şartları kabul ediyorum
147
146
  refuse: Yönetici şartlarını reddedin
148
147
  title: Kullanım şartlarını ve koşullarını kabul edin
149
148
  required_review:
@@ -174,7 +174,10 @@ module Decidim
174
174
  decidim_admin.root_path,
175
175
  icon_name: "dashboard",
176
176
  position: 1,
177
- active: ["decidim/admin/dashboard" => :show]
177
+ active: [%w(
178
+ decidim/admin/dashboard
179
+ decidim/admin/metrics
180
+ ), []]
178
181
 
179
182
  menu.add_item :moderations,
180
183
  I18n.t("menu.moderation", scope: "decidim.admin"),
@@ -209,10 +212,15 @@ module Decidim
209
212
  decidim/admin/user_groups_csv_verifications
210
213
  decidim/admin/officializations
211
214
  decidim/admin/impersonatable_users
215
+ decidim/admin/conflicts
212
216
  decidim/admin/moderated_users
213
217
  decidim/admin/managed_users/impersonation_logs
214
218
  decidim/admin/managed_users/promotions
215
219
  decidim/admin/authorization_workflows
220
+ decidim/verifications/id_documents/admin/pending_authorizations
221
+ decidim/verifications/id_documents/admin/config
222
+ decidim/verifications/postal_letter/admin/pending_authorizations
223
+ decidim/verifications/csv_census/admin/census
216
224
  ), []],
217
225
  if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
218
226
 
@@ -239,6 +247,8 @@ module Decidim
239
247
  decidim/admin/scopes
240
248
  decidim/admin/scope_types
241
249
  decidim/admin/areas decidim/admin/area_types
250
+ decidim/admin/help_sections
251
+ decidim/admin/organization_external_domain_whitelist
242
252
  ),
243
253
  []
244
254
  ],
@@ -110,6 +110,39 @@ shared_examples "manage moderations" do
110
110
  expect(page).to have_no_selector("tr[data-id=\"#{moderation.id}\"]")
111
111
  end
112
112
  end
113
+
114
+ context "when the user changes language" do
115
+ around do |example|
116
+ previous_backend = I18n.backend
117
+ I18n.backend = I18n::Backend::Simple.new
118
+ example.run
119
+ I18n.backend = previous_backend
120
+ end
121
+
122
+ before do
123
+ I18n.backend.store_translations(
124
+ :ca,
125
+ activerecord: {
126
+ models: {
127
+ moderation.reportable.class.name.underscore.to_sym => {
128
+ one: "Objecte informable",
129
+ other: "Objectes informables"
130
+ }
131
+ }
132
+ }
133
+ )
134
+
135
+ within_language_menu do
136
+ click_link "Català"
137
+ end
138
+ end
139
+
140
+ it "renders the reportable types in the selected language" do
141
+ within "tr[data-id=\"#{moderation.id}\"]" do
142
+ expect(page).to have_content("Objecte informable")
143
+ end
144
+ end
145
+ end
113
146
  end
114
147
 
115
148
  context "when listing hidden resources" do
@@ -125,4 +158,43 @@ shared_examples "manage moderations" do
125
158
  end
126
159
  end
127
160
  end
161
+
162
+ context "when listing comments for deleted resources" do
163
+ let(:comments) do
164
+ reportables.first(reportables.length - 1).map do |resource|
165
+ create(:comment, commentable: resource)
166
+ end
167
+ end
168
+ let!(:moderations) do
169
+ comments.map do |reportable|
170
+ space = reportable.is_a?(Decidim::Participable) ? reportable : reportable.participatory_space
171
+ moderation = create(:moderation, reportable: reportable, report_count: 1, participatory_space: space, reported_content: reportable.reported_searchable_content_text)
172
+ create(:report, moderation: moderation)
173
+
174
+ reportable.root_commentable.destroy!
175
+ reportable.reload
176
+
177
+ moderation
178
+ end
179
+ end
180
+
181
+ it "user can review them" do
182
+ moderations.each do |moderation|
183
+ within "tr[data-id=\"#{moderation.id}\"]" do
184
+ expect(page).to have_content "Deleted resource"
185
+ expect(page).to have_content "Spam"
186
+ end
187
+ end
188
+ end
189
+
190
+ it "user can hide them" do
191
+ moderation_id = moderations.first.id
192
+ within "tr[data-id=\"#{moderation_id}\"]" do
193
+ click_link "Hide"
194
+ end
195
+
196
+ expect(page).to have_admin_callout("Resource successfully hidden")
197
+ expect(page).not_to have_selector("tr[data-id=\"#{moderation_id}\"]")
198
+ end
199
+ end
128
200
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-admin version.
5
5
  module Admin
6
6
  def self.version
7
- "0.26.2"
7
+ "0.26.4"
8
8
  end
9
9
  end
10
10
  end