decidim-admin 0.23.3 → 0.24.1

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.

Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_admin_manifest.js +1 -0
  3. data/app/assets/javascripts/decidim/admin/application.js.es6 +4 -1
  4. data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +23 -20
  5. data/app/assets/javascripts/decidim/admin/bundle.js +10 -17
  6. data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -1
  7. data/app/assets/javascripts/decidim/admin/form.js.es6 +1 -0
  8. data/app/assets/javascripts/decidim/admin/import_guidance.js.es6 +29 -0
  9. data/app/assets/javascripts/decidim/admin/moderations.js.es6 +24 -0
  10. data/app/assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 +20 -0
  11. data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +2 -2
  12. data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +2 -2
  13. data/app/assets/javascripts/decidim/admin/user_moderations.js +2 -0
  14. data/app/assets/stylesheets/decidim/admin/_variables.scss +9 -0
  15. data/app/assets/stylesheets/decidim/admin/components/_dropdown-menu.scss +3 -0
  16. data/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +13 -0
  17. data/app/assets/stylesheets/decidim/admin/extra/_block_user.scss +5 -0
  18. data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +1 -0
  19. data/app/assets/stylesheets/decidim/admin/modules/_moderations.scss +39 -0
  20. data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +2 -0
  21. data/app/assets/stylesheets/decidim/admin/modules/_reveal.scss +5 -0
  22. data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +6 -3
  23. data/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +2 -2
  24. data/app/assets/stylesheets/decidim/admin/user_moderations.scss +3 -0
  25. data/app/assets/stylesheets/decidim/admin/utils/_settings.scss +1 -0
  26. data/app/cells/decidim/admin/content_block/show.erb +1 -1
  27. data/app/cells/decidim/admin/content_block_cell.rb +4 -0
  28. data/app/commands/decidim/admin/block_user.rb +70 -0
  29. data/app/commands/decidim/admin/create_import.rb +29 -0
  30. data/app/commands/decidim/admin/create_participatory_space_admin_user_actions.rb +98 -0
  31. data/app/commands/decidim/admin/create_participatory_space_private_user.rb +1 -1
  32. data/app/commands/decidim/admin/create_static_page.rb +2 -1
  33. data/app/commands/decidim/admin/hide_resource.rb +21 -0
  34. data/app/commands/decidim/admin/impersonate_user.rb +17 -1
  35. data/app/commands/decidim/admin/promote_managed_user.rb +10 -0
  36. data/app/commands/decidim/admin/reorder_content_blocks.rb +6 -3
  37. data/app/commands/decidim/admin/transfer_user.rb +78 -0
  38. data/app/commands/decidim/admin/unblock_user.rb +48 -0
  39. data/app/commands/decidim/admin/unreport_user.rb +46 -0
  40. data/app/commands/decidim/admin/update_organization_appearance.rb +12 -4
  41. data/app/commands/decidim/admin/update_static_page.rb +2 -1
  42. data/app/commands/decidim/admin/verify_user_group.rb +1 -1
  43. data/app/controllers/concerns/decidim/admin/filterable.rb +1 -1
  44. data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +47 -0
  45. data/app/controllers/concerns/decidim/admin/landing_page.rb +105 -0
  46. data/app/controllers/concerns/decidim/admin/landing_page_content_blocks.rb +118 -0
  47. data/app/controllers/concerns/decidim/moderations/admin/filterable.rb +54 -0
  48. data/app/controllers/decidim/admin/block_user_controller.rb +60 -0
  49. data/app/controllers/decidim/admin/components/base_controller.rb +1 -0
  50. data/app/controllers/decidim/admin/conflicts_controller.rb +46 -0
  51. data/app/controllers/decidim/admin/exports_controller.rb +1 -2
  52. data/app/controllers/decidim/admin/global_moderations/reports_controller.rb +18 -0
  53. data/app/controllers/decidim/admin/global_moderations_controller.rb +32 -0
  54. data/app/controllers/decidim/admin/impersonations_controller.rb +1 -1
  55. data/app/controllers/decidim/admin/imports_controller.rb +52 -0
  56. data/app/controllers/decidim/admin/moderated_users_controller.rb +44 -0
  57. data/app/controllers/decidim/admin/moderations/reports_controller.rb +39 -0
  58. data/app/controllers/decidim/admin/moderations_controller.rb +31 -7
  59. data/app/controllers/decidim/admin/officializations_controller.rb +3 -3
  60. data/app/controllers/decidim/admin/organization_homepage_controller.rb +6 -2
  61. data/app/controllers/decidim/admin/static_pages_controller.rb +7 -0
  62. data/app/events/decidim/resource_hidden_event.rb +37 -0
  63. data/app/forms/decidim/admin/block_user_form.rb +25 -0
  64. data/app/forms/decidim/admin/import_form.rb +85 -0
  65. data/app/forms/decidim/admin/organization_appearance_form.rb +1 -2
  66. data/app/forms/decidim/admin/static_page_form.rb +6 -1
  67. data/app/forms/decidim/admin/transfer_user_form.rb +19 -0
  68. data/app/helpers/decidim/admin/admin_terms_helper.rb +0 -7
  69. data/app/helpers/decidim/admin/application_helper.rb +5 -4
  70. data/app/helpers/decidim/admin/exports_helper.rb +2 -2
  71. data/app/helpers/decidim/admin/filterable_helper.rb +3 -2
  72. data/app/helpers/decidim/admin/imports_helper.rb +43 -0
  73. data/app/helpers/decidim/admin/menu_helper.rb +10 -0
  74. data/app/helpers/decidim/admin/moderations/reports_helper.rb +40 -0
  75. data/app/helpers/decidim/admin/moderations_helper.rb +36 -0
  76. data/app/helpers/decidim/admin/newsletters_helper.rb +4 -10
  77. data/app/helpers/decidim/admin/settings_helper.rb +2 -1
  78. data/app/helpers/decidim/admin/sidebar_menu_helper.rb +13 -0
  79. data/app/helpers/decidim/admin/user_moderations_helper.rb +6 -0
  80. data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
  81. data/app/jobs/decidim/admin/verify_user_group_from_csv_job.rb +1 -1
  82. data/app/permissions/decidim/admin/permissions.rb +7 -6
  83. data/app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb +1 -1
  84. data/app/presenters/decidim/admin/secondary_menu_presenter.rb +26 -0
  85. data/app/queries/decidim/admin/active_users_counter.rb +1 -2
  86. data/app/queries/decidim/admin/user_filter.rb +1 -2
  87. data/app/views/decidim/admin/admin_terms/show.html.erb +1 -1
  88. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  89. data/app/views/decidim/admin/attachments/index.html.erb +1 -1
  90. data/app/views/decidim/admin/block_user/new.html.erb +22 -0
  91. data/app/views/decidim/admin/categories/index.html.erb +1 -1
  92. data/app/views/decidim/admin/components/_component.html.erb +12 -0
  93. data/app/views/decidim/admin/components/_form.html.erb +1 -1
  94. data/app/views/decidim/admin/conflicts/edit.html.erb +46 -0
  95. data/app/views/decidim/admin/conflicts/index.html.erb +34 -0
  96. data/app/views/decidim/admin/dashboard/show.html.erb +2 -1
  97. data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
  98. data/app/views/decidim/admin/imports/_dropdown.html.erb +9 -0
  99. data/app/views/decidim/admin/imports/new.html.erb +57 -0
  100. data/app/views/decidim/admin/moderated_users/_report.html.erb +10 -0
  101. data/app/views/decidim/admin/moderated_users/index.html.erb +78 -0
  102. data/app/views/decidim/admin/moderations/_report.html.erb +1 -1
  103. data/app/views/decidim/admin/moderations/index.html.erb +28 -9
  104. data/app/views/decidim/admin/moderations/reports/index.html.erb +102 -0
  105. data/app/views/decidim/admin/moderations/reports/show.html.erb +62 -0
  106. data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
  107. data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +2 -2
  108. data/app/views/decidim/admin/officializations/index.html.erb +13 -4
  109. data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -4
  110. data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +1 -1
  111. data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +4 -4
  112. data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +1 -1
  113. data/app/views/decidim/admin/shared/landing_page/edit.html.erb +47 -0
  114. data/app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb +15 -0
  115. data/app/views/decidim/admin/static_pages/_form.html.erb +6 -0
  116. data/app/views/decidim/admin/users/index.html.erb +1 -1
  117. data/app/views/layouts/decidim/admin/_application.html.erb +6 -1
  118. data/app/views/layouts/decidim/admin/_js_configuration.html.erb +26 -0
  119. data/app/views/layouts/decidim/admin/_title_bar.html.erb +2 -2
  120. data/app/views/layouts/decidim/admin/global_moderations.html.erb +7 -0
  121. data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
  122. data/app/views/layouts/decidim/admin/settings.html.erb +2 -33
  123. data/app/views/layouts/decidim/admin/users.html.erb +11 -0
  124. data/config/locales/ar.yml +0 -5
  125. data/config/locales/bg.yml +0 -1
  126. data/config/locales/ca.yml +150 -4
  127. data/config/locales/cs.yml +155 -9
  128. data/config/locales/de.yml +150 -5
  129. data/config/locales/el.yml +55 -5
  130. data/config/locales/en.yml +151 -5
  131. data/config/locales/es-MX.yml +148 -3
  132. data/config/locales/es-PY.yml +148 -3
  133. data/config/locales/es.yml +148 -3
  134. data/config/locales/eu.yml +0 -3
  135. data/config/locales/fi-plain.yml +149 -3
  136. data/config/locales/fi.yml +149 -3
  137. data/config/locales/fr-CA.yml +139 -4
  138. data/config/locales/fr.yml +139 -4
  139. data/config/locales/gl.yml +127 -5
  140. data/config/locales/hu.yml +13 -5
  141. data/config/locales/id-ID.yml +0 -3
  142. data/config/locales/is-IS.yml +19 -3
  143. data/config/locales/it.yml +59 -5
  144. data/config/locales/ja.yml +46 -5
  145. data/config/locales/lv.yml +0 -5
  146. data/config/locales/nl.yml +120 -4
  147. data/config/locales/no.yml +13 -7
  148. data/config/locales/pl.yml +166 -20
  149. data/config/locales/pt-BR.yml +0 -3
  150. data/config/locales/pt.yml +0 -5
  151. data/config/locales/ro-RO.yml +232 -120
  152. data/config/locales/ru.yml +0 -3
  153. data/config/locales/sk.yml +0 -5
  154. data/config/locales/sl.yml +0 -1
  155. data/config/locales/sr-CS.yml +0 -3
  156. data/config/locales/sv.yml +150 -5
  157. data/config/locales/tr-TR.yml +81 -4
  158. data/config/locales/uk.yml +0 -3
  159. data/config/locales/zh-CN.yml +0 -5
  160. data/config/routes.rb +21 -1
  161. data/lib/decidim/admin.rb +6 -0
  162. data/lib/decidim/admin/engine.rb +76 -1
  163. data/lib/decidim/admin/import.rb +12 -0
  164. data/lib/decidim/admin/import/creator.rb +82 -0
  165. data/lib/decidim/admin/import/importer.rb +82 -0
  166. data/lib/decidim/admin/import/importer_factory.rb +17 -0
  167. data/lib/decidim/admin/import/readers.rb +39 -0
  168. data/lib/decidim/admin/import/readers/base.rb +31 -0
  169. data/lib/decidim/admin/import/readers/csv.rb +23 -0
  170. data/lib/decidim/admin/import/readers/json.rb +25 -0
  171. data/lib/decidim/admin/import/readers/xls.rb +25 -0
  172. data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +6 -6
  173. data/lib/decidim/admin/test/commands/create_category_examples.rb +6 -6
  174. data/lib/decidim/admin/test/filterable_examples.rb +1 -8
  175. data/lib/decidim/admin/test/manage_moderations_examples.rb +68 -4
  176. data/lib/decidim/admin/version.rb +1 -1
  177. metadata +72 -15
  178. data/app/assets/javascripts/decidim/admin/gallery.js.es6 +0 -5
