decidim-assemblies 0.31.7 → 0.31.8
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/app/controllers/decidim/assemblies/admin/assembly_attachment_collections_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/assembly_exports_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/assembly_landing_page_controller.rb +8 -2
- data/app/controllers/decidim/assemblies/admin/assembly_share_tokens_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/component_share_tokens_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/concerns/assembly_admin.rb +6 -3
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_csv_imports_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/participatory_space_private_users_controller.rb +9 -0
- data/app/views/decidim/assemblies/participatory_space_private_users/index.html.erb +2 -0
- data/config/locales/ca.yml +1 -1
- data/config/locales/de.yml +134 -129
- data/config/locales/eu.yml +17 -17
- data/config/locales/fr.yml +3 -0
- data/config/locales/gl.yml +209 -34
- data/config/locales/he-IL.yml +0 -3
- data/config/locales/pt-BR.yml +3 -3
- data/config/locales/sv.yml +6 -0
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 834c37a80060af9ef0ae034c1b6d1c70a4be1d683d88ce0b7dfcdba71a0306c1
|
|
4
|
+
data.tar.gz: eec0950f3a0b1dc4df44248647ec0194c29fe5451f94ecdcba674dfb6539861c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ea29cb86748c9ffd6f3f03e5a35f7241a7e82d31fa29475443421545367c96b7c5a7338cb0575c87a252d2fbe5b934ee72e4abf67d5d1d1c50c3672355fc5ef
|
|
7
|
+
data.tar.gz: 879d9eeb1d3d477447098b53e82fc72423c4f340a4c00d2ba189fd57b289abacba6aa435348657c40b93be298fbd7d8f3bee44396dd4c82cf1a75448a90aa738
|
|
@@ -10,12 +10,18 @@ module Decidim
|
|
|
10
10
|
|
|
11
11
|
layout "decidim/admin/assembly"
|
|
12
12
|
|
|
13
|
+
helper_method :scoped_resource
|
|
14
|
+
|
|
15
|
+
def scoped_resource
|
|
16
|
+
current_participatory_space
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
protected
|
|
20
|
+
|
|
13
21
|
def content_block_scope
|
|
14
22
|
current_participatory_space_manifest.content_blocks_scope_name
|
|
15
23
|
end
|
|
16
24
|
|
|
17
|
-
alias scoped_resource current_participatory_space
|
|
18
|
-
|
|
19
25
|
def enforce_permission_to_update_resource
|
|
20
26
|
enforce_permission_to :update, :assembly, assembly: scoped_resource
|
|
21
27
|
end
|
|
@@ -19,19 +19,22 @@ module Decidim
|
|
|
19
19
|
|
|
20
20
|
included do
|
|
21
21
|
include Decidim::Admin::ParticipatorySpaceAdminContext
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
helper_method :current_assembly, :current_participatory_space
|
|
23
24
|
add_breadcrumb_item_from_menu :admin_assembly_menu
|
|
24
25
|
|
|
25
26
|
participatory_space_admin_layout
|
|
26
27
|
|
|
28
|
+
def current_participatory_space = current_assembly
|
|
29
|
+
|
|
30
|
+
protected
|
|
31
|
+
|
|
27
32
|
def current_assembly
|
|
28
33
|
@current_assembly ||= organization_assemblies.find_by!(
|
|
29
34
|
slug: params[:assembly_slug] || params[:slug]
|
|
30
35
|
)
|
|
31
36
|
end
|
|
32
37
|
|
|
33
|
-
alias_method :current_participatory_space, :current_assembly
|
|
34
|
-
|
|
35
38
|
def organization_assemblies
|
|
36
39
|
@organization_assemblies ||= OrganizationAssemblies.new(current_organization).query
|
|
37
40
|
end
|
|
@@ -5,10 +5,12 @@ module Decidim
|
|
|
5
5
|
class ParticipatorySpacePrivateUsersController < Decidim::Assemblies::ApplicationController
|
|
6
6
|
include ParticipatorySpaceContext
|
|
7
7
|
include Decidim::HasMembersPage
|
|
8
|
+
include Paginable
|
|
8
9
|
|
|
9
10
|
def index
|
|
10
11
|
raise ActionController::RoutingError, "No members for this assembly" if members.none?
|
|
11
12
|
|
|
13
|
+
@members = paginate(members)
|
|
12
14
|
enforce_permission_to :list, :members
|
|
13
15
|
redirect_to decidim_assemblies.assembly_path(current_participatory_space) unless can_visit_index?
|
|
14
16
|
end
|
|
@@ -22,6 +24,13 @@ module Decidim
|
|
|
22
24
|
OrganizationAssemblies.new(current_organization).query.where(id: params[:assembly_slug])
|
|
23
25
|
).first!
|
|
24
26
|
end
|
|
27
|
+
|
|
28
|
+
def page_params
|
|
29
|
+
{
|
|
30
|
+
per_page:,
|
|
31
|
+
page: params[:page]
|
|
32
|
+
}
|
|
33
|
+
end
|
|
25
34
|
end
|
|
26
35
|
end
|
|
27
36
|
end
|
data/config/locales/ca.yml
CHANGED
|
@@ -364,7 +364,7 @@ ca:
|
|
|
364
364
|
assemblies:
|
|
365
365
|
create_assembly_member:
|
|
366
366
|
email_intro: Una administradora de l'assemblea <a href="%{resource_url}">%{resource_name}</a> t'ha afegit com a un dels seus membres.
|
|
367
|
-
email_outro: Reps aquesta notificació perquè t'han convidat a una assemblea. Entra en <a href="%{resource_url}">
|
|
367
|
+
email_outro: Reps aquesta notificació perquè t'han convidat a una assemblea. Entra en <a href="%{resource_url}">pàgina de l'assemblea</a> per a contribuir-hi!
|
|
368
368
|
email_subject: T'han convidat a ser membre de l'assemblea %{resource_name}!
|
|
369
369
|
notification_title: T'han registrat com a membre de l'assemblea <a href="%{resource_path}">%{resource_name}</a>. Entra a <a href="%{resource_path}">la pàgina de l'assemblea</a> per a contribuir-hi!
|
|
370
370
|
assembly:
|