decidim-assemblies 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6 +11 -9
- data/app/commands/decidim/assemblies/admin/create_assembly_admin.rb +93 -0
- data/app/commands/decidim/assemblies/admin/update_assembly_admin.rb +42 -0
- data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +2 -4
- data/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb +99 -0
- data/app/forms/decidim/assemblies/admin/assembly_user_role_form.rb +30 -0
- data/app/models/decidim/assemblies/abilities/admin/admin_ability.rb +1 -0
- data/app/models/decidim/assemblies/abilities/admin/assembly_admin_ability.rb +54 -0
- data/app/models/decidim/assemblies/abilities/admin/assembly_collaborator_ability.rb +25 -0
- data/app/models/decidim/assemblies/abilities/admin/assembly_moderator_ability.rb +33 -0
- data/app/models/decidim/assemblies/abilities/admin/assembly_role_ability.rb +65 -0
- data/app/models/decidim/assemblies/abilities/assembly_admin_ability.rb +15 -0
- data/app/models/decidim/assemblies/abilities/assembly_collaborator_ability.rb +15 -0
- data/app/models/decidim/assemblies/abilities/assembly_moderator_ability.rb +15 -0
- data/app/models/decidim/assemblies/abilities/assembly_role_ability.rb +51 -0
- data/app/models/decidim/assembly.rb +1 -0
- data/app/models/decidim/assembly_user_role.rb +22 -0
- data/app/queries/decidim/assemblies/assemblies_with_user_role.rb +48 -0
- data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +1 -1
- data/app/views/decidim/assemblies/admin/assembly_user_roles/_form.html.erb +22 -0
- data/app/views/decidim/assemblies/admin/assembly_user_roles/edit.html.erb +7 -0
- data/app/views/decidim/assemblies/admin/assembly_user_roles/index.html.erb +65 -0
- data/app/views/decidim/assemblies/admin/assembly_user_roles/new.html.erb +7 -0
- data/app/views/decidim/assemblies/assemblies/show.html.erb +5 -0
- data/app/views/layouts/decidim/admin/assembly.html.erb +19 -14
- data/config/locales/ca.yml +28 -1
- data/config/locales/en.yml +28 -0
- data/config/locales/es.yml +32 -5
- data/config/locales/eu.yml +28 -0
- data/config/locales/fi.yml +66 -38
- data/config/locales/fr.yml +28 -0
- data/config/locales/gl.yml +165 -0
- data/config/locales/it.yml +30 -2
- data/config/locales/nl.yml +28 -0
- data/config/locales/pl.yml +28 -0
- data/config/locales/pt-BR.yml +165 -0
- data/config/locales/pt.yml +48 -20
- data/config/locales/sv.yml +165 -0
- data/db/migrate/20180109105917_add_assembly_user_roles.rb +17 -0
- data/lib/decidim/assemblies/admin_engine.rb +11 -2
- data/lib/decidim/assemblies/engine.rb +9 -0
- data/lib/decidim/assemblies/participatory_space.rb +7 -2
- data/lib/decidim/assemblies/test/factories.rb +36 -0
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +34 -12
@@ -0,0 +1,165 @@
|
|
1
|
+
sv:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
assembly:
|
5
|
+
banner_image: Banner image
|
6
|
+
copy_categories: Kopiera kategorier
|
7
|
+
copy_features: Kopiera funktioner
|
8
|
+
description: Beskrivning
|
9
|
+
developer_group: Utvecklargrupp
|
10
|
+
domain: Domän
|
11
|
+
hashtag: hashtag
|
12
|
+
hero_image: Hembild
|
13
|
+
local_area: Lokalt område
|
14
|
+
meta_scope: Omfattning metadata
|
15
|
+
participatory_scope: Deltagande räckvidd
|
16
|
+
participatory_structure: Deltagande struktur
|
17
|
+
promoted: främjas
|
18
|
+
scope_id: Omfattning
|
19
|
+
scopes_enabled: Scopes aktiverade
|
20
|
+
short_description: Kort beskrivning
|
21
|
+
slug: URL slug
|
22
|
+
subtitle: Texta
|
23
|
+
target: Mål
|
24
|
+
title: Titel
|
25
|
+
decidim:
|
26
|
+
admin:
|
27
|
+
assemblies:
|
28
|
+
create:
|
29
|
+
error: Det uppstod ett fel vid att skapa en ny enhet.
|
30
|
+
success: Församlingen skapades framgångsrikt.
|
31
|
+
destroy:
|
32
|
+
success: Församlingen förstördes framgångsrikt.
|
33
|
+
edit:
|
34
|
+
update: Uppdatering
|
35
|
+
form:
|
36
|
+
title: Allmän information
|
37
|
+
index:
|
38
|
+
not_published: Ej publicerad
|
39
|
+
published: Publicerad
|
40
|
+
new:
|
41
|
+
create: Skapa
|
42
|
+
title: Ny sammansättning
|
43
|
+
update:
|
44
|
+
error: Det uppstod ett fel vid uppdateringen av den här enheten.
|
45
|
+
success: Församlingen uppdaterades framgångsrikt.
|
46
|
+
assemblies_copies:
|
47
|
+
create:
|
48
|
+
error: Det uppstod ett fel vid duplicering av den här enheten.
|
49
|
+
success: Sammansättning dupliceras framgångsrikt.
|
50
|
+
assembly_copies:
|
51
|
+
new:
|
52
|
+
copy: Kopiera
|
53
|
+
select: Välj vilken data du vill duplicera
|
54
|
+
title: Duplikat montering
|
55
|
+
assembly_publications:
|
56
|
+
create:
|
57
|
+
error: Det uppstod ett fel vid publicering av denna montering.
|
58
|
+
success: Församling publiceras framgångsrikt.
|
59
|
+
destroy:
|
60
|
+
error: Ett fel uppstod vid publicering av denna montering.
|
61
|
+
success: Sammansättningen avpubliceras framgångsrikt.
|
62
|
+
assembly_user_roles:
|
63
|
+
create:
|
64
|
+
error: Det gick inte att lägga till en användare för den här enheten.
|
65
|
+
success: Användaren skapades framgångsrikt för den här enheten.
|
66
|
+
destroy:
|
67
|
+
success: Användaren förstördes framgångsrikt för denna montering.
|
68
|
+
edit:
|
69
|
+
title: Uppdatera monteringsanvändaren.
|
70
|
+
update: Uppdatering
|
71
|
+
index:
|
72
|
+
assembly_admins_title: Monteringsanvändare
|
73
|
+
new:
|
74
|
+
create: Skapa
|
75
|
+
title: Ny monteringsanvändare.
|
76
|
+
update:
|
77
|
+
error: Det uppstod ett fel som uppdaterade en användare för den här enheten.
|
78
|
+
success: Användaren uppdaterades framgångsrikt för denna montering.
|
79
|
+
menu:
|
80
|
+
assemblies: Assemblies
|
81
|
+
assemblies_submenu:
|
82
|
+
assembly_admins: Monteringsanvändare
|
83
|
+
attachments: bilagor
|
84
|
+
categories: kategorier
|
85
|
+
features: Funktioner
|
86
|
+
info: Info
|
87
|
+
moderations: modere
|
88
|
+
models:
|
89
|
+
assembly:
|
90
|
+
fields:
|
91
|
+
created_at: Skapad vid
|
92
|
+
promoted: Markerad
|
93
|
+
published: Publicerad
|
94
|
+
title: Titel
|
95
|
+
name: hopsättning
|
96
|
+
assembly_user_role:
|
97
|
+
fields:
|
98
|
+
email: E-post
|
99
|
+
name: namn
|
100
|
+
role: Roll
|
101
|
+
name: Monteringsanvändare
|
102
|
+
roles:
|
103
|
+
admin: Administratör
|
104
|
+
collaborator: Medarbetare
|
105
|
+
moderator: moderator
|
106
|
+
titles:
|
107
|
+
assemblies: Assemblies
|
108
|
+
assemblies:
|
109
|
+
admin:
|
110
|
+
assemblies:
|
111
|
+
form:
|
112
|
+
slug_help: 'URL-slitsar används för att generera de webbadresser som pekar på den här enheten. Accepterar bara bokstäver, siffror och bindestreck, och måste börja med ett brev. Exempel: %{url}'
|
113
|
+
assembly_copies:
|
114
|
+
form:
|
115
|
+
slug_help: 'URL-slitsar används för att generera de webbadresser som pekar på den här enheten. Accepterar bara bokstäver, siffror och bindestreck, och måste börja med ett brev. Exempel: %{url}'
|
116
|
+
index:
|
117
|
+
title: Assemblies
|
118
|
+
pages:
|
119
|
+
home:
|
120
|
+
highlighted_assemblies:
|
121
|
+
active_assemblies: Aktiva aggregat
|
122
|
+
see_all_assemblies: Se alla församlingar
|
123
|
+
show:
|
124
|
+
developer_group: Utvecklargrupp
|
125
|
+
local_area: Lokalt område
|
126
|
+
participatory_scope: Deltagande räckvidd
|
127
|
+
participatory_structure: Deltagande struktur
|
128
|
+
scope: Omfattning
|
129
|
+
target: Mål
|
130
|
+
statistics:
|
131
|
+
answers_count: svar
|
132
|
+
assemblies_count: Assemblies
|
133
|
+
comments_count: kommentarer
|
134
|
+
headline: Aktivitet
|
135
|
+
meetings_count: möten
|
136
|
+
orders_count: röster
|
137
|
+
pages_count: sidor
|
138
|
+
projects_count: projekt
|
139
|
+
proposals_count: förslag
|
140
|
+
results_count: Resultat
|
141
|
+
surveys_count: Undersökningar
|
142
|
+
users_count: Deltagare
|
143
|
+
votes_count: röster
|
144
|
+
menu:
|
145
|
+
assemblies: Assemblies
|
146
|
+
layouts:
|
147
|
+
decidim:
|
148
|
+
assemblies:
|
149
|
+
assembly:
|
150
|
+
take_part: Ta del
|
151
|
+
index:
|
152
|
+
promoted_assemblies: Utrustade församlingar
|
153
|
+
order_by_assemblies:
|
154
|
+
assemblies:
|
155
|
+
one: "%{count} montering"
|
156
|
+
other: "%{count} sammansättningar"
|
157
|
+
promoted_assembly:
|
158
|
+
more_info: Mer information
|
159
|
+
take_part: Ta del
|
160
|
+
assembly_header:
|
161
|
+
assembly_menu_item: Sammansättningen
|
162
|
+
unfold: Veckla ut
|
163
|
+
assembly_widgets:
|
164
|
+
show:
|
165
|
+
take_part: Ta del
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddAssemblyUserRoles < ActiveRecord::Migration[5.1]
|
4
|
+
def change
|
5
|
+
create_table :decidim_assembly_user_roles do |t|
|
6
|
+
t.integer :decidim_user_id
|
7
|
+
t.integer :decidim_assembly_id
|
8
|
+
t.string :role
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
|
12
|
+
add_index :decidim_assembly_user_roles,
|
13
|
+
[:decidim_assembly_id, :decidim_user_id, :role],
|
14
|
+
unique: true,
|
15
|
+
name: "index_unique_user_and_assembly_role"
|
16
|
+
end
|
17
|
+
end
|
@@ -18,6 +18,12 @@ module Decidim
|
|
18
18
|
resource :publish, controller: "assembly_publications", only: [:create, :destroy]
|
19
19
|
resources :copies, controller: "assembly_copies", only: [:new, :create]
|
20
20
|
|
21
|
+
resources :user_roles, controller: "assembly_user_roles" do
|
22
|
+
member do
|
23
|
+
post :resend_invitation, to: "assembly_user_roles#resend_invitation"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
21
27
|
resources :attachments, controller: "assembly_attachments"
|
22
28
|
end
|
23
29
|
|
@@ -59,7 +65,10 @@ module Decidim
|
|
59
65
|
initializer "decidim_assemblies.inject_abilities_to_user" do |_app|
|
60
66
|
Decidim.configure do |config|
|
61
67
|
config.admin_abilities += [
|
62
|
-
"Decidim::Assemblies::Abilities::Admin::AdminAbility"
|
68
|
+
"Decidim::Assemblies::Abilities::Admin::AdminAbility",
|
69
|
+
"Decidim::Assemblies::Abilities::Admin::AssemblyModeratorAbility",
|
70
|
+
"Decidim::Assemblies::Abilities::Admin::AssemblyCollaboratorAbility",
|
71
|
+
"Decidim::Assemblies::Abilities::Admin::AssemblyAdminAbility"
|
63
72
|
]
|
64
73
|
end
|
65
74
|
end
|
@@ -71,7 +80,7 @@ module Decidim
|
|
71
80
|
icon_name: "dial",
|
72
81
|
position: 3.5,
|
73
82
|
active: :inclusive,
|
74
|
-
if: can?(:
|
83
|
+
if: can?(:read, Decidim::Assembly)
|
75
84
|
end
|
76
85
|
end
|
77
86
|
end
|
@@ -45,11 +45,20 @@ module Decidim
|
|
45
45
|
Decidim.configure do |config|
|
46
46
|
config.abilities += [
|
47
47
|
"Decidim::Assemblies::Abilities::EveryoneAbility",
|
48
|
+
"Decidim::Assemblies::Abilities::AssemblyAdminAbility",
|
49
|
+
"Decidim::Assemblies::Abilities::AssemblyCollaboratorAbility",
|
50
|
+
"Decidim::Assemblies::Abilities::AssemblyModeratorAbility",
|
48
51
|
"Decidim::Assemblies::Abilities::AdminAbility"
|
49
52
|
]
|
50
53
|
end
|
51
54
|
end
|
52
55
|
|
56
|
+
initializer "decidim.stats" do
|
57
|
+
Decidim.stats.register :assemblies_count, priority: StatsRegistry::HIGH_PRIORITY do |organization, _start_at, _end_at|
|
58
|
+
Decidim::Assembly.where(organization: organization).published.count
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
53
62
|
initializer "decidim_assemblies.menu" do
|
54
63
|
Decidim.menu :menu do |menu|
|
55
64
|
menu.item I18n.t("menu.assemblies", scope: "decidim"),
|
@@ -4,6 +4,10 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
4
4
|
participatory_space.icon = "decidim/assemblies/icon.svg"
|
5
5
|
participatory_space.model_class_name = "Decidim::Assembly"
|
6
6
|
|
7
|
+
participatory_space.participatory_spaces do |organization|
|
8
|
+
Decidim::Assemblies::OrganizationAssemblies.new(organization).query
|
9
|
+
end
|
10
|
+
|
7
11
|
participatory_space.context(:public) do |context|
|
8
12
|
context.engine = Decidim::Assemblies::Engine
|
9
13
|
context.layout = "layouts/decidim/assembly"
|
@@ -11,13 +15,14 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
11
15
|
|
12
16
|
participatory_space.context(:admin) do |context|
|
13
17
|
context.engine = Decidim::Assemblies::AdminEngine
|
18
|
+
context.layout = "layouts/decidim/admin/assembly"
|
14
19
|
end
|
15
20
|
|
16
21
|
participatory_space.seeds do
|
17
22
|
organization = Decidim::Organization.first
|
18
23
|
seeds_root = File.join(__dir__, "..", "..", "..", "db", "seeds")
|
19
24
|
|
20
|
-
2.times do
|
25
|
+
2.times do |n|
|
21
26
|
assembly = Decidim::Assembly.create!(
|
22
27
|
title: Decidim::Faker::Localized.sentence(5),
|
23
28
|
slug: Faker::Internet.unique.slug(nil, "-"),
|
@@ -40,7 +45,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
40
45
|
target: Decidim::Faker::Localized.sentence(3),
|
41
46
|
participatory_scope: Decidim::Faker::Localized.sentence(1),
|
42
47
|
participatory_structure: Decidim::Faker::Localized.sentence(2),
|
43
|
-
scope:
|
48
|
+
scope: n.positive? ? Decidim::Scope.reorder("RANDOM()").first : nil
|
44
49
|
)
|
45
50
|
|
46
51
|
Decidim::Attachment.create!(
|
@@ -38,4 +38,40 @@ FactoryBot.define do
|
|
38
38
|
published_at { Time.current }
|
39
39
|
end
|
40
40
|
end
|
41
|
+
|
42
|
+
factory :assembly_user_role, class: "Decidim::AssemblyUserRole" do
|
43
|
+
user
|
44
|
+
assembly { create :assembly, organization: user.organization }
|
45
|
+
role "admin"
|
46
|
+
end
|
47
|
+
|
48
|
+
factory :assembly_admin, parent: :user, class: "Decidim::User" do
|
49
|
+
transient do
|
50
|
+
assembly { create(:assembly) }
|
51
|
+
end
|
52
|
+
|
53
|
+
organization { assembly.organization }
|
54
|
+
|
55
|
+
after(:create) do |user, evaluator|
|
56
|
+
create :assembly_user_role,
|
57
|
+
user: user,
|
58
|
+
assembly: evaluator.assembly,
|
59
|
+
role: :admin
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
factory :assembly_moderator, parent: :user, class: "Decidim::User" do
|
64
|
+
transient do
|
65
|
+
assembly { create(:assembly) }
|
66
|
+
end
|
67
|
+
|
68
|
+
organization { assembly.organization }
|
69
|
+
|
70
|
+
after(:create) do |user, evaluator|
|
71
|
+
create :assembly_user_role,
|
72
|
+
user: user,
|
73
|
+
assembly: evaluator.assembly,
|
74
|
+
role: :moderator
|
75
|
+
end
|
76
|
+
end
|
41
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
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: 2018-
|
13
|
+
date: 2018-02-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,43 +18,43 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.9.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.9.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.9.0
|
36
36
|
type: :development
|
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.
|
42
|
+
version: 0.9.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-dev
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.9.0
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
57
|
-
description: Assemblies
|
56
|
+
version: 0.9.0
|
57
|
+
description: Assemblies component for decidim.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
60
60
|
- mrc2407@gmail.com
|
@@ -71,9 +71,11 @@ files:
|
|
71
71
|
- app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
|
72
72
|
- app/commands/decidim/assemblies/admin/copy_assembly.rb
|
73
73
|
- app/commands/decidim/assemblies/admin/create_assembly.rb
|
74
|
+
- app/commands/decidim/assemblies/admin/create_assembly_admin.rb
|
74
75
|
- app/commands/decidim/assemblies/admin/publish_assembly.rb
|
75
76
|
- app/commands/decidim/assemblies/admin/unpublish_assembly.rb
|
76
77
|
- app/commands/decidim/assemblies/admin/update_assembly.rb
|
78
|
+
- app/commands/decidim/assemblies/admin/update_assembly_admin.rb
|
77
79
|
- app/constraints/decidim/assemblies/current_assembly.rb
|
78
80
|
- app/constraints/decidim/assemblies/current_feature.rb
|
79
81
|
- app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
|
@@ -82,6 +84,7 @@ files:
|
|
82
84
|
- app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
|
83
85
|
- app/controllers/decidim/assemblies/admin/assembly_copies_controller.rb
|
84
86
|
- app/controllers/decidim/assemblies/admin/assembly_publications_controller.rb
|
87
|
+
- app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb
|
85
88
|
- app/controllers/decidim/assemblies/admin/categories_controller.rb
|
86
89
|
- app/controllers/decidim/assemblies/admin/concerns/assembly_admin.rb
|
87
90
|
- app/controllers/decidim/assemblies/admin/exports_controller.rb
|
@@ -93,12 +96,23 @@ files:
|
|
93
96
|
- app/controllers/decidim/assemblies/categories_controller.rb
|
94
97
|
- app/forms/decidim/assemblies/admin/assembly_copy_form.rb
|
95
98
|
- app/forms/decidim/assemblies/admin/assembly_form.rb
|
99
|
+
- app/forms/decidim/assemblies/admin/assembly_user_role_form.rb
|
96
100
|
- app/models/decidim/assemblies/abilities/admin/admin_ability.rb
|
101
|
+
- app/models/decidim/assemblies/abilities/admin/assembly_admin_ability.rb
|
102
|
+
- app/models/decidim/assemblies/abilities/admin/assembly_collaborator_ability.rb
|
103
|
+
- app/models/decidim/assemblies/abilities/admin/assembly_moderator_ability.rb
|
104
|
+
- app/models/decidim/assemblies/abilities/admin/assembly_role_ability.rb
|
97
105
|
- app/models/decidim/assemblies/abilities/admin_ability.rb
|
106
|
+
- app/models/decidim/assemblies/abilities/assembly_admin_ability.rb
|
107
|
+
- app/models/decidim/assemblies/abilities/assembly_collaborator_ability.rb
|
108
|
+
- app/models/decidim/assemblies/abilities/assembly_moderator_ability.rb
|
109
|
+
- app/models/decidim/assemblies/abilities/assembly_role_ability.rb
|
98
110
|
- app/models/decidim/assemblies/abilities/everyone_ability.rb
|
99
111
|
- app/models/decidim/assembly.rb
|
112
|
+
- app/models/decidim/assembly_user_role.rb
|
100
113
|
- app/presenters/decidim/assemblies/assembly_stats_presenter.rb
|
101
114
|
- app/queries/decidim/assemblies/admin/admin_users.rb
|
115
|
+
- app/queries/decidim/assemblies/assemblies_with_user_role.rb
|
102
116
|
- app/queries/decidim/assemblies/organization_assemblies.rb
|
103
117
|
- app/queries/decidim/assemblies/organization_prioritized_assemblies.rb
|
104
118
|
- app/queries/decidim/assemblies/organization_published_assemblies.rb
|
@@ -113,6 +127,10 @@ files:
|
|
113
127
|
- app/views/decidim/assemblies/admin/assemblies/new.html.erb
|
114
128
|
- app/views/decidim/assemblies/admin/assembly_copies/_form.html.erb
|
115
129
|
- app/views/decidim/assemblies/admin/assembly_copies/new.html.erb
|
130
|
+
- app/views/decidim/assemblies/admin/assembly_user_roles/_form.html.erb
|
131
|
+
- app/views/decidim/assemblies/admin/assembly_user_roles/edit.html.erb
|
132
|
+
- app/views/decidim/assemblies/admin/assembly_user_roles/index.html.erb
|
133
|
+
- app/views/decidim/assemblies/admin/assembly_user_roles/new.html.erb
|
116
134
|
- app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb
|
117
135
|
- app/views/decidim/assemblies/assemblies/_statistics.html.erb
|
118
136
|
- app/views/decidim/assemblies/assemblies/index.html.erb
|
@@ -129,14 +147,18 @@ files:
|
|
129
147
|
- config/locales/eu.yml
|
130
148
|
- config/locales/fi.yml
|
131
149
|
- config/locales/fr.yml
|
150
|
+
- config/locales/gl.yml
|
132
151
|
- config/locales/it.yml
|
133
152
|
- config/locales/nl.yml
|
134
153
|
- config/locales/pl.yml
|
154
|
+
- config/locales/pt-BR.yml
|
135
155
|
- config/locales/pt.yml
|
136
156
|
- config/locales/ru.yml
|
157
|
+
- config/locales/sv.yml
|
137
158
|
- config/locales/uk.yml
|
138
159
|
- db/migrate/20170727190859_add_assemblies.rb
|
139
160
|
- db/migrate/20170822153055_add_scopes_enabled_to_assemblies.rb
|
161
|
+
- db/migrate/20180109105917_add_assembly_user_roles.rb
|
140
162
|
- db/seeds/Exampledocument.pdf
|
141
163
|
- db/seeds/city.jpeg
|
142
164
|
- db/seeds/city2.jpeg
|
@@ -160,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
182
|
requirements:
|
161
183
|
- - ">="
|
162
184
|
- !ruby/object:Gem::Version
|
163
|
-
version: 2.3
|
185
|
+
version: '2.3'
|
164
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
187
|
requirements:
|
166
188
|
- - ">="
|
@@ -168,8 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
190
|
version: '0'
|
169
191
|
requirements: []
|
170
192
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
193
|
+
rubygems_version: 2.7.3
|
172
194
|
signing_key:
|
173
195
|
specification_version: 4
|
174
|
-
summary:
|
196
|
+
summary: Decidim assemblies module
|
175
197
|
test_files: []
|