@@ -70,7 +70,6 @@ tr:
70
70
  rich_text_editor_in_public_views: Katılımcılar için zengin metin düzenleyiciyi etkinleştirin
71
71
  secondary_color: İkincil
72
72
  send_welcome_notification: Karşılama bildirimi gönder
73
- show_statistics: İstatistikleri göster
74
73
  success_color: başarı
75
74
  time_zone: Zaman Dilimi
76
75
  tos_version: Hizmet sürümü şartları
@@ -94,6 +93,7 @@ tr:
94
93
  settings:
95
94
  scope_id: Kapsam
96
95
  static_page:
96
+ allow_public_access: Kimlik doğrulama olmadan erişime izin ver
97
97
  changed_notably: Gözle görülür değişiklikler oldu.
98
98
  content: içerik
99
99
  organization: organizasyon
@@ -148,7 +148,7 @@ tr:
148
148
  error: Yönetici kullanım şartlarını kabul ederken bir hata oluştu.
149
149
  success: Harika! Yönetici kullanım şartlarını kabul ettiniz.
150
150
  actions:
151
- accept: Bu yönetici şartlarını kabul ediyorum
151
+ accept: Aşağıdaki şartları kabul ediyorum
152
152
  are_you_sure: Yönetici şartlarını reddettiğinizden emin misiniz?
