decidim-admin 0.11.2 → 0.12.0.pre
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 +5 -1
- data/app/assets/javascripts/decidim/admin/bundle.js +47 -0
- data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -0
- data/app/assets/javascripts/decidim/admin/component_permissions.js.es6 +13 -0
- data/app/assets/javascripts/decidim/admin/managed_users.js.es6 +2 -1
- data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +14 -7
- data/app/assets/stylesheets/decidim/admin/_decidim.scss +2 -0
- data/app/assets/stylesheets/decidim/admin/bundle.scss +1 -0
- data/app/assets/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +13 -0
- data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +3 -2
- data/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +7 -0
- data/app/commands/decidim/admin/create_static_page.rb +7 -1
- data/app/commands/decidim/admin/update_component_permissions.rb +9 -3
- data/app/commands/decidim/admin/update_organization_tos_version.rb +47 -0
- data/app/commands/decidim/admin/update_static_page.rb +5 -0
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +6 -3
- data/app/controllers/concerns/decidim/admin/participatory_space_admin_context.rb +2 -2
- data/app/controllers/decidim/admin/application_controller.rb +14 -5
- data/app/controllers/decidim/admin/area_types_controller.rb +6 -6
- data/app/controllers/decidim/admin/areas_controller.rb +6 -6
- data/app/controllers/decidim/admin/authorization_workflows_controller.rb +1 -1
- data/app/controllers/decidim/admin/categories_controller.rb +7 -7
- data/app/controllers/decidim/admin/component_permissions_controller.rb +20 -8
- data/app/controllers/decidim/admin/components/base_controller.rb +19 -3
- data/app/controllers/decidim/admin/components_controller.rb +8 -8
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +8 -8
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +11 -9
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +5 -5
- data/app/controllers/decidim/admin/dashboard_controller.rb +4 -2
- data/app/controllers/decidim/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/admin/impersonatable_users_controller.rb +7 -1
- data/app/controllers/decidim/admin/impersonations_controller.rb +2 -4
- data/app/controllers/decidim/admin/logs_controller.rb +4 -2
- data/app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb +0 -2
- data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +2 -2
- data/app/controllers/decidim/admin/moderations_controller.rb +4 -4
- data/app/controllers/decidim/admin/newsletters_controller.rb +9 -9
- data/app/controllers/decidim/admin/oauth_applications_controller.rb +7 -7
- data/app/controllers/decidim/admin/officializations_controller.rb +4 -5
- data/app/controllers/decidim/admin/organization_appearance_controller.rb +2 -2
- data/app/controllers/decidim/admin/organization_controller.rb +21 -2
- data/app/controllers/decidim/admin/scope_types_controller.rb +6 -6
- data/app/controllers/decidim/admin/scopes_controller.rb +7 -7
- data/app/controllers/decidim/admin/static_pages_controller.rb +16 -7
- data/app/controllers/decidim/admin/user_groups_controller.rb +3 -3
- data/app/controllers/decidim/admin/users_controller.rb +5 -5
- data/app/forms/decidim/admin/managed_user_promotion_form.rb +1 -1
- data/app/forms/decidim/admin/permission_form.rb +12 -15
- data/app/forms/decidim/admin/static_page_form.rb +1 -0
- data/app/frontend/components/autocomplete.component.test.tsx +19 -0
- data/app/frontend/components/autocomplete.component.tsx +169 -0
- data/app/frontend/entry.ts +17 -0
- data/app/frontend/entry_test.ts +4 -0
- data/app/helpers/decidim/admin/application_helper.rb +0 -4
- data/app/permissions/decidim/admin/permissions.rb +161 -0
- data/app/permissions/decidim/admin/user_manager_permissions.rb +66 -0
- data/app/views/decidim/admin/area_types/index.html.erb +8 -4
- data/app/views/decidim/admin/areas/index.html.erb +6 -3
- data/app/views/decidim/admin/attachment_collections/index.html.erb +3 -3
- data/app/views/decidim/admin/attachment_collections/show.html.erb +2 -2
- data/app/views/decidim/admin/attachments/index.html.erb +3 -3
- data/app/views/decidim/admin/attachments/show.html.erb +2 -2
- data/app/views/decidim/admin/categories/index.html.erb +5 -5
- data/app/views/decidim/admin/categories/show.html.erb +2 -2
- data/app/views/decidim/admin/component_permissions/_options_form.html.erb +14 -0
- data/app/views/decidim/admin/component_permissions/edit.html.erb +37 -16
- data/app/views/decidim/admin/components/_component.html.erb +6 -4
- data/app/views/decidim/admin/components/_form.html.erb +6 -6
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +5 -3
- data/app/views/decidim/admin/moderations/index.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/index.html.erb +5 -3
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/oauth_applications/index.html.erb +5 -3
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +3 -3
- data/app/views/decidim/admin/scope_types/index.html.erb +5 -3
- data/app/views/decidim/admin/scopes/index.html.erb +4 -4
- data/app/views/decidim/admin/static_pages/_form.html.erb +3 -1
- data/app/views/decidim/admin/static_pages/_form_notable_changes.html.erb +9 -0
- data/app/views/decidim/admin/static_pages/index.html.erb +11 -3
- data/app/views/decidim/admin/static_pages/show.html.erb +2 -2
- data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
- data/app/views/decidim/admin/users/index.html.erb +5 -3
- data/app/views/layouts/decidim/admin/_application.html.erb +0 -1
- data/app/views/layouts/decidim/admin/_template_top.html.erb +1 -0
- data/app/views/layouts/decidim/admin/users.html.erb +4 -4
- data/config/locales/ca.yml +8 -0
- data/config/locales/en.yml +8 -0
- data/config/locales/es.yml +8 -0
- data/config/locales/eu.yml +8 -0
- data/config/locales/fi.yml +8 -0
- data/config/locales/fr.yml +8 -0
- data/config/locales/gl.yml +8 -0
- data/config/locales/it.yml +8 -0
- data/config/locales/nl.yml +8 -0
- data/config/locales/pl.yml +8 -0
- data/config/locales/pt-BR.yml +8 -0
- data/config/locales/pt.yml +8 -0
- data/config/locales/ru.yml +11 -3
- data/config/locales/sv.yml +8 -0
- data/config/locales/uk.yml +8 -0
- data/config/routes.rb +5 -1
- data/lib/decidim/admin.rb +1 -0
- data/lib/decidim/admin/engine.rb +17 -20
- data/lib/decidim/admin/form_builder.rb +64 -0
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +92 -15
- data/lib/decidim/admin/version.rb +1 -1
- metadata +25 -17
- data/app/models/decidim/admin/abilities/admin_ability.rb +0 -76
- data/app/models/decidim/admin/abilities/base_ability.rb +0 -21
- data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +0 -58
- data/app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb +0 -19
- data/app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb +0 -23
- data/app/models/decidim/admin/abilities/user_manager_ability.rb +0 -34
- data/app/models/decidim/admin/application_record.rb +0 -11
data/config/locales/fr.yml
CHANGED
@@ -64,6 +64,7 @@ fr:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Préfixe de référence
|
66
66
|
show_statistics: Montrer les statistiques
|
67
|
+
tos_version: Conditions d'utilisation
|
67
68
|
twitter_handler: Gestionnaire Twitter
|
68
69
|
welcome_text: Texte de bienvenue
|
69
70
|
youtube_handler: Gestionnaire YouTube
|
@@ -79,6 +80,7 @@ fr:
|
|
79
80
|
organization: Organisation
|
80
81
|
plural: Pluriel
|
81
82
|
static_page:
|
83
|
+
changed_notably: Il y a eu des changements notables.
|
82
84
|
content: Contenu
|
83
85
|
organization: Organisation
|
84
86
|
slug: Identifiant
|
@@ -210,6 +212,9 @@ fr:
|
|
210
212
|
update:
|
211
213
|
error: Une erreur s'est produite lors de la mise à jour de ce document lié.
|
212
214
|
success: Document lié mis à jour avec succès.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Aucun résultat trouvé
|
217
|
+
search_prompt: Renseignez au moins trois caractères pour lancer la recherche
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Une erreur s'est produite lors de la création de cette catégorie.
|
@@ -571,8 +576,11 @@ fr:
|
|
571
576
|
destroy:
|
572
577
|
success: La page a été détruite avec succès
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Si cette case est cochée, les utilisateurs seront avisés d'accepter les nouvelles modalités et conditions.
|
574
580
|
title: Modifier la page
|
575
581
|
update: Mettre à jour
|
582
|
+
index:
|
583
|
+
last_notable_change: Dernier changement notable
|
576
584
|
new:
|
577
585
|
create: Créer
|
578
586
|
title: Nouvelle page
|
data/config/locales/gl.yml
CHANGED
@@ -64,6 +64,7 @@ gl:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Prefijo de referencia
|
66
66
|
show_statistics: Amosar estatísticas
|
67
|
+
tos_version: Versión de condicións de servizo
|
67
68
|
twitter_handler: Xestor de Twitter
|
68
69
|
welcome_text: Texto de benvida
|
69
70
|
youtube_handler: Xestor de YouTube
|
@@ -79,6 +80,7 @@ gl:
|
|
79
80
|
organization: Organización
|
80
81
|
plural: Plural
|
81
82
|
static_page:
|
83
|
+
changed_notably: Houbo cambios notables.
|
82
84
|
content: Contido
|
83
85
|
organization: Organización
|
84
86
|
slug: URL slug
|
@@ -210,6 +212,9 @@ gl:
|
|
210
212
|
update:
|
211
213
|
error: Produciuse un erro ao actualizar este anexo.
|
212
214
|
success: Adxunto actualizado correctamente.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Non se atoparon resultados
|
217
|
+
search_prompt: Escriba polo menos tres caracteres para buscar
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Houbo un erro ao crear esta categoría.
|
@@ -571,8 +576,11 @@ gl:
|
|
571
576
|
destroy:
|
572
577
|
success: Páxina destruída con éxito
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Se está marcado, os usuarios serán notificados para aceptar os novos termos e condicións.
|
574
580
|
title: Editar páxina
|
575
581
|
update: Actualización
|
582
|
+
index:
|
583
|
+
last_notable_change: Último cambio notable
|
576
584
|
new:
|
577
585
|
create: Crear
|
578
586
|
title: Nova páxina
|
data/config/locales/it.yml
CHANGED
@@ -64,6 +64,7 @@ it:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Prefisso
|
66
66
|
show_statistics: Mostra statistiche
|
67
|
+
tos_version: Termini di versione del servizio
|
67
68
|
twitter_handler: Gestore di Twitter
|
68
69
|
welcome_text: Testo di benvenuto
|
69
70
|
youtube_handler: Gestore di YouTube
|
@@ -79,6 +80,7 @@ it:
|
|
79
80
|
organization: Organizzazione
|
80
81
|
plural: Plurale
|
81
82
|
static_page:
|
83
|
+
changed_notably: Ci sono stati cambiamenti evidenti.
|
82
84
|
content: Contenuto
|
83
85
|
organization: Organizzazione
|
84
86
|
slug: URL slug
|
@@ -210,6 +212,9 @@ it:
|
|
210
212
|
update:
|
211
213
|
error: Si è verificato un errore durante l'aggiornamento di questo allegato.
|
212
214
|
success: Allegato modificato con successo.
|
215
|
+
autocomplete:
|
216
|
+
no_results: nessun risultato trovato
|
217
|
+
search_prompt: Digitare almeno tre caratteri da cercare
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Si è verificato un errore durante la creazione di questa categoria.
|
@@ -571,8 +576,11 @@ it:
|
|
571
576
|
destroy:
|
572
577
|
success: OK, la pagina è stata eliminata.
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Se selezionato, gli utenti saranno avvisati di accettare i nuovi termini e condizioni.
|
574
580
|
title: Modifica la pagina
|
575
581
|
update: Aggiorna
|
582
|
+
index:
|
583
|
+
last_notable_change: Ultimo cambiamento notevole
|
576
584
|
new:
|
577
585
|
create: Creare
|
578
586
|
title: Nuova pagina
|
data/config/locales/nl.yml
CHANGED
@@ -64,6 +64,7 @@ nl:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Referentievoorvoegsel
|
66
66
|
show_statistics: Toon statistieken
|
67
|
+
tos_version: Servicevoorwaarden versie
|
67
68
|
twitter_handler: Twitter gebruikersnaam
|
68
69
|
welcome_text: Welkomsttekst
|
69
70
|
youtube_handler: YouTube gebruikersnaam
|
@@ -79,6 +80,7 @@ nl:
|
|
79
80
|
organization: Organisatie
|
80
81
|
plural: Meervoud
|
81
82
|
static_page:
|
83
|
+
changed_notably: Er zijn merkbare veranderingen geweest.
|
82
84
|
content: Inhoud
|
83
85
|
organization: Organisatie
|
84
86
|
slug: URL slug
|
@@ -210,6 +212,9 @@ nl:
|
|
210
212
|
update:
|
211
213
|
error: Er is een fout opgetreden bij het bijwerken van deze bijlage.
|
212
214
|
success: Bijlage is succesvol bijgewerkt.
|
215
|
+
autocomplete:
|
216
|
+
no_results: geen resultaten gevonden
|
217
|
+
search_prompt: Typ minimaal drie tekens om te zoeken
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Er is een fout opgetreden bij het maken van deze categorie.
|
@@ -571,8 +576,11 @@ nl:
|
|
571
576
|
destroy:
|
572
577
|
success: Pagina succesvol vernietigd
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Indien ingeschakeld, zullen gebruikers op de hoogte worden gesteld van de nieuwe algemene voorwaarden.
|
574
580
|
title: Pagina bewerken
|
575
581
|
update: Bijwerken
|
582
|
+
index:
|
583
|
+
last_notable_change: Laatste opvallende verandering
|
576
584
|
new:
|
577
585
|
create: creëren
|
578
586
|
title: Nieuwe pagina
|
data/config/locales/pl.yml
CHANGED
@@ -64,6 +64,7 @@ pl:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Prefiks referencyjny
|
66
66
|
show_statistics: Pokaż statystyki
|
67
|
+
tos_version: Warunki korzystania z usługi
|
67
68
|
twitter_handler: Obsługa Twittera
|
68
69
|
welcome_text: Tekst powitalny
|
69
70
|
youtube_handler: Poradnik YouTube
|
@@ -79,6 +80,7 @@ pl:
|
|
79
80
|
organization: Organizacja
|
80
81
|
plural: Liczba mnoga
|
81
82
|
static_page:
|
83
|
+
changed_notably: Nastąpiły zauważalne zmiany.
|
82
84
|
content: Zadowolony
|
83
85
|
organization: Organizacja
|
84
86
|
slug: Ślimak URL
|
@@ -210,6 +212,9 @@ pl:
|
|
210
212
|
update:
|
211
213
|
error: Podczas aktualizowania tego załącznika wystąpił błąd.
|
212
214
|
success: Załącznik został zaktualizowany.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Nie znaleziono wyników
|
217
|
+
search_prompt: Wpisz co najmniej trzy znaki do wyszukania
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Podczas tworzenia tej kategorii wystąpił błąd.
|
@@ -571,8 +576,11 @@ pl:
|
|
571
576
|
destroy:
|
572
577
|
success: Strona została z powodzeniem zniszczona
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Jeśli ta opcja jest zaznaczona, użytkownicy zostaną powiadomieni o zaakceptowaniu nowych warunków.
|
574
580
|
title: Edytuj stronę
|
575
581
|
update: Aktualizacja
|
582
|
+
index:
|
583
|
+
last_notable_change: Ostatnia godna uwagi zmiana
|
576
584
|
new:
|
577
585
|
create: Stwórz
|
578
586
|
title: Nowa strona
|
data/config/locales/pt-BR.yml
CHANGED
@@ -64,6 +64,7 @@ pt-BR:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Prefixo de referência
|
66
66
|
show_statistics: Exibir estatisticas
|
67
|
+
tos_version: Termos de versão do serviço
|
67
68
|
twitter_handler: Manipulador do Twitter
|
68
69
|
welcome_text: Texto de boas-vindas
|
69
70
|
youtube_handler: Manipulador do YouTube
|
@@ -79,6 +80,7 @@ pt-BR:
|
|
79
80
|
organization: Organização
|
80
81
|
plural: Plural
|
81
82
|
static_page:
|
83
|
+
changed_notably: Houve mudanças notáveis.
|
82
84
|
content: Conteúdo
|
83
85
|
organization: Organização
|
84
86
|
slug: Texto curto de URL
|
@@ -210,6 +212,9 @@ pt-BR:
|
|
210
212
|
update:
|
211
213
|
error: Ocorreu um erro ao atualizar este anexo.
|
212
214
|
success: Anexo atualizado com sucesso.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Nenhum resultado encontrado
|
217
|
+
search_prompt: Digite, no mínimo, três caracteres para pesquisar
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Ocorreu um erro ao criar esta categoria.
|
@@ -571,8 +576,11 @@ pt-BR:
|
|
571
576
|
destroy:
|
572
577
|
success: Página destruída com sucesso
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Se marcado, os usuários serão notificados para aceitar os novos termos e condições.
|
574
580
|
title: Editar página
|
575
581
|
update: Atualizar
|
582
|
+
index:
|
583
|
+
last_notable_change: Última alteração notável
|
576
584
|
new:
|
577
585
|
create: Criar
|
578
586
|
title: Nova página
|
data/config/locales/pt.yml
CHANGED
@@ -64,6 +64,7 @@ pt:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Prefixo de referência
|
66
66
|
show_statistics: Mostre estatisticas
|
67
|
+
tos_version: Termos de versão do serviço
|
67
68
|
twitter_handler: Manipulador do Twitter
|
68
69
|
welcome_text: Texto de boas-vindas
|
69
70
|
youtube_handler: Manipulador do YouTube
|
@@ -79,6 +80,7 @@ pt:
|
|
79
80
|
organization: Organização
|
80
81
|
plural: Plural
|
81
82
|
static_page:
|
83
|
+
changed_notably: Houve mudanças notáveis.
|
82
84
|
content: Conteúdo
|
83
85
|
organization: Organização
|
84
86
|
slug: Texto curto de URL
|
@@ -210,6 +212,9 @@ pt:
|
|
210
212
|
update:
|
211
213
|
error: Ocorreu um erro ao atualizar este anexo.
|
212
214
|
success: Anexo atualizado com sucesso.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Nenhum resultado encontrado
|
217
|
+
search_prompt: Digite pelo menos três caracteres para pesquisar
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Ocorreu um erro ao criar esta categoria.
|
@@ -571,8 +576,11 @@ pt:
|
|
571
576
|
destroy:
|
572
577
|
success: Página destruída com sucesso
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Se marcado, os usuários serão notificados para aceitar os novos termos e condições.
|
574
580
|
title: Editar Página
|
575
581
|
update: Actualizar
|
582
|
+
index:
|
583
|
+
last_notable_change: Última alteração notável
|
576
584
|
new:
|
577
585
|
create: Crio
|
578
586
|
title: Nova página
|
data/config/locales/ru.yml
CHANGED
@@ -23,7 +23,7 @@ ru:
|
|
23
23
|
parent_id: Родительский объект
|
24
24
|
component:
|
25
25
|
name: Название
|
26
|
-
published_at: '
|
26
|
+
published_at: 'Обнародовано:'
|
27
27
|
weight: Вес
|
28
28
|
id: Псевдоним
|
29
29
|
newsletter:
|
@@ -64,6 +64,7 @@ ru:
|
|
64
64
|
omnipresent_banner_url: Веб-адрес
|
65
65
|
reference_prefix: Справочный префикс
|
66
66
|
show_statistics: Показывать статистику
|
67
|
+
tos_version: Версия условий участия
|
67
68
|
twitter_handler: Обработчик Twitter
|
68
69
|
welcome_text: Текст приветствия
|
69
70
|
youtube_handler: Обработчик YouTube
|
@@ -79,6 +80,7 @@ ru:
|
|
79
80
|
organization: Организация
|
80
81
|
plural: Множественное число
|
81
82
|
static_page:
|
83
|
+
changed_notably: Произошли заметные изменения.
|
82
84
|
content: Содержание
|
83
85
|
organization: Организация
|
84
86
|
slug: Сокращенный URL-адрес
|
@@ -210,6 +212,9 @@ ru:
|
|
210
212
|
update:
|
211
213
|
error: При обновлении этого прикрепленного файла произошла ошибка.
|
212
214
|
success: Прикрепленный файл успешно обновлен.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Ничего не найдено
|
217
|
+
search_prompt: Введите не менее трех символов для поиска
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: При создании этого разряда произошла ошибка.
|
@@ -260,10 +265,10 @@ ru:
|
|
260
265
|
add: Добавить составляющую
|
261
266
|
title: 'Добавить составляющую: %{name}'
|
262
267
|
publish:
|
263
|
-
success: Эта составляющая успешно
|
268
|
+
success: Эта составляющая успешно обнародована.
|
264
269
|
title: Составляющие
|
265
270
|
unpublish:
|
266
|
-
success:
|
271
|
+
success: Обнародование этой составляющей успешно отменено.
|
267
272
|
update:
|
268
273
|
error: При обновлении этой составляющей произошла ошибка.
|
269
274
|
success: Эта составляющая была успешно обновлена.
|
@@ -571,8 +576,11 @@ ru:
|
|
571
576
|
destroy:
|
572
577
|
success: Страница успешно удалена
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Если этот флажок установлен, участники получат уведомление о необходимости принять новые условия участия.
|
574
580
|
title: Отредактировать страницу
|
575
581
|
update: Обновить
|
582
|
+
index:
|
583
|
+
last_notable_change: Последнее заметное изменение
|
576
584
|
new:
|
577
585
|
create: Создать
|
578
586
|
title: Создать страницу
|
data/config/locales/sv.yml
CHANGED
@@ -64,6 +64,7 @@ sv:
|
|
64
64
|
omnipresent_banner_url: URL
|
65
65
|
reference_prefix: Referensprefix
|
66
66
|
show_statistics: Visa statistik
|
67
|
+
tos_version: Användarvillkor version
|
67
68
|
twitter_handler: Twitter-hanterare
|
68
69
|
welcome_text: Välkomsttext
|
69
70
|
youtube_handler: YouTube-hanterare
|
@@ -79,6 +80,7 @@ sv:
|
|
79
80
|
organization: Organisation
|
80
81
|
plural: Flertal
|
81
82
|
static_page:
|
83
|
+
changed_notably: Det har förekommit märkbara förändringar.
|
82
84
|
content: Innehåll
|
83
85
|
organization: Organisation
|
84
86
|
slug: URL slug
|
@@ -210,6 +212,9 @@ sv:
|
|
210
212
|
update:
|
211
213
|
error: Det uppstod ett fel vid uppdateringen av den här bilagan.
|
212
214
|
success: Bilagan uppdaterades framgångsrikt.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Inga resultat funna
|
217
|
+
search_prompt: Skriv minst tre tecken att söka
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: Det uppstod ett fel vid skapandet av den här kategorin.
|
@@ -571,8 +576,11 @@ sv:
|
|
571
576
|
destroy:
|
572
577
|
success: Sidan förstördes framgångsrikt
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Om den är markerad kommer användarna att bli underrättad om att acceptera de nya villkoren.
|
574
580
|
title: Redigera sida
|
575
581
|
update: Uppdatera
|
582
|
+
index:
|
583
|
+
last_notable_change: Senast anmärkningsvärda förändring
|
576
584
|
new:
|
577
585
|
create: Skapa
|
578
586
|
title: Ny sida
|
data/config/locales/uk.yml
CHANGED
@@ -64,6 +64,7 @@ uk:
|
|
64
64
|
omnipresent_banner_url: Веб-адреса
|
65
65
|
reference_prefix: Довідковий префікс
|
66
66
|
show_statistics: Показувати статистику
|
67
|
+
tos_version: Версія умов участі
|
67
68
|
twitter_handler: Адреса Twitter
|
68
69
|
welcome_text: Текст привітання
|
69
70
|
youtube_handler: Адреса YouTube
|
@@ -79,6 +80,7 @@ uk:
|
|
79
80
|
organization: Організація
|
80
81
|
plural: Множина
|
81
82
|
static_page:
|
83
|
+
changed_notably: Було внесено помітні зміни.
|
82
84
|
content: Вміст
|
83
85
|
organization: Організація
|
84
86
|
slug: Скорочена веб-адреса
|
@@ -210,6 +212,9 @@ uk:
|
|
210
212
|
update:
|
211
213
|
error: При оновленні цього вкладеного файлу сталася помилка.
|
212
214
|
success: Вкладений файл успішно оновлено.
|
215
|
+
autocomplete:
|
216
|
+
no_results: Нічого не знайдено
|
217
|
+
search_prompt: Введіть принаймні три символи для пошуку
|
213
218
|
categories:
|
214
219
|
create:
|
215
220
|
error: При створенні цього розряду сталася помилка.
|
@@ -571,8 +576,11 @@ uk:
|
|
571
576
|
destroy:
|
572
577
|
success: Сторінку успішно видалено
|
573
578
|
edit:
|
579
|
+
changed_notably_help: Якщо позначено цей пункт, учасникам буде надіслано сповіщення щодо прийняття нових умов участі.
|
574
580
|
title: Редагувати сторінку
|
575
581
|
update: Оновити
|
582
|
+
index:
|
583
|
+
last_notable_change: Остання помітна зміна
|
576
584
|
new:
|
577
585
|
create: Створити
|
578
586
|
title: Створити сторінку
|
data/config/routes.rb
CHANGED
@@ -4,6 +4,10 @@ Decidim::Admin::Engine.routes.draw do
|
|
4
4
|
constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do
|
5
5
|
resource :organization, only: [:edit, :update], controller: "organization" do
|
6
6
|
resource :appearance, only: [:edit, :update], controller: "organization_appearance"
|
7
|
+
|
8
|
+
member do
|
9
|
+
get :users
|
10
|
+
end
|
7
11
|
end
|
8
12
|
|
9
13
|
Decidim.participatory_space_manifests.each do |manifest|
|
@@ -36,7 +40,7 @@ Decidim::Admin::Engine.routes.draw do
|
|
36
40
|
resources :impersonatable_users, only: [:index] do
|
37
41
|
resources :promotions, controller: "managed_users/promotions", only: [:new, :create]
|
38
42
|
resources :impersonation_logs, controller: "managed_users/impersonation_logs", only: [:index]
|
39
|
-
resources :impersonations, controller: "
|
43
|
+
resources :impersonations, controller: "impersonations", only: [:new, :create] do
|
40
44
|
collection do
|
41
45
|
post :close_session
|
42
46
|
end
|
data/lib/decidim/admin.rb
CHANGED
data/lib/decidim/admin/engine.rb
CHANGED
@@ -31,18 +31,6 @@ module Decidim
|
|
31
31
|
app.config.assets.precompile += %w(decidim_admin_manifest.js)
|
32
32
|
end
|
33
33
|
|
34
|
-
initializer "decidim_admin.inject_abilities_to_user" do |_app|
|
35
|
-
Decidim.configure do |config|
|
36
|
-
config.admin_abilities += [
|
37
|
-
"Decidim::Admin::Abilities::AdminAbility",
|
38
|
-
"Decidim::Admin::Abilities::UserManagerAbility",
|
39
|
-
"Decidim::Admin::Abilities::ParticipatoryProcessAdminAbility",
|
40
|
-
"Decidim::Admin::Abilities::ParticipatoryProcessCollaboratorAbility",
|
41
|
-
"Decidim::Admin::Abilities::ParticipatoryProcessModeratorAbility"
|
42
|
-
]
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
34
|
initializer "decidim_admin.menu" do
|
47
35
|
Decidim.menu :admin_menu do |menu|
|
48
36
|
menu.item I18n.t("menu.dashboard", scope: "decidim.admin"),
|
@@ -56,42 +44,51 @@ module Decidim
|
|
56
44
|
icon_name: "book",
|
57
45
|
position: 4,
|
58
46
|
active: :inclusive,
|
59
|
-
if:
|
47
|
+
if: allowed_to?(:read, :static_page)
|
60
48
|
|
61
49
|
menu.item I18n.t("menu.users", scope: "decidim.admin"),
|
62
|
-
|
50
|
+
allowed_to?(:read, :admin_user) ? decidim_admin.users_path : decidim_admin.impersonatable_users_path,
|
63
51
|
icon_name: "person",
|
64
52
|
position: 5,
|
65
53
|
active: [%w(user_groups users managed_users impersonatable_users authorization_workflows).map { |segment| "/decidim/admin/#{segment}" }, []],
|
66
|
-
if:
|
54
|
+
if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
|
67
55
|
|
68
56
|
menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
|
69
57
|
decidim_admin.newsletters_path,
|
70
58
|
icon_name: "envelope-closed",
|
71
59
|
position: 6,
|
72
60
|
active: :inclusive,
|
73
|
-
if:
|
61
|
+
if: allowed_to?(:index, :newsletter)
|
74
62
|
|
75
63
|
menu.item I18n.t("menu.settings", scope: "decidim.admin"),
|
76
64
|
decidim_admin.edit_organization_path,
|
77
65
|
icon_name: "wrench",
|
78
66
|
position: 7,
|
79
|
-
active: [
|
80
|
-
|
67
|
+
active: [
|
68
|
+
%w(
|
69
|
+
decidim/admin/organization
|
70
|
+
decidim/admin/organization_appearance
|
71
|
+
decidim/admin/scopes
|
72
|
+
decidim/admin/scope_types
|
73
|
+
decidim/admin/areas decidim/admin/area_types
|
74
|
+
),
|
75
|
+
[]
|
76
|
+
],
|
77
|
+
if: allowed_to?(:update, :organization, organization: current_organization)
|
81
78
|
|
82
79
|
menu.item I18n.t("menu.admin_log", scope: "decidim.admin"),
|
83
80
|
decidim_admin.logs_path,
|
84
81
|
icon_name: "dashboard",
|
85
82
|
position: 10,
|
86
83
|
active: [%w(decidim/admin/logs), []],
|
87
|
-
if:
|
84
|
+
if: allowed_to?(:read, :admin_log)
|
88
85
|
|
89
86
|
menu.item I18n.t("menu.oauth_applications", scope: "decidim.admin"),
|
90
87
|
decidim_admin.oauth_applications_path,
|
91
88
|
icon_name: "dashboard",
|
92
89
|
position: 11,
|
93
90
|
active: [%w(decidim/admin/oauth_applications), []],
|
94
|
-
if:
|
91
|
+
if: allowed_to?(:read, :oauth_application)
|
95
92
|
end
|
96
93
|
end
|
97
94
|
end
|