decidim-assemblies 0.28.4 → 0.28.6
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_landing_page_content_blocks_controller.rb +6 -0
- data/app/forms/decidim/assemblies/admin/assembly_form.rb +8 -8
- data/app/models/decidim/assembly.rb +6 -1
- data/app/permissions/decidim/assemblies/permissions.rb +8 -0
- data/app/presenters/decidim/assemblies/assembly_presenter.rb +2 -2
- data/config/locales/ar.yml +8 -7
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +44 -0
- data/config/locales/ca-IT.yml +465 -0
- data/config/locales/ca.yml +3 -3
- data/config/locales/cs.yml +2 -2
- data/config/locales/de.yml +6 -6
- data/config/locales/es-MX.yml +4 -4
- data/config/locales/es-PY.yml +4 -4
- data/config/locales/es.yml +4 -4
- data/config/locales/eu.yml +50 -50
- data/config/locales/fi-plain.yml +5 -5
- data/config/locales/fi.yml +9 -9
- data/config/locales/fr-CA.yml +5 -5
- data/config/locales/fr.yml +5 -5
- data/config/locales/ga-IE.yml +2 -0
- data/config/locales/gl.yml +5 -3
- data/config/locales/he-IL.yml +170 -0
- data/config/locales/hu.yml +1 -1
- data/config/locales/id-ID.yml +5 -0
- data/config/locales/is-IS.yml +8 -5
- data/config/locales/it.yml +75 -4
- data/config/locales/ja.yml +1 -1
- data/config/locales/ko.yml +1 -8
- data/config/locales/lb.yml +9 -5
- data/config/locales/lt.yml +2 -2
- data/config/locales/lv.yml +5 -0
- data/config/locales/nl.yml +5 -3
- data/config/locales/no.yml +2 -0
- data/config/locales/pl.yml +2 -2
- data/config/locales/pt.yml +82 -1
- data/config/locales/ro-RO.yml +22 -18
- data/config/locales/ru.yml +9 -6
- data/config/locales/sk.yml +17 -0
- data/config/locales/sl.yml +15 -0
- data/config/locales/sq-AL.yml +6 -3
- data/config/locales/sv.yml +7 -7
- data/config/locales/tr-TR.yml +4 -4
- data/config/locales/uk.yml +8 -5
- data/config/locales/zh-CN.yml +5 -0
- data/config/locales/zh-TW.yml +1 -1
- data/decidim-assemblies.gemspec +1 -1
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +16 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0ea09705908c1754307ceda205d833ed2e3572acb82817d8d471252cb4138f0
|
4
|
+
data.tar.gz: 66ef27f99777f2e9755c4fdd56dd68a201de2829475a11329abc571e5d9c87b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82fbf7e3146ea2aa10d66dbc79f3aae00d9a4edc86c823d611cd3bd1ab1d662a4c604fbfaf9d68ca5e71a3a0492a5ac283ac77852ff3e821db14f90370b558e9
|
7
|
+
data.tar.gz: 6aa047f240c99b95fae6a27b52da28223bf3af5b827f51d4fa53ef514dcf21a7ced3ca929d916be30793aac31d1c784bc67661720d0ff44e6bfc0ecc561ad3ed
|
data/app/controllers/decidim/assemblies/admin/assembly_landing_page_content_blocks_controller.rb
CHANGED
@@ -10,6 +10,8 @@ module Decidim
|
|
10
10
|
|
11
11
|
layout "decidim/admin/assemblies"
|
12
12
|
|
13
|
+
helper_method :parent_assembly
|
14
|
+
|
13
15
|
private
|
14
16
|
|
15
17
|
def content_block_scope
|
@@ -29,6 +31,10 @@ module Decidim
|
|
29
31
|
def resource_landing_page_content_block_path
|
30
32
|
assembly_landing_page_content_block_path(scoped_resource, params[:id])
|
31
33
|
end
|
34
|
+
|
35
|
+
def parent_assembly
|
36
|
+
scoped_resource.parent
|
37
|
+
end
|
32
38
|
end
|
33
39
|
end
|
34
40
|
end
|
@@ -14,23 +14,23 @@ module Decidim
|
|
14
14
|
|
15
15
|
mimic :assembly
|
16
16
|
|
17
|
-
translatable_attribute :composition,
|
18
|
-
translatable_attribute :closing_date_reason,
|
17
|
+
translatable_attribute :composition, Decidim::Attributes::RichText
|
18
|
+
translatable_attribute :closing_date_reason, Decidim::Attributes::RichText
|
19
19
|
translatable_attribute :created_by_other, String
|
20
|
-
translatable_attribute :description,
|
20
|
+
translatable_attribute :description, Decidim::Attributes::RichText
|
21
21
|
translatable_attribute :developer_group, String
|
22
|
-
translatable_attribute :internal_organisation,
|
22
|
+
translatable_attribute :internal_organisation, Decidim::Attributes::RichText
|
23
23
|
translatable_attribute :local_area, String
|
24
24
|
translatable_attribute :meta_scope, String
|
25
25
|
translatable_attribute :participatory_scope, String
|
26
26
|
translatable_attribute :participatory_structure, String
|
27
|
-
translatable_attribute :purpose_of_action,
|
28
|
-
translatable_attribute :short_description,
|
29
|
-
translatable_attribute :special_features,
|
27
|
+
translatable_attribute :purpose_of_action, Decidim::Attributes::RichText
|
28
|
+
translatable_attribute :short_description, Decidim::Attributes::RichText
|
29
|
+
translatable_attribute :special_features, Decidim::Attributes::RichText
|
30
30
|
translatable_attribute :subtitle, String
|
31
31
|
translatable_attribute :target, String
|
32
32
|
translatable_attribute :title, String
|
33
|
-
translatable_attribute :announcement,
|
33
|
+
translatable_attribute :announcement, Decidim::Attributes::RichText
|
34
34
|
|
35
35
|
attribute :created_by, String
|
36
36
|
attribute :facebook_handler, String
|
@@ -122,6 +122,11 @@ module Decidim
|
|
122
122
|
Decidim::Assemblies::AdminLog::AssemblyPresenter
|
123
123
|
end
|
124
124
|
|
125
|
+
# This is a overwrite for Decidim::ParticipatorySpaceResourceable.visible?
|
126
|
+
def visible?
|
127
|
+
published? && (!private_space? || (private_space? && is_transparent?))
|
128
|
+
end
|
129
|
+
|
125
130
|
def hashtag
|
126
131
|
attributes["hashtag"].to_s.delete("#")
|
127
132
|
end
|
@@ -149,7 +154,7 @@ module Decidim
|
|
149
154
|
end
|
150
155
|
|
151
156
|
def user_roles(role_name = nil)
|
152
|
-
roles = Decidim::AssemblyUserRole.where(assembly: self_and_ancestors)
|
157
|
+
roles = Decidim::AssemblyUserRole.order_by_name.where(assembly: self_and_ancestors)
|
153
158
|
return roles if role_name.blank?
|
154
159
|
|
155
160
|
roles.where(role: role_name)
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Assemblies
|
5
5
|
class Permissions < Decidim::DefaultPermissions
|
6
|
+
include Decidim::UserRoleChecker
|
7
|
+
|
6
8
|
def permissions
|
7
9
|
user_can_enter_space_area?
|
8
10
|
|
@@ -34,6 +36,7 @@ module Decidim
|
|
34
36
|
user_can_create_assembly?
|
35
37
|
user_can_export_assembly?
|
36
38
|
user_can_copy_assembly?
|
39
|
+
user_can_upload_images_in_assembly?
|
37
40
|
|
38
41
|
# org admins and space admins can do everything in the admin section
|
39
42
|
org_admin_action?
|
@@ -314,6 +317,11 @@ module Decidim
|
|
314
317
|
Decidim::Assembly.where(id: assemblies + child_assemblies)
|
315
318
|
end
|
316
319
|
end
|
320
|
+
|
321
|
+
# Checks if the assigned admins can upload images on the editor
|
322
|
+
def user_can_upload_images_in_assembly?
|
323
|
+
allow! if user&.admin_terms_accepted? && user_has_any_role?(user, assembly, broad_check: true) && (permission_action.subject == :editor_image)
|
324
|
+
end
|
317
325
|
end
|
318
326
|
end
|
319
327
|
end
|
@@ -6,11 +6,11 @@ module Decidim
|
|
6
6
|
include Decidim::TranslationsHelper
|
7
7
|
|
8
8
|
def hero_image_url
|
9
|
-
assembly.attached_uploader(:hero_image).url
|
9
|
+
assembly.attached_uploader(:hero_image).url
|
10
10
|
end
|
11
11
|
|
12
12
|
def banner_image_url
|
13
|
-
assembly.attached_uploader(:banner_image).url
|
13
|
+
assembly.attached_uploader(:banner_image).url
|
14
14
|
end
|
15
15
|
|
16
16
|
def area_name
|
data/config/locales/ar.yml
CHANGED
@@ -48,7 +48,7 @@ ar:
|
|
48
48
|
promoted: سلط الضوء
|
49
49
|
published_at: نشرت في
|
50
50
|
purpose_of_action: الغرض من العمل
|
51
|
-
scope_id:
|
51
|
+
scope_id: النطاق
|
52
52
|
scopes_enabled: النطاقات المُفعّلَة
|
53
53
|
short_description: وصف قصير
|
54
54
|
show_statistics: عرض الإحصائيات
|
@@ -188,7 +188,7 @@ ar:
|
|
188
188
|
success: تم تحديث المشرف على هذه الجمعية بنجاح.
|
189
189
|
filters:
|
190
190
|
decidim_assemblies_type_id_eq:
|
191
|
-
label: نوع
|
191
|
+
label: نوع التجمع
|
192
192
|
menu:
|
193
193
|
assemblies: الجمعيات
|
194
194
|
assemblies_submenu:
|
@@ -200,7 +200,7 @@ ar:
|
|
200
200
|
categories: الفئات
|
201
201
|
components: المكونات
|
202
202
|
moderations: الإعتدال
|
203
|
-
assemblies_types:
|
203
|
+
assemblies_types: أنواع التجمّعات
|
204
204
|
models:
|
205
205
|
assemblies_types:
|
206
206
|
fields:
|
@@ -208,6 +208,7 @@ ar:
|
|
208
208
|
title: العنوان
|
209
209
|
assembly:
|
210
210
|
fields:
|
211
|
+
actions: الإجراءات
|
211
212
|
created_at: تاريخ الإنشاء
|
212
213
|
private: خاص
|
213
214
|
promoted: سلط الضوء
|
@@ -219,7 +220,7 @@ ar:
|
|
219
220
|
ceased_date: تاريخ التوقف
|
220
221
|
designation_date: تاريخ التعيين
|
221
222
|
full_name: الاسم
|
222
|
-
position:
|
223
|
+
position: الموقع
|
223
224
|
name: عضو
|
224
225
|
positions:
|
225
226
|
other: آخر
|
@@ -315,9 +316,9 @@ ar:
|
|
315
316
|
commission: اللجنة
|
316
317
|
consultative_advisory: استشاري / الاستشارية
|
317
318
|
executive: تنفيذية
|
318
|
-
government:
|
319
|
+
government: الحكومية
|
319
320
|
others: أخرى
|
320
|
-
participatory:
|
321
|
+
participatory: التشاركية
|
321
322
|
working_group: فريق العمل
|
322
323
|
content_blocks:
|
323
324
|
children_assemblies:
|
@@ -347,7 +348,7 @@ ar:
|
|
347
348
|
member_of:
|
348
349
|
member_of: عضو في
|
349
350
|
show:
|
350
|
-
assembly_type: نوع
|
351
|
+
assembly_type: نوع التجمع
|
351
352
|
duration: المدة الزمنية
|
352
353
|
is_transparent:
|
353
354
|
'false': مبهمة
|
@@ -0,0 +1 @@
|
|
1
|
+
bn:
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
bs:
|
3
|
+
decidim:
|
4
|
+
admin:
|
5
|
+
actions:
|
6
|
+
new_assembly_type: Novi tip veća
|
7
|
+
assemblies_types:
|
8
|
+
create:
|
9
|
+
error: Nastao je problem pri stvaranju novog tipa veća.
|
10
|
+
success: Tip veća uspešno stvoren.
|
11
|
+
destroy:
|
12
|
+
success: Tip veća uspešno obrisan.
|
13
|
+
new:
|
14
|
+
title: Novi tip veća
|
15
|
+
update:
|
16
|
+
error: Nastao je problem pri ažuriranju ovog tipa veća.
|
17
|
+
success: Tip veća uspešno ažuriran.
|
18
|
+
menu:
|
19
|
+
assemblies_types: Tipovi veća
|
20
|
+
models:
|
21
|
+
assembly_user_role:
|
22
|
+
roles:
|
23
|
+
valuator: Procenjivač
|
24
|
+
titles:
|
25
|
+
assemblies_types: Tipovi veća
|
26
|
+
admin_log:
|
27
|
+
assembly_type:
|
28
|
+
create: "%{user_name} je stvorio tip veća %{resource_name}"
|
29
|
+
publish: "%{user_name} je objavio tip veća %{resource_name}"
|
30
|
+
unpublish: "%{user_name} je odustao od objavljivanja tipa veća %{resource_name}"
|
31
|
+
update: "%{user_name} je ažurirao tip veća %{resource_name}"
|
32
|
+
events:
|
33
|
+
assemblies:
|
34
|
+
create_assembly_member:
|
35
|
+
email_subject: Pozvani ste da postanete član veća %{resource_name}!
|
36
|
+
assembly:
|
37
|
+
role_assigned:
|
38
|
+
email_intro: Imenovani ste na funkciju %{role} veća %{resource_title}.
|
39
|
+
email_outro: Dobili ste ovo obaveštenje zbog toga što ste %{role} veća %{resource_title}.
|
40
|
+
email_subject: Imenovani ste na funkciju %{role} %{resource_title}.
|
41
|
+
log:
|
42
|
+
value_types:
|
43
|
+
assembly_type_presenter:
|
44
|
+
not_found: 'Ovaj tip veća nije pronađen u bazi podataka (ID: %{id})'
|