153
153
  refuse: Yönetici şartlarını reddedin
154
154
  title: Kullanım şartlarını ve koşullarını kabul edin
@@ -227,6 +227,12 @@ tr:
227
227
  autocomplete:
228
228
  no_results: Sonuç bulunamadı
229
229
  search_prompt: Aramak için en az üç karakter girin
230
+ block_user:
231
+ new:
232
+ action: Hesabı engelle ve uyarı mesjı gönder
233
+ description: Bir kullanıcının engellenmesi, hesabının kullanılamaz hale gelmesine neden olur, gerekçenizde ve kullanıcının engellemesini kaldırmayı düşündüğünüz yollarla ilgili yönergeler sağlayabilirsiniz.
234
+ justification: Gerekçe
235
+ title: '%{name} Kullanıcısını Engelle'
230
236
  categories:
231
237
  create:
232
238
  error: Bu kategori oluşturulurken bir hata oluştu.
@@ -282,6 +288,21 @@ tr:
282
288
  update:
283
289
  error: Bu bileşeni güncellerken bir hata oluştu.
284
290
  success: Bileşen başarıyla güncellendi.
291
+ conflicts:
292
+ attempts: Girişimler
293
+ 'false': 'Hayır'
294
+ managed_user_name: Yönetilen Kullanıcı
295
+ solved: Çözüldü
296
+ title: Doğrulamaların çatışmaları
297
+ transfer:
298
+ email: E-Posta
299
+ error: Mevcut katılımcıyı yönetilen katılımcıya aktarırken bir sorun oluştu.
300
+ name: İsim
301
+ reason: Nedeni
302
+ success: Aktarım başarıyla tamamlandı.
303
+ title: Aktar
304
+ 'true': 'Evet'
305
+ user_name: Kullanıcı Adı
285
306
  dashboard:
