decidim-admin 0.29.0.rc4 → 0.29.1
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.
- checksums.yaml +4 -4
- data/README.md +0 -13
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +1 -1
- data/app/commands/decidim/admin/destroy_component.rb +1 -0
- data/app/controllers/concerns/decidim/admin/filterable.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +0 -1
- data/app/controllers/decidim/admin/organization_external_domain_allowlist_controller.rb +1 -1
- data/app/helpers/decidim/admin/application_helper.rb +13 -0
- data/app/views/decidim/admin/block_user/new.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +4 -3
- data/config/locales/bg.yml +2 -0
- data/config/locales/ca.yml +2 -2
- data/config/locales/cs.yml +7 -0
- data/config/locales/es-MX.yml +2 -0
- data/config/locales/es-PY.yml +2 -0
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +2 -0
- data/config/locales/fi-plain.yml +3 -1
- data/config/locales/fi.yml +7 -5
- data/config/locales/ja.yml +4 -2
- data/config/locales/pt-BR.yml +3 -0
- data/config/locales/ro-RO.yml +9 -3
- data/config/locales/sv.yml +323 -166
- data/lib/decidim/admin/test/manage_paginated_collection_examples.rb +3 -3
- data/lib/decidim/admin/version.rb +1 -1
- data/lib/decidim/admin.rb +0 -15
- metadata +10 -12
- data/app/controllers/concerns/decidim/admin/paginable.rb +0 -20
- data/app/helpers/decidim/admin/paginable/per_page_helper.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f285a47f80f5bdf3a2d992daab51c9945cbccd2c6f714ca15b2529b8923e79
|
4
|
+
data.tar.gz: 8f4965b0ee06c4d6b5fa74418e52d36f03fe239da058d67927b713955e1211d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1df3729f97261f2a3164eff704c5d503e6a4731daf5e5d586476c64f5f0eb4409234e107f82ce972ce1b2f697685e940d420c6d3d3ebc43d39db579c459540
|
7
|
+
data.tar.gz: 6e21939582031fc8774833fbed42bf22647dc359b1e5fffe983e593092e89ad2959ebe94042602ac3ba32e0b2f7f61ff8c1ac8c9db3862884e88d3cad8e99e8f
|
data/README.md
CHANGED
@@ -42,19 +42,6 @@ There are some pages that exist by default and cannot be deleted since there
|
|
42
42
|
are links to them inside the Decidim framework, see `Decidim::StaticPage` for
|
43
43
|
the default list.
|
44
44
|
|
45
|
-
### Pager Configuration
|
46
|
-
|
47
|
-
The number of results shown per page and per page range can be configured in the app `decidim.rb` initializer as follows:
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
Decidim::Admin.configure do |config|
|
51
|
-
config.per_page_range = [15, 50, 100]
|
52
|
-
end
|
53
|
-
```
|
54
|
-
|
55
|
-
* `Decidim::Admin.per_page_range.first` sets the `default_per_page` value for `Decidim::Admin` (in Kaminari)
|
56
|
-
* `Decidim::Admin.per_page_range.last` sets the `max_per_page` value for `Decidim::Admin` (in Kaminari)
|
57
|
-
|
58
45
|
## Contributing
|
59
46
|
|
60
47
|
See [Decidim](https://github.com/decidim/decidim).
|
@@ -27,7 +27,6 @@ module Decidim
|
|
27
27
|
helper Decidim::Admin::IconWithTooltipHelper
|
28
28
|
helper Decidim::Admin::MenuHelper
|
29
29
|
helper Decidim::Admin::ScopesHelper
|
30
|
-
helper Decidim::Admin::Paginable::PerPageHelper
|
31
30
|
helper Decidim::DecidimFormHelper
|
32
31
|
helper Decidim::ReplaceButtonsHelper
|
33
32
|
helper Decidim::ScopesHelper
|
@@ -18,7 +18,7 @@ module Decidim
|
|
18
18
|
enforce_permission_to :update, :organization, organization: current_organization
|
19
19
|
@form = form(OrganizationExternalDomainAllowlistForm).from_params(params)
|
20
20
|
|
21
|
-
UpdateExternalDomainAllowlist.call(@form, current_organization
|
21
|
+
UpdateExternalDomainAllowlist.call(@form, current_organization) do
|
22
22
|
on(:ok) do
|
23
23
|
flash[:notice] = t("domain_allowlist.update.success", scope: "decidim.admin")
|
24
24
|
redirect_to edit_organization_external_domain_allowlist_path
|
@@ -16,6 +16,19 @@ module Decidim
|
|
16
16
|
include Decidim::Admin::ResourceScopeHelper
|
17
17
|
include Decidim::Admin::SearchFormHelper
|
18
18
|
|
19
|
+
# Public: Overwrites the `cell` helper method to automatically set some
|
20
|
+
# common context.
|
21
|
+
#
|
22
|
+
# name - the name of the cell to render
|
23
|
+
# model - the cell model
|
24
|
+
# options - a Hash with options
|
25
|
+
#
|
26
|
+
# Renders the cell contents.
|
27
|
+
def cell(name, model, options = {}, &)
|
28
|
+
options = { context: { view_context: self, current_user: } }.deep_merge(options)
|
29
|
+
super
|
30
|
+
end
|
31
|
+
|
19
32
|
def participatory_space_active_link?(component)
|
20
33
|
endpoints = component.manifest.admin_engine.try(:participatory_space_endpoints)
|
21
34
|
endpoints && is_active_link?(decidim_admin_participatory_processes.components_path(current_participatory_space), %r{/\d+/manage/(#{endpoints.join("|")})\b})
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<%= cell("decidim/announcement", t(".already_reported_html"), callout_class: "alert" ) %>
|
20
20
|
<% end %>
|
21
21
|
|
22
|
-
<% if
|
22
|
+
<% if Decidim.module_installed?(:templates) %>
|
23
23
|
<%= render "decidim/templates/admin/block_user_templates/template_chooser", form: f %>
|
24
24
|
<% end %>
|
25
25
|
|
@@ -54,13 +54,14 @@
|
|
54
54
|
</div>
|
55
55
|
|
56
56
|
<% if current_user.admin? %>
|
57
|
-
<div class="card">
|
57
|
+
<div class="card mb-2">
|
58
58
|
<div class="card-divider">
|
59
59
|
<h2 class="card-title"><%= t ".select_scopes" %></h2>
|
60
60
|
</div>
|
61
61
|
<div class="card-section">
|
62
|
-
<div class="
|
63
|
-
<%=
|
62
|
+
<div class="cell small-12 medium-6 m-4">
|
63
|
+
<%= scopes_select_field f, :scope_ids, options: { include_blank: false }, html_options: { class: "chosen-select", multiple: true, size: 5 } %>
|
64
|
+
<span class="help-text"> <%= t(".scopes_help") %> </span>
|
64
65
|
</div>
|
65
66
|
</div>
|
66
67
|
</div>
|
data/config/locales/bg.yml
CHANGED
data/config/locales/ca.yml
CHANGED
@@ -23,7 +23,7 @@ ca:
|
|
23
23
|
category:
|
24
24
|
description: Descripció
|
25
25
|
name: Nom
|
26
|
-
parent_id:
|
26
|
+
parent_id: Categoria mare
|
27
27
|
weight: Ordre de posició
|
28
28
|
component:
|
29
29
|
name: Nom
|
@@ -110,7 +110,7 @@ ca:
|
|
110
110
|
code: Codi
|
111
111
|
name: Nom
|
112
112
|
organization: Organització
|
113
|
-
parent_id:
|
113
|
+
parent_id: Àmbit pare
|
114
114
|
scope_type: Tipus d'àmbit
|
115
115
|
scope_type_id: Tipus d'àmbit
|
116
116
|
scope_type:
|
data/config/locales/cs.yml
CHANGED
@@ -351,6 +351,8 @@ cs:
|
|
351
351
|
conflicts:
|
352
352
|
attempts: Pokusy
|
353
353
|
'false': 'Ne'
|
354
|
+
index:
|
355
|
+
text: Hledat podle aktuálního uživatelského e-mailu, jména nebo přezdívky.
|
354
356
|
managed_user_name: Spravovaný uživatel
|
355
357
|
solved: Vyřešeno
|
356
358
|
title: Konflikty ověření
|
@@ -379,6 +381,11 @@ cs:
|
|
379
381
|
update: Aktualizovat
|
380
382
|
dashboard:
|
381
383
|
pending_moderations:
|
384
|
+
announcement:
|
385
|
+
one: Je zde %{count} čekající na moderování
|
386
|
+
few: Jsou zde %{count} čekající na moderování
|
387
|
+
many: Je zde %{count} čekajících na moderování
|
388
|
+
other: Je tu %{count} čekajících na moderování
|
382
389
|
goto_moderation: Přejít na globální moderaci
|
383
390
|
title: Čekající moderování
|
384
391
|
show:
|
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -23,7 +23,7 @@ es:
|
|
23
23
|
category:
|
24
24
|
description: Descripción
|
25
25
|
name: Nombre
|
26
|
-
parent_id:
|
26
|
+
parent_id: Categoría madre
|
27
27
|
weight: Orden de posición
|
28
28
|
component:
|
29
29
|
name: Nombre
|
@@ -110,7 +110,7 @@ es:
|
|
110
110
|
code: Código
|
111
111
|
name: Nombre
|
112
112
|
organization: Organización
|
113
|
-
parent_id:
|
113
|
+
parent_id: Ámbito padre
|
114
114
|
scope_type: Tipo de ámbito
|
115
115
|
scope_type_id: Tipo de ámbito
|
116
116
|
scope_type:
|
data/config/locales/eu.yml
CHANGED
@@ -351,6 +351,8 @@ eu:
|
|
351
351
|
conflicts:
|
352
352
|
attempts: Saiakerak
|
353
353
|
'false': 'Ez'
|
354
|
+
index:
|
355
|
+
text: Bilatu gaur egungo erabiltzailearen posta elektronikoaren, izenaren edo ezizenaren bidez.
|
354
356
|
managed_user_name: Erabiltzaile kudeatua
|
355
357
|
solved: Ebatzita
|
356
358
|
title: Egiaztapen-arazoak
|
data/config/locales/fi-plain.yml
CHANGED
@@ -319,7 +319,7 @@ fi-pl:
|
|
319
319
|
create:
|
320
320
|
error: Tämän komponentin luomisessa tapahtui virhe.
|
321
321
|
success: Komponentti luotu onnistuneesti.
|
322
|
-
success_landing_page:
|
322
|
+
success_landing_page: Komponentin luonti onnistui. Voit lisätä sisältölohkon tälle komponentille osallistumistilan etusivulle. Siirry <a href="%{landing_page_path}">Laskeutumissivu-osioon</a> lisätäksesi komponentin osallistumistilan etusivulle.
|
323
323
|
destroy:
|
324
324
|
error: Tämän komponentin tuhoamisessa tapahtui virhe.
|
325
325
|
success: Komponentti poistettu onnistuneesti.
|
@@ -351,6 +351,8 @@ fi-pl:
|
|
351
351
|
conflicts:
|
352
352
|
attempts: Yritykset
|
353
353
|
'false': 'Ei'
|
354
|
+
index:
|
355
|
+
text: Etsi nykyisen käyttäjän sähköpostin, nimen tai nimimerkin perusteella.
|
354
356
|
managed_user_name: Hallittu käyttäjä
|
355
357
|
solved: Ratkaistu
|
356
358
|
title: Vahvistusten ristiriidat
|
data/config/locales/fi.yml
CHANGED
@@ -298,7 +298,7 @@ fi:
|
|
298
298
|
error: Aihepiirin luonti epäonnistui.
|
299
299
|
success: Aihepiirin luonti onnistui.
|
300
300
|
destroy:
|
301
|
-
error: Tämän aihepiirin poistaminen epäonnistui. Poista ensin kaikki sen ala-aihepiirit ja varmista, että mikään muu kohde ei liity tähän aihepiiriin. Kokeile sen jälkeen
|
301
|
+
error: Tämän aihepiirin poistaminen epäonnistui. Poista ensin kaikki sen ala-aihepiirit ja varmista, että mikään muu kohde ei liity tähän aihepiiriin. Kokeile sen jälkeen uudelleen.
|
302
302
|
success: Aihepiirin poistaminen onnistui.
|
303
303
|
edit:
|
304
304
|
title: Muokkaa aihepiiriä
|
@@ -319,7 +319,7 @@ fi:
|
|
319
319
|
create:
|
320
320
|
error: Komponentin luonti epäonnistui.
|
321
321
|
success: Komponentin luonti onnistui.
|
322
|
-
success_landing_page:
|
322
|
+
success_landing_page: Komponentin luonti onnistui. Voit lisätä sisältölohkon tälle komponentille osallistumistilan etusivulle. Siirry <a href="%{landing_page_path}">Laskeutumissivu-osioon</a> lisätäksesi komponentin osallistumistilan etusivulle.
|
323
323
|
destroy:
|
324
324
|
error: Komponentin tuhoaminen epäonnistui.
|
325
325
|
success: Komponentin poisto onnistui.
|
@@ -351,6 +351,8 @@ fi:
|
|
351
351
|
conflicts:
|
352
352
|
attempts: Yritykset
|
353
353
|
'false': 'Ei'
|
354
|
+
index:
|
355
|
+
text: Etsi nykyisen käyttäjän sähköpostin, nimen tai nimimerkin perusteella.
|
354
356
|
managed_user_name: Hallittu käyttäjä
|
355
357
|
solved: Ratkaistu
|
356
358
|
title: Vahvistusten ristiriidat
|
@@ -729,7 +731,7 @@ fi:
|
|
729
731
|
newsletters:
|
730
732
|
create:
|
731
733
|
error: Uutiskirjeen luonti epäonnistui.
|
732
|
-
success:
|
734
|
+
success: Uutiskirjeen luonti onnistui. Tarkasta se ennen lähetystä.
|
733
735
|
deliver:
|
734
736
|
error: Uutiskirjeen toimitus epäonnistui.
|
735
737
|
success: Uutiskirjeen toimitus onnistui.
|
@@ -887,7 +889,7 @@ fi:
|
|
887
889
|
participatory_space_private_users_csv_imports:
|
888
890
|
create:
|
889
891
|
invalid: CSV-tiedoston lukeminen epäonnistui. Tarkasta, että olet seurannut esitettyjä ohjeita.
|
890
|
-
success: CSV-
|
892
|
+
success: CSV-tiedoston lataus onnistui. Lähetämme kutsusähköpostin osallistujille. Tämä voi kestää hetken.
|
891
893
|
new:
|
892
894
|
csv_upload:
|
893
895
|
title: Lataa CSV-tiedosto
|
@@ -1042,7 +1044,7 @@ fi:
|
|
1042
1044
|
user_group:
|
1043
1045
|
csv_verify:
|
1044
1046
|
invalid: CSV-tiedoston käsittely epäonnistui.
|
1045
|
-
success: CSV-
|
1047
|
+
success: CSV-tiedoston lataus onnistui. Vahvistamme kriteerien mukaiset käyttäjäryhmät. Tämä voi kestää hetken.
|
1046
1048
|
reject:
|
1047
1049
|
invalid: Käyttäjäryhmän hylkäys epäonnistui.
|
1048
1050
|
success: Käyttäjäryhmän hylkäys onnistui.
|
data/config/locales/ja.yml
CHANGED
@@ -351,6 +351,8 @@ ja:
|
|
351
351
|
conflicts:
|
352
352
|
attempts: 試行回数
|
353
353
|
'false': 'いいえ'
|
354
|
+
index:
|
355
|
+
text: 現在のユーザーのメールアドレス、名前、ニックネームで検索します。
|
354
356
|
managed_user_name: 管理対象ユーザー
|
355
357
|
solved: 解決済み
|
356
358
|
title: 確認の競合
|
@@ -425,7 +427,7 @@ ja:
|
|
425
427
|
reportable_type_string_eq:
|
426
428
|
label: タイプ
|
427
429
|
officialized_at_null:
|
428
|
-
label:
|
430
|
+
label: 状態
|
429
431
|
values:
|
430
432
|
'false': 公式化済み
|
431
433
|
'true': 公式化されていない
|
@@ -461,7 +463,7 @@ ja:
|
|
461
463
|
title_cont: '%{collection} をタイトルで検索します。'
|
462
464
|
user_name_or_user_nickname_or_user_email_cont: '%{collection} をメール、表示名、アカウントIDで検索します。'
|
463
465
|
state_eq:
|
464
|
-
label:
|
466
|
+
label: 状態
|
465
467
|
values:
|
466
468
|
all: すべて
|
467
469
|
pending: 保留中
|
data/config/locales/pt-BR.yml
CHANGED
@@ -289,6 +289,7 @@ pt-BR:
|
|
289
289
|
block_user:
|
290
290
|
new:
|
291
291
|
action: Bloquear conta e enviar justificativa
|
292
|
+
already_reported_html: Continuar com essa ação também resultará na ocultação o conteúdo de todos os participantes.
|
292
293
|
description: Bloquear um usuário irá tornar sua conta inutilizável. Você pode fornecer em sua justificação quaisquer diretrizes sobre como você poderia considerar desbloquear o usuário.
|
293
294
|
justification: Justificativa
|
294
295
|
title: Bloquear usuário %{name}
|
@@ -350,6 +351,8 @@ pt-BR:
|
|
350
351
|
conflicts:
|
351
352
|
attempts: Tentativas
|
352
353
|
'false': 'Não'
|
354
|
+
index:
|
355
|
+
text: Pesquisar por e-mail, nome ou apelido do usuário.
|
353
356
|
managed_user_name: Usuário gerenciado
|
354
357
|
solved: Resolvido
|
355
358
|
title: Conflitos de verificação
|
data/config/locales/ro-RO.yml
CHANGED
@@ -13,7 +13,7 @@ ro:
|
|
13
13
|
attachment:
|
14
14
|
attachment_collection_id: Dosar
|
15
15
|
description: Descriere
|
16
|
-
file:
|
16
|
+
file: Fișier
|
17
17
|
title: Numele fișierului sau al imaginii atașate
|
18
18
|
weight: Poziție
|
19
19
|
attachment_collection:
|
@@ -38,6 +38,9 @@ ro:
|
|
38
38
|
user_group_id: Creează importuri ca
|
39
39
|
newsletter:
|
40
40
|
body: Conținut
|
41
|
+
send_to_all_users: Trimiteți către toți utilizatorii
|
42
|
+
send_to_followers: Trimiteți către urmăritori
|
43
|
+
send_to_participants: Trimiteți către participanți
|
41
44
|
subject: Titlu
|
42
45
|
organization:
|
43
46
|
admin_terms_of_service_body: Corp pentru condițiile de administrare a serviciului
|
@@ -126,11 +129,12 @@ ro:
|
|
126
129
|
weight: Poziție
|
127
130
|
static_page_topic:
|
128
131
|
description: Descriere
|
132
|
+
name: Titlul subiectului
|
129
133
|
show_in_footer: Afișează în subsol
|
130
134
|
title: Titlu
|
131
135
|
weight: Poziție
|
132
136
|
user_group_csv_verification:
|
133
|
-
file:
|
137
|
+
file: Fișier
|
134
138
|
errors:
|
135
139
|
models:
|
136
140
|
newsletter:
|
@@ -190,6 +194,7 @@ ro:
|
|
190
194
|
per_page: Pe pagină
|
191
195
|
permissions: Drepturi
|
192
196
|
reject: Respinge
|
197
|
+
send_me_a_test_email: Trimite-mi un e-mail de test
|
193
198
|
share: Distribuie
|
194
199
|
user:
|
195
200
|
new: Administrator nou
|
@@ -202,7 +207,7 @@ ro:
|
|
202
207
|
accept: Sunt de acord cu termenii
|
203
208
|
are_you_sure: Sigur doriți să refuzați termenii de utilizare a serviciului?
|
204
209
|
refuse: Refuz termenii
|
205
|
-
title:
|
210
|
+
title: Sunt de acord cu Termenii de Utilizare
|
206
211
|
required_review:
|
207
212
|
alert: 'Necesar: Revizuirea actualizărilor termenilor de utilizare a serviciului'
|
208
213
|
callout: Vă rugăm să dedicați un moment pentru a revizui Termenii de utilizare pentru admin. În caz contrar, nu veți putea administra platforma.
|
@@ -282,6 +287,7 @@ ro:
|
|
282
287
|
block_user:
|
283
288
|
new:
|
284
289
|
action: Blochează contul și trimite justificarea
|
290
|
+
already_reported_html: Continuând cu această acțiune veți ascunde de asemenea conținutul participanților.
|
285
291
|
description: Blocarea unui utilizator va face contul său inutilizabil. Poți să furnizezi în justificarea ta orice instrucțiuni cu privire la modul în care vei lua în considerare deblocarea utilizatorului.
|
286
292
|
justification: Justificare
|
287
293
|
title: Blochează utilizatorul %{name}
|