decidim-admin 0.24.0.rc1 → 0.24.3
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/assets/javascripts/decidim/admin/application.js.es6 +2 -1
- data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +5 -9
- data/app/helpers/decidim/admin/admin_terms_helper.rb +0 -7
- data/app/views/decidim/admin/admin_terms/show.html.erb +1 -1
- data/app/views/decidim/admin/area_types/index.html.erb +2 -2
- data/app/views/decidim/admin/areas/index.html.erb +1 -1
- data/app/views/decidim/admin/components/_form.html.erb +1 -1
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/moderations/index.html.erb +1 -0
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/scope_types/index.html.erb +2 -2
- data/app/views/decidim/admin/scopes/index.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/_topic.html.erb +3 -3
- data/app/views/decidim/admin/users/index.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_application.html.erb +1 -0
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +26 -0
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/pages.html.erb +2 -2
- data/config/locales/ca.yml +120 -0
- data/config/locales/cs.yml +5 -4
- data/config/locales/en.yml +1 -0
- data/config/locales/es-MX.yml +111 -0
- data/config/locales/es-PY.yml +111 -0
- data/config/locales/es.yml +112 -1
- data/config/locales/fi-plain.yml +1 -0
- data/config/locales/fi.yml +1 -0
- data/config/locales/fr-CA.yml +7 -0
- data/config/locales/fr.yml +7 -0
- data/config/locales/gl.yml +76 -0
- data/config/locales/it.yml +11 -0
- data/config/locales/ja.yml +21 -0
- data/config/locales/nl.yml +3 -0
- data/config/locales/no.yml +14 -2
- data/config/locales/pl.yml +25 -24
- data/config/locales/ro-RO.yml +292 -117
- data/config/locales/sv.yml +100 -1
- data/lib/decidim/admin/test/manage_moderations_examples.rb +19 -0
- data/lib/decidim/admin/version.rb +1 -1
- metadata +11 -11
- data/app/assets/javascripts/decidim/admin/gallery.js.es6 +0 -5
data/config/locales/sv.yml
CHANGED
@@ -26,11 +26,15 @@ sv:
|
|
26
26
|
published_at: Publicerad
|
27
27
|
weight: Vikt
|
28
28
|
id: ID
|
29
|
+
import:
|
30
|
+
user_group_id: Skapa import som
|
29
31
|
newsletter:
|
30
32
|
body: Innehåll
|
31
33
|
subject: Ämne
|
32
34
|
organization:
|
35
|
+
admin_terms_of_use_body: Innehåll för administratörsvillkoren
|
33
36
|
alert_color: Larm
|
37
|
+
available_authorizations: Tillgängliga auktoriseringar
|
34
38
|
badges_enabled: Aktivera märken
|
35
39
|
comments_max_length: Maximal längd för kommentarer (Lämna 0 för standardvärde)
|
36
40
|
cta_button_path: Uppmaningens knappsökväg
|
@@ -41,6 +45,8 @@ sv:
|
|
41
45
|
enable_omnipresent_banner: Visa banner på alla sidor
|
42
46
|
facebook_handler: Facebook-hanterare
|
43
47
|
favicon: Ikon
|
48
|
+
force_authentication: Tvinga autentisering
|
49
|
+
force_users_to_authenticate_before_access_organization: Tvinga användare att autentisera sig innan att komma in organisationen
|
44
50
|
from: Från e-postadress
|
45
51
|
github_handler: GitHub-hanterare
|
46
52
|
header_snippets: Rubriksnuttar
|
@@ -53,6 +59,7 @@ sv:
|
|
53
59
|
highlighted_content_banner_image: Bild
|
54
60
|
highlighted_content_banner_short_description: Kort beskrivning
|
55
61
|
highlighted_content_banner_title: Titel
|
62
|
+
host: Värd
|
56
63
|
instagram_handler: Instagram-hanterare
|
57
64
|
logo: Logo
|
58
65
|
machine_translation_display_priority: Maskinöversättnings visnings prioritet
|
@@ -65,16 +72,21 @@ sv:
|
|
65
72
|
omnipresent_banner_short_description: Kort beskrivning
|
66
73
|
omnipresent_banner_title: Titel
|
67
74
|
omnipresent_banner_url: URL
|
75
|
+
organization_admin_email: Organisationsadministratörens e-postadress
|
76
|
+
organization_admin_name: Organisationsadministratörens namn
|
77
|
+
organization_locales: Organisationsspråk
|
68
78
|
primary_color: Primär
|
69
79
|
reference_prefix: Referensprefix
|
70
80
|
rich_text_editor_in_public_views: Aktivera rik textredigering för deltagare
|
71
81
|
secondary_color: Sekundär
|
82
|
+
secondary_hosts: Sekundära hosts
|
72
83
|
send_welcome_notification: Skicka välkomstmeddelande
|
73
84
|
success_color: Färdigt
|
74
85
|
time_zone: Tidszon
|
75
86
|
tos_version: Version på användarvillkor
|
76
87
|
twitter_handler: Twitter-hanterare
|
77
88
|
user_groups_enabled: Aktivera grupper
|
89
|
+
users_registration_mode: Registreringsmode
|
78
90
|
warning_color: Varning
|
79
91
|
welcome_notification_body: Välkomstmeddelandets brödtext
|
80
92
|
welcome_notification_subject: Välkomstmeddelandets ämnesrad
|
@@ -93,6 +105,7 @@ sv:
|
|
93
105
|
settings:
|
94
106
|
scope_id: Omfång
|
95
107
|
static_page:
|
108
|
+
allow_public_access: Tillåt tillgång utan autentisering
|
96
109
|
changed_notably: Det har skett större förändringar.
|
97
110
|
content: Innehåll
|
98
111
|
organization: Organisation
|
@@ -115,6 +128,10 @@ sv:
|
|
115
128
|
allowed_file_content_types: Ogiltig bildfil
|
116
129
|
official_img_header:
|
117
130
|
allowed_file_content_types: Ogiltig bildfil
|
131
|
+
new_import:
|
132
|
+
attributes:
|
133
|
+
file:
|
134
|
+
invalid_mime_type: Ogiltig MIME type
|
118
135
|
activerecord:
|
119
136
|
attributes:
|
120
137
|
decidim/static_page:
|
@@ -141,12 +158,19 @@ sv:
|
|
141
158
|
category:
|
142
159
|
new: Ny kategori
|
143
160
|
export: Exportera
|
161
|
+
import: Importera
|
144
162
|
manage: Hantera
|
145
163
|
new: Ny %{name}
|
164
|
+
newsletter:
|
165
|
+
new: Nytt nyhetsbrev
|
166
|
+
participatory_space_private_user:
|
167
|
+
new: Ny privat deltagare i deltagarutrymme
|
146
168
|
per_page: Per sida
|
147
169
|
permissions: Behörigheter
|
148
170
|
reject: Avvisa
|
149
171
|
share: Dela
|
172
|
+
user:
|
173
|
+
new: Ny användare
|
150
174
|
verify: Kontrollera
|
151
175
|
admin_terms_of_use:
|
152
176
|
accept:
|
@@ -234,6 +258,8 @@ sv:
|
|
234
258
|
search_prompt: Sök genom att skriva minst tre tecken
|
235
259
|
block_user:
|
236
260
|
new:
|
261
|
+
action: Blockera konto och skicka motivering
|
262
|
+
description: Att blockera en användare kommer att göra dess konto oanvändbart, du kan skriva din motivering och riktlinjer för hur du anser att du skulle överväga att avblockera användaren.
|
237
263
|
justification: Motivering
|
238
264
|
title: Blockera användare %{name}
|
239
265
|
categories:
|
@@ -294,11 +320,16 @@ sv:
|
|
294
320
|
conflicts:
|
295
321
|
attempts: Försök
|
296
322
|
'false': 'Nej'
|
323
|
+
managed_user_name: Hanterad användare
|
297
324
|
solved: Löst
|
325
|
+
title: Verifieringskonflikter
|
298
326
|
transfer:
|
299
327
|
email: E-post
|
328
|
+
error: Det gick inte att konvertera användaren till hanterad användare.
|
300
329
|
name: Namn
|
301
330
|
reason: Anledning
|
331
|
+
success: Flytten slutfördes problemfritt.
|
332
|
+
title: Överföring
|
302
333
|
'true': 'Ja'
|
303
334
|
user_name: Användare
|
304
335
|
dashboard:
|
@@ -344,6 +375,11 @@ sv:
|
|
344
375
|
title_cont: Sök %{collection} efter titel.
|
345
376
|
state_eq:
|
346
377
|
label: Län
|
378
|
+
forms:
|
379
|
+
file_help:
|
380
|
+
import:
|
381
|
+
explanation: 'Vägledning för fil:'
|
382
|
+
message_2: För CSV-filer måste separatorn mellan kolumner vara en semikolon (";")
|
347
383
|
help_sections:
|
348
384
|
error: Det gick inte att uppdatera hjälpavsnitten
|
349
385
|
form:
|
@@ -382,6 +418,24 @@ sv:
|
|
382
418
|
impersonate_existing_managed_user: Hantera deltagaren "%{name}"
|
383
419
|
impersonate_existing_user: Hantera deltagaren "%{name}"
|
384
420
|
impersonate_new_managed_user: Hantera ny deltagare
|
421
|
+
imports:
|
422
|
+
creators:
|
423
|
+
proposalcreator: Förslagsförfattare
|
424
|
+
error: Ett fel uppstod under importeringsprocessen
|
425
|
+
help:
|
426
|
+
proposalcreator: Filen måste ha kolumnnamn title/sv och body/sv (eller ett annat språk som du föredrar t. ex.. title/ca och body/ca). Även scope/id och category/id kolumner stöds.
|
427
|
+
import_from_file: Importera från fil
|
428
|
+
invalid_lines: Hittade fel i resursnumret %{invalid_lines}
|
429
|
+
new:
|
430
|
+
accepted_mime_types:
|
431
|
+
csv: csv
|
432
|
+
json: json
|
433
|
+
xls: xls
|
434
|
+
actions:
|
435
|
+
back: Tillbaka
|
436
|
+
file_legend: Lägg till en fil som kommer importeras.
|
437
|
+
import: Importera
|
438
|
+
notice: "%{number} %{resource_name} har importerats"
|
385
439
|
logs:
|
386
440
|
logs_list:
|
387
441
|
no_logs_yet: Det finns inga loggar än
|
@@ -405,8 +459,10 @@ sv:
|
|
405
459
|
help_sections: Hjälpavsnitt
|
406
460
|
homepage: Hemsida
|
407
461
|
impersonations: Uppträd som
|
462
|
+
moderation: Global moderering
|
408
463
|
newsletters: Nyhetsbrev
|
409
464
|
participants: Deltagare
|
465
|
+
reported_users: Rapporterade användare
|
410
466
|
scope_types: Omfattningstyper
|
411
467
|
scopes: Omfattningar
|
412
468
|
settings: inställningar
|
@@ -494,6 +550,26 @@ sv:
|
|
494
550
|
phone: Telefon
|
495
551
|
state: Status
|
496
552
|
users_count: Antal användare
|
553
|
+
moderated_users:
|
554
|
+
index:
|
555
|
+
actions:
|
556
|
+
block: Blockera användare
|
557
|
+
title: Åtgärder
|
558
|
+
unblock: Avblockera användare
|
559
|
+
unreport: Ta bort rapport
|
560
|
+
name: Namn
|
561
|
+
nickname: Användarnamn
|
562
|
+
reason: Anledning
|
563
|
+
reports: Antal anmälningar
|
564
|
+
title: Rapporterade användare
|
565
|
+
report:
|
566
|
+
reasons:
|
567
|
+
does_not_belong: Tillhör inte
|
568
|
+
offensive: Offensivt
|
569
|
+
spam: Skräp
|
570
|
+
tabs:
|
571
|
+
blocked: Blockerad
|
572
|
+
unblocked: Icke blockerade
|
497
573
|
moderations:
|
498
574
|
index:
|
499
575
|
title: Moderering
|
@@ -582,6 +658,9 @@ sv:
|
|
582
658
|
error: Det gick inte att uppdatera nyhetsbrevet.
|
583
659
|
success: Nyhetsbrevet har uppdaterats. Granska det gärna innan du skickar det.
|
584
660
|
officializations:
|
661
|
+
block:
|
662
|
+
error: Det gick inte att blockera användaren
|
663
|
+
success: Deltagaren har blockerats
|
585
664
|
create:
|
586
665
|
success: Deltagaren har gjorts officiell
|
587
666
|
destroy:
|
@@ -589,6 +668,7 @@ sv:
|
|
589
668
|
index:
|
590
669
|
actions: Åtgärder
|
591
670
|
badge: Märke
|
671
|
+
block: Blockera användare
|
592
672
|
created_at: Skapad
|
593
673
|
name: Namn
|
594
674
|
nickname: Användarnamn
|
@@ -596,8 +676,10 @@ sv:
|
|
596
676
|
officialize: Gör officiell
|
597
677
|
officialized: Gjord officiell
|
598
678
|
reofficialize: Gör officiell igen
|
679
|
+
reports: Rapporter
|
599
680
|
show_email: Visa e-postadress
|
600
681
|
status: Status
|
682
|
+
unblock: Avblockera användare
|
601
683
|
unofficialize: Sluta gör officiell
|
602
684
|
new:
|
603
685
|
badge: Officiellt märke
|
@@ -611,6 +693,9 @@ sv:
|
|
611
693
|
hidden: dold
|
612
694
|
show: Visa
|
613
695
|
title: Visa deltagarens e-postadress
|
696
|
+
unblock:
|
697
|
+
error: Det gick inte att avblockera användaren
|
698
|
+
success: Deltagaren har avblockerats
|
614
699
|
organization:
|
615
700
|
edit:
|
616
701
|
title: Redigera organisation
|
@@ -727,7 +812,7 @@ sv:
|
|
727
812
|
gallery:
|
728
813
|
add_images: Lägg till bilder
|
729
814
|
delete_image: Ta bort bild
|
730
|
-
gallery_legend: Lägg till ett bildgalleri (
|
815
|
+
gallery_legend: Lägg till ett bildgalleri (Frivilligt)
|
731
816
|
static_page_topics:
|
732
817
|
create:
|
733
818
|
error: Det gick inte att skapa ett nytt ämne.
|
@@ -780,6 +865,7 @@ sv:
|
|
780
865
|
impersonatable_users: Hanterbara deltagare
|
781
866
|
impersonations: Deltagarhantering
|
782
867
|
metrics: Metrik
|
868
|
+
panel: Administratör
|
783
869
|
participants: Deltagare
|
784
870
|
scope_types: Omfattningstyper
|
785
871
|
scopes: Omfattningar
|
@@ -843,6 +929,16 @@ sv:
|
|
843
929
|
errors:
|
844
930
|
impersonate_user:
|
845
931
|
reason: Du måste ange en anledning vid hantering av en icke-hanterad användare
|
932
|
+
metrics:
|
933
|
+
blocked_users:
|
934
|
+
object: blockerade användare
|
935
|
+
title: Blockerade användare
|
936
|
+
reported_users:
|
937
|
+
object: rapporterade användare
|
938
|
+
title: Rapporterade användare
|
939
|
+
user_reports:
|
940
|
+
object: användarrapporter
|
941
|
+
title: Användarrapporter
|
846
942
|
moderations:
|
847
943
|
actions:
|
848
944
|
expand: Expandera
|
@@ -868,6 +964,7 @@ sv:
|
|
868
964
|
fields:
|
869
965
|
created_at: Skapandedatum
|
870
966
|
hidden_at: Dold
|
967
|
+
participatory_space: Deltagarutrymme
|
871
968
|
report_count: Antal
|
872
969
|
reportable_id: Id
|
873
970
|
reportable_type: Typ
|
@@ -885,6 +982,8 @@ sv:
|
|
885
982
|
layouts:
|
886
983
|
decidim:
|
887
984
|
admin:
|
985
|
+
global_moderations:
|
986
|
+
title: Global moderering
|
888
987
|
newsletters:
|
889
988
|
title: Nyhetsbrev
|
890
989
|
settings:
|
@@ -24,6 +24,16 @@ shared_examples "manage moderations" do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
context "when listing moderations" do
|
27
|
+
it "only lists moderations for the current organization" do
|
28
|
+
external_reportable = create :dummy_resource
|
29
|
+
external_moderation = create(:moderation, reportable: external_reportable, report_count: 1, reported_content: external_reportable.reported_searchable_content_text)
|
30
|
+
create(:report, moderation: external_moderation)
|
31
|
+
|
32
|
+
visit current_path
|
33
|
+
|
34
|
+
expect(page).to have_no_selector("tr[data-id=\"#{external_moderation.id}\"]")
|
35
|
+
end
|
36
|
+
|
27
37
|
it "user can review them" do
|
28
38
|
moderations.each do |moderation|
|
29
39
|
within "tr[data-id=\"#{moderation.id}\"]" do
|
@@ -91,6 +101,15 @@ shared_examples "manage moderations" do
|
|
91
101
|
reported_content_slice = moderation.reportable.reported_searchable_content_text.split("\n").first
|
92
102
|
expect(page).to have_content(reported_content_slice)
|
93
103
|
end
|
104
|
+
|
105
|
+
context "when the reported content does not exist" do
|
106
|
+
it "still renders the page" do
|
107
|
+
moderation.reportable.destroy
|
108
|
+
visit current_path
|
109
|
+
|
110
|
+
expect(page).to have_no_selector("tr[data-id=\"#{moderation.id}\"]")
|
111
|
+
end
|
112
|
+
end
|
94
113
|
end
|
95
114
|
|
96
115
|
context "when listing hidden resources" do
|
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.24.
|
4
|
+
version: 0.24.3
|
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: 2021-
|
13
|
+
date: 2021-06-01 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.24.
|
35
|
+
version: 0.24.3
|
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.24.
|
42
|
+
version: 0.24.3
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: devise
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,28 +130,28 @@ dependencies:
|
|
130
130
|
requirements:
|
131
131
|
- - '='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.24.
|
133
|
+
version: 0.24.3
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - '='
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.24.
|
140
|
+
version: 0.24.3
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: decidim-participatory_processes
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
145
|
- - '='
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0.24.
|
147
|
+
version: 0.24.3
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - '='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.24.
|
154
|
+
version: 0.24.3
|
155
155
|
description: Organization administration to manage a single organization.
|
156
156
|
email:
|
157
157
|
- josepjaume@gmail.com
|
@@ -175,7 +175,6 @@ files:
|
|
175
175
|
- app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6
|
176
176
|
- app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6
|
177
177
|
- app/assets/javascripts/decidim/admin/form.js.es6
|
178
|
-
- app/assets/javascripts/decidim/admin/gallery.js.es6
|
179
178
|
- app/assets/javascripts/decidim/admin/import_guidance.js.es6
|
180
179
|
- app/assets/javascripts/decidim/admin/managed_users.js.es6
|
181
180
|
- app/assets/javascripts/decidim/admin/moderations.js.es6
|
@@ -598,6 +597,7 @@ files:
|
|
598
597
|
- app/views/layouts/decidim/admin/_application.html.erb
|
599
598
|
- app/views/layouts/decidim/admin/_callouts_full.html.erb
|
600
599
|
- app/views/layouts/decidim/admin/_header.html.erb
|
600
|
+
- app/views/layouts/decidim/admin/_js_configuration.html.erb
|
601
601
|
- app/views/layouts/decidim/admin/_template_bottom.html.erb
|
602
602
|
- app/views/layouts/decidim/admin/_template_top.html.erb
|
603
603
|
- app/views/layouts/decidim/admin/_title_bar.html.erb
|
@@ -732,9 +732,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
732
732
|
version: '2.7'
|
733
733
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
734
734
|
requirements:
|
735
|
-
- - "
|
735
|
+
- - ">="
|
736
736
|
- !ruby/object:Gem::Version
|
737
|
-
version:
|
737
|
+
version: '0'
|
738
738
|
requirements: []
|
739
739
|
rubygems_version: 3.1.2
|
740
740
|
signing_key:
|