286
307
  show:
287
308
  view_more_logs: Daha fazla günlükleri görüntüle
@@ -298,6 +319,9 @@ tr:
298
319
  category_id_eq:
299
320
  label: Kategori
300
321
  filter_label: Filtrele
322
+ moderations:
323
+ reportable_type_string_eq:
324
+ label: Türü
301
325
  officialized_at_null:
302
326
  label: Belirtmek, bildirmek
303
327
  values:
@@ -318,6 +342,7 @@ tr:
318
342
  search_label: Arama
319
343
  search_placeholder:
320
344
  name_or_nickname_or_email_cont: '%{collection} e-posta, isim veya takma ad ile arayın.'
345
+ reported_id_string_or_reported_content_cont: '%{collection} ''ı rapor edilebilir kimlik veya içeriğe göre arayın.'
321
346
  title_cont: Başlığa göre %{collection} ara.
322
347
  state_eq:
323
348
  label: Durum
@@ -382,8 +407,10 @@ tr:
382
407
  help_sections: Yardım bölümleri
383
408
  homepage: Anasayfa
384
409
  impersonations: impersonations
410
+ moderation: Küresel denetimler
385
411
  newsletters: Haber bültenleri
386
412
  participants: Katılımcılar
413
+ reported_users: Raporlanan Kullanıcı
387
414
  scope_types: Kapsam türleri
