decidim-assemblies 0.32.0 → 0.32.2
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 +5 -3
- data/app/controllers/decidim/assemblies/admin/members_csv_imports_controller.rb +2 -0
- data/app/controllers/decidim/assemblies/members_controller.rb +9 -0
- data/app/permissions/decidim/assemblies/permissions.rb +1 -1
- data/app/views/decidim/assemblies/assemblies/show.html.erb +5 -5
- data/app/views/decidim/assemblies/members/index.html.erb +2 -0
- data/config/locales/ca.yml +2 -2
- data/config/locales/de.yml +143 -126
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +15 -15
- data/config/locales/fr-CA.yml +2 -0
- data/config/locales/fr.yml +5 -0
- data/config/locales/gl.yml +238 -33
- data/config/locales/he-IL.yml +0 -3
- data/config/locales/pt-BR.yml +3 -3
- data/config/locales/sv.yml +25 -3
- data/decidim-assemblies.gemspec +1 -1
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 618f69ec9e3713cbf5bcbb384bd4a68aa4485168bd95c58f53e5744356ff052a
|
|
4
|
+
data.tar.gz: 3e574e040746b63a04e3b99b64066d0161bf6dfaaa22ab9515b05f5b9f79185f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6343b8aa19a9511ce7cc9908b7182752d9d9a7d5cba58dd39abd02c4cb23a67a9faa5b7498386934096e983248435063ecf48c9e6d6ee2a4f377c9e1fadbf6a3
|
|
7
|
+
data.tar.gz: 4ee5a39ccc16d47d01ebe22a77d26c6678973315c2b5b9fb04bc6b7f3845248d5a2d64037f7145800c395cddbd6461d4d55a22a39d309f4542b82aa0710817c3
|
|
@@ -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
|
|
@@ -20,19 +20,21 @@ module Decidim
|
|
|
20
20
|
included do
|
|
21
21
|
include Decidim::Admin::ParticipatorySpaceAdminContext
|
|
22
22
|
|
|
23
|
-
helper_method :current_assembly
|
|
23
|
+
helper_method :current_assembly, :current_participatory_space
|
|
24
24
|
add_breadcrumb_item_from_menu :admin_assembly_menu
|
|
25
25
|
|
|
26
26
|
participatory_space_admin_layout
|
|
27
27
|
|
|
28
|
+
def current_participatory_space = current_assembly
|
|
29
|
+
|
|
30
|
+
protected
|
|
31
|
+
|
|
28
32
|
def current_assembly
|
|
29
33
|
@current_assembly ||= organization_assemblies.find_by!(
|
|
30
34
|
slug: params[:assembly_slug] || params[:slug]
|
|
31
35
|
)
|
|
32
36
|
end
|
|
33
37
|
|
|
34
|
-
alias_method :current_participatory_space, :current_assembly
|
|
35
|
-
|
|
36
38
|
def organization_assemblies
|
|
37
39
|
@organization_assemblies ||= OrganizationAssemblies.new(current_organization).query
|
|
38
40
|
end
|
|
@@ -4,11 +4,13 @@ module Decidim
|
|
|
4
4
|
module Assemblies
|
|
5
5
|
class MembersController < Decidim::Assemblies::ApplicationController
|
|
6
6
|
include ParticipatorySpaceContext
|
|
7
|
+
include Paginable
|
|
7
8
|
include Decidim::ParticipatorySpace::HasMembersPage
|
|
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
|
|
@@ -120,7 +120,7 @@ module Decidim
|
|
|
120
120
|
return true unless assembly.restricted?
|
|
121
121
|
return false unless user
|
|
122
122
|
|
|
123
|
-
user.admin? || assembly.users.include?(user)
|
|
123
|
+
user.admin? || assembly_user_role?(user, assembly, broad_check: true) || assembly.users.include?(user)
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
def public_list_members_action?
|
|
@@ -17,15 +17,15 @@ edit_link(
|
|
|
17
17
|
|
|
18
18
|
<main role="main">
|
|
19
19
|
<% if current_participatory_space.restricted? %>
|
|
20
|
-
<
|
|
20
|
+
<aside class="layout-container__reference text-sm alert" aria-label="<%= t("restricted", scope: "decidim.participatory_space.labels") %>">
|
|
21
21
|
<%= t("restricted_space", scope: "decidim.participatory_spaces.show") %>
|
|
22
|
-
</
|
|
22
|
+
</aside>
|
|
23
23
|
<% end %>
|
|
24
24
|
|
|
25
25
|
<% if current_participatory_space.transparent? %>
|
|
26
|
-
<
|
|
26
|
+
<aside class="layout-container__reference text-sm alert" aria-label="<%= t("transparent", scope: "decidim.participatory_space.labels") %>">
|
|
27
27
|
<%= t("transparent_space", scope: "decidim.participatory_spaces.show") %>
|
|
28
|
-
</
|
|
28
|
+
</aside>
|
|
29
29
|
<% end %>
|
|
30
30
|
|
|
31
31
|
<div class="participatory-space__container">
|
|
@@ -39,7 +39,7 @@ edit_link(
|
|
|
39
39
|
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
|
-
<section class="participatory-space__block-reference">
|
|
42
|
+
<section class="participatory-space__block-reference" aria-label="<%= t("reference", scope: "decidim.participatory_space.labels") %>">
|
|
43
43
|
<p><%= resource_reference(current_participatory_space) %></p>
|
|
44
44
|
</section>
|
|
45
45
|
</main>
|
data/config/locales/ca.yml
CHANGED
|
@@ -367,7 +367,7 @@ ca:
|
|
|
367
367
|
assemblies:
|
|
368
368
|
create_assembly_member:
|
|
369
369
|
email_intro: Una administradora de l'assemblea <a href="%{resource_url}">%{resource_name}</a> t'ha afegit com a un dels seus membres.
|
|
370
|
-
email_outro: Reps aquesta notificació perquè t'han convidat a una assemblea. Entra en <a href="%{resource_url}">
|
|
370
|
+
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!
|
|
371
371
|
email_subject: T'han convidat a ser membre de l'assemblea %{resource_name}!
|
|
372
372
|
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!
|
|
373
373
|
assembly:
|
|
@@ -396,7 +396,7 @@ ca:
|
|
|
396
396
|
assembly_type: El tipus d'assemblea
|
|
397
397
|
closing_date: La data de tancament de l'assemblea
|
|
398
398
|
closing_date_reason: Perquè es va tancar l'assemblea
|
|
399
|
-
component_settings:
|
|
399
|
+
component_settings: La configuració dels components de l'assemblea
|
|
400
400
|
composition: La composició de l'assemblea
|
|
401
401
|
created_at: La data en què es va crear aquesta assemblea
|
|
402
402
|
created_by: Qui va crear l'assemblea
|