388
415
  scopes: kapsamları
389
416
  settings: Ayarlar
@@ -471,6 +498,20 @@ tr:
471
498
  phone: Telefon
472
499
  state: Belirtmek, bildirmek
473
500
  users_count: Kullanıcılar
501
+ moderated_users:
502
+ index:
503
+ actions:
504
+ title: Eylemler
505
+ unreport: Bildirilmedi
506
+ name: Adı
507
+ nickname: Rumuz
508
+ reason: Nedeni
509
+ title: Bildirilen kullanıcılar listesi
510
+ report:
511
+ reasons:
512
+ does_not_belong: Ait değil
513
+ offensive: Saldırgan
514
+ spam: İstenmeyen
474
515
  moderations:
475
516
  index:
476
517
  title: Denetimler
@@ -479,6 +520,21 @@ tr:
479
520
  does_not_belong: Ait değil
480
521
  offensive: saldırgan
481
522
  spam: İstenmeyen e
523
+ reports:
524
+ index:
525
+ author: Yazar(lar)
526
+ callout_html: Bir kullanıcı tarafından (kayıtlı hesabı olan herhangi biri olabilir) öğenin yanındaki %{icon} bayrağına tıklanarak bildirildiğinde, denetim panelinde bir içerik görünür.
527
+ content_original_language: İçerik orijinal dili
528
+ participatory_space: Katılımcı süreç
529
+ reported_content: Şikayet Edilmiş İçerik
530
+ see_current: Şu ankini gör
531
+ see_original: Orijinali gör
532
+ title: Moderatör raporları
533
+ show:
534
+ report_details: Nedenin ayrıntıları
535
+ report_language: Rapor dili
536
+ report_reason: Nedeni
537
+ title: Rapor ayrıntıları
482
538
  newsletter_templates:
483
539
  index:
484
540
  preview_template: Ön izleme
@@ -544,6 +600,9 @@ tr:
544
600
  error: Bu bülteni güncellerken bir hata oluştu.
545
601
  success: Bülten başarıyla güncellendi. Lütfen göndermeden önce gözden geçirin.
546
602
  officializations:
603
+ block:
604
+ error: Katılımcıyı engellerken bir hata oluştu
605
+ success: Katılımcı başarıyla engellendi
547
606
  create:
548
607
  success: Kullanıcı başarıyla onaylandı
549
608
  destroy:
@@ -551,6 +610,7 @@ tr:
551
610
  index:
552
611
  actions: Eylemler
553
612
  badge: rozet
613
+ block: Kullanıcıyı Engelle
554
614
  created_at: At düzenlendi
555
615
  name: isim
556
616
  nickname: Takma ad
@@ -558,8 +618,10 @@ tr:
558
618
  officialize: ', resmiyete'
559
619
  officialized: resmileştirilmiş
560
620
  reofficialize: Reofficialize
621
+ reports: Raporlar
561
622
  show_email: E-posta adresini göster
562
623
  status: durum
624
+ unblock: Kullanıcının Engelini Kaldır
563
625
  unofficialize: Unofficialize
564
626
  new:
565
627
  badge: Resmi görevlendirme rozeti
@@ -573,6 +635,9 @@ tr:
573
635
  hidden: saklı
574
636
  show: Göster
575
637
  title: Katılımcı e-posta adresini göster
638
+ unblock:
639
+ error: Katılımcıyı engellerken bir hata oluştu
640
+ success: Katılımcı başarıyla engellendi
576
641
  organization:
577
642
  edit:
578
643
  title: Kuruluş düzenle
@@ -619,7 +684,7 @@ tr:
619
684
  error: Bu katılımcı alan için özel bir kullanıcı silinirken bir hata oluştu.
620
685
  success: Katılımcı alan özel kullanıcı erişimi başarıyla yok edildi.
621
686
  index:
622
- import_via_csv: Csv'den içe aktar
687
+ import_via_csv: CSV'den içe aktar
623
688
  title: Katılımcı alan özel kullanıcısı
624
689
  new:
625
690
  create: yaratmak
@@ -742,6 +807,7 @@ tr:
742
807
  impersonatable_users: Yönetilebilir kullanıcılar
743
808
  impersonations: Kullanıcılar yönetimi
744
809
  metrics: Metrik
810
+ panel: Yönetici
745
811
  participants: Kullanıcılar
746
812
  scope_types: Kapsam türleri
747
813
  scopes: kapsamları
@@ -807,6 +873,7 @@ tr:
807
873
  reason: Yönetilmeyen bir kullanıcıyı taklit ederken bir neden belirtmeniz gerekir
808
874
  moderations:
809
875
  actions:
876
+ expand: Genişlet
810
877
  hidden: Gizli
811
878
  hide: Saklamak
812
879
  not_hidden: Gizli değil
@@ -827,18 +894,28 @@ tr:
827
894
  models:
828
895
  moderation:
829
896
  fields:
897
+ created_at: Oluşturulma tarihi
830
898
  hidden_at: Gizli
899
+ participatory_space: Katılımcı alanı
831
900
  report_count: saymak
832
- reportable: bildirilmesi zorunlu
901
+ reportable_id: Id
902
+ reportable_type: Türü
833
903
  reported_content_url: Raporlanan içerik URL'si
834
904
  reports: Raporlar
835
905
  visit_url: URL'yi ziyaret et
906
+ report:
907
+ fields:
908
+ details: Nedenin ayrıntıları
909
+ locale: Dil
910
+ reason: Nedeni
836
911
  errors:
837
912
  messages:
838
913
  invalid_json: Geçersiz JSON
839
914
  layouts:
840
915
  decidim:
841
916
  admin:
917
+ global_moderations:
918
+ title: Küresel denetimler
842
919
  newsletters:
843
920
  title: Haber bültenleri
844
921
  settings:
@@ -55,7 +55,6 @@ uk:
55
55
  omnipresent_banner_title: Заголовок
56
56
  omnipresent_banner_url: Веб-адреса
57
57
  reference_prefix: Довідковий префікс
58
- show_statistics: Показувати статистику
59
58
  tos_version: Версія умов участі
60
59
  twitter_handler: Адреса Twitter
61
60
  youtube_handler: Адреса YouTube
@@ -440,7 +439,6 @@ uk:
440
439
  instagram: Інстаграм
441
440
  social_handlers: Соціальні мережі
442
441
  twitter: Твіттер
443
- url: Веб-адреса
444
442
  youtube: ЮТуб
445
443
  update:
446
444
  error: При спробі оновити цю організацію сталася помилка.
@@ -598,7 +596,6 @@ uk:
598
596
  fields:
599
597
  hidden_at: 'Приховано:'
600
598
  report_count: Кількість
601
- reportable: Різновид скарги
602
599
  reported_content_url: Веб-адреса оскарженого вмісту
603
600
  reports: Скарги
604
601
  visit_url: Відвідайте веб-адресу
@@ -70,7 +70,6 @@ zh-CN:
70
70
  rich_text_editor_in_public_views: 为参与者启用富文本编辑器
71
71
  secondary_color: 次要文件
72
72
  send_welcome_notification: 发送欢迎通知
73
- show_statistics: 显示统计
74
73
  success_color: 成功
75
74
  time_zone: 时区
76
75
  tos_version: 服务条款版本
@@ -146,7 +145,6 @@ zh-CN:
146
145
  error: 接受管理员使用条款时出错。
147
146
  success: 太棒了!您已经接受了管理员使用条款。
148
147
  actions:
149
- accept: 我同意这个管理条款
150
148
  are_you_sure: 您确定要拒绝管理员条款吗?
151
149
  refuse: 拒绝管理条款
152
150
  title: 同意使用条款
@@ -582,7 +580,6 @@ zh-CN:
582
580
  rich_text_editor_in_public_views_help: 在某些文本领域,参与者将能够通过使用丰富的文本编辑器插入一些HTML标签。
583
581
  social_handlers: 社交活动
584
582
  twitter: 推特
585
- url: 网址
586
583
  youtube: YouTube
587
584
  update:
588
585
  error: 更新这个组织时出现问题。
@@ -617,7 +614,6 @@ zh-CN:
617
614
  error: 删除这个参与空间的私人参与者时出错。
618
615
  success: 参与性空间私人参与者访问成功被摧毁。
619
616
  index:
620
- import_via_csv: 通过 csv 导入
621
617
  title: 参与性空间私人参与者
622
618
  new:
623
619
  create: 创建
@@ -827,7 +823,6 @@ zh-CN:
827
823
  fields:
828
824
  hidden_at: 隐藏于
829
825
  report_count: 计数
830
- reportable: 可重写
831
826
  reported_content_url: 报告的内容 URL
832
827
  reports: 报告
833
828
  visit_url: 访问 URL
data/config/routes.rb CHANGED
@@ -38,10 +38,19 @@ Decidim::Admin::Engine.routes.draw do
38
38
  member do
39
39
  post :resend_invitation, to: "users#resend_invitation"
40
40
  end
41
+ resource :block, only: [:new, :create, :destroy], controller: :block_user
41
42
  end
42
43
 
43
44
  resources :officializations, only: [:new, :create, :index, :destroy], param: :user_id do
44
- get :show_email, on: :member
45
+ member do
46
+ get :show_email
47
+ end
48
+ end
49
+
50
+ resources :moderated_users, only: [:index] do
51
+ member do
52
+ put :ignore
53
+ end
45
54
  end
46
55
 
47
56
  resources :impersonatable_users, only: [:index] do
@@ -90,6 +99,17 @@ Decidim::Admin::Engine.routes.draw do
90
99
 
91
100
  resources :share_tokens, only: :destroy
92
101
 
102
+ resources :moderations, controller: "global_moderations" do
103
+ member do
104
+ put :unreport
105
+ put :hide
106
+ put :unhide
107
+ end
108
+ resources :reports, controller: "global_moderations/reports", only: [:index, :show]
109
+ end
110
+
111
+ resources :conflicts, only: [:index, :edit, :update], controller: "conflicts"
112
+
93
113
  root to: "dashboard#show"
94
114
  end
95
115
  end
data/lib/decidim/admin.rb CHANGED
@@ -11,6 +11,7 @@ module Decidim
11
11
  module Admin
12
12
  autoload :Components, "decidim/admin/components"
13
13
  autoload :FormBuilder, "decidim/admin/form_builder"
14
+ autoload :Import, "decidim/admin/import"
14
15
 
15
16
  include ActiveSupport::Configurable
16
17
 
@@ -28,5 +29,10 @@ module Decidim
28
29
  config.default_per_page = Decidim::Admin.per_page_range.first
29
30
  config.max_per_page = Decidim::Admin.per_page_range.last
30
31
  end
32
+
33
+ # Public: Stores an instance of ViewHooks
34
+ def self.view_hooks
35
+ @view_hooks ||= ViewHooks.new
36
+ end
31
37
  end
32
38
  end
@@ -32,6 +32,70 @@ module Decidim
32
32
  app.config.assets.precompile += %w(decidim_admin_manifest.js)
33
33
  end
34
34
 
35
+ initializer "decidim_admin.global_moderation_menu" do
36
+ Decidim.menu :admin_global_moderation_menu do |menu|
37
+ menu.item I18n.t("actions.not_hidden", scope: "decidim.moderations"),
38
+ decidim_admin.moderations_path,
39
+ position: 1,
40
+ active: params[:hidden].blank?
41
+
42
+ menu.item I18n.t("actions.hidden", scope: "decidim.moderations"),
43
+ decidim_admin.moderations_path(hidden: true),
44
+ position: 2,
45
+ active: params[:hidden].present?
46
+ end
47
+ end
48
+
49
+ initializer "decidim_admin.admin_settings_menu" do
50
+ Decidim.menu :admin_settings_menu do |menu|
51
+ menu.item I18n.t("menu.configuration", scope: "decidim.admin"),
52
+ decidim_admin.edit_organization_path,
53
+ position: 1.0,
54
+ if: allowed_to?(:update, :organization, organization: current_organization),
55
+ active: is_active_link?(decidim_admin.edit_organization_path)
56
+
57
+ menu.item I18n.t("menu.appearance", scope: "decidim.admin"),
58
+ decidim_admin.edit_organization_appearance_path,
59
+ position: 1.1,
60
+ if: allowed_to?(:update, :organization, organization: current_organization),
61
+ active: is_active_link?(decidim_admin.edit_organization_appearance_path)
62
+
63
+ menu.item I18n.t("menu.homepage", scope: "decidim.admin"),
64
+ decidim_admin.edit_organization_homepage_path,
65
+ position: 1.2,
66
+ if: allowed_to?(:update, :organization, organization: current_organization),
67
+ active: is_active_link?(decidim_admin.edit_organization_homepage_path, %r{^/admin/organization/homepage})
68
+
69
+ menu.item I18n.t("menu.scopes", scope: "decidim.admin"),
70
+ decidim_admin.scopes_path,
71
+ position: 1.3,
72
+ if: allowed_to?(:read, :scope),
73
+ active: is_active_link?(decidim_admin.scopes_path)
74
+ menu.item I18n.t("menu.scope_types", scope: "decidim.admin"),
75
+ decidim_admin.scope_types_path,
76
+ position: 1.4,
77
+ if: allowed_to?(:read, :scope_type),
78
+ active: is_active_link?(decidim_admin.scope_types_path)
79
+ menu.item I18n.t("menu.areas", scope: "decidim.admin"),
80
+ decidim_admin.areas_path,
81
+ position: 1.5,
82
+ if: allowed_to?(:read, :area),
83
+ active: is_active_link?(decidim_admin.areas_path)
84
+
85
+ menu.item I18n.t("menu.area_types", scope: "decidim.admin"),
86
+ decidim_admin.area_types_path,
87
+ position: 1.6,
88
+ if: allowed_to?(:read, :area_type),
89
+ active: is_active_link?(decidim_admin.area_types_path)
90
+
91
+ menu.item I18n.t("menu.help_sections", scope: "decidim.admin"),
92
+ decidim_admin.help_sections_path,
93
+ position: 1.6,
94
+ if: allowed_to?(:update, :help_sections),
95
+ active: is_active_link?(decidim_admin.help_sections_path)
96
+ end
97
+ end
98
+
35
99
  initializer "decidim_admin.menu" do
36
100
  Decidim.menu :admin_menu do |menu|
37
101
  menu.item I18n.t("menu.dashboard", scope: "decidim.admin"),
@@ -40,10 +104,20 @@ module Decidim
40
104
  position: 1,
41
105
  active: ["decidim/admin/dashboard" => :show]
42
106
 
107
+ menu.item I18n.t("menu.moderation", scope: "decidim.admin"),
108
+ decidim_admin.moderations_path,
109
+ icon_name: "flag",
110
+ position: 4,
111
+ active: [%w(
112
+ decidim/admin/global_moderations
113
+ decidim/admin/global_moderations/reports
114
+ ), []],
115
+ if: allowed_to?(:read, :global_moderation)
116
+
43
117
  menu.item I18n.t("menu.static_pages", scope: "decidim.admin"),
44
118
  decidim_admin.static_pages_path,
45
119
  icon_name: "book",
46
- position: 4,
120
+ position: 4.5,
47
121
  active: [%w(
48
122
  decidim/admin/static_pages
49
123
  decidim/admin/static_page_topics
@@ -60,6 +134,7 @@ module Decidim
60
134
  decidim/admin/user_groups_csv_verifications
61
135
  decidim/admin/officializations
62
136
  decidim/admin/impersonatable_users
137
+ decidim/admin/moderated_users
63
138
  decidim/admin/managed_users/impersonation_logs
64
139
  decidim/admin/managed_users/promotions
65
140
  decidim/admin/authorization_workflows
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Admin
5
+ module Import
6
+ autoload :ImporterFactory, "decidim/admin/import/importer_factory"
7
+ autoload :Importer, "decidim/admin/import/importer"
8
+ autoload :Creator, "decidim/admin/import/creator"
9
+ autoload :Readers, "decidim/admin/import/readers"
10
+ end
11
+ end
12
+ end