decidim-assemblies 0.29.1 → 0.29.3
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 +5 -0
- 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 +460 -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 +49 -49
- 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 +172 -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 +76 -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 +83 -1
- data/config/locales/ro-RO.yml +22 -18
- data/config/locales/ru.yml +9 -6
- data/config/locales/sk.yml +18 -0
- data/config/locales/sl.yml +15 -0
- data/config/locales/sq-AL.yml +6 -3
- data/config/locales/sv.yml +6 -6
- 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: 1280d52db870048756330e0ed0bbe79b95b5aac584d99702ba5c52ba79271c0d
|
4
|
+
data.tar.gz: 1442d05f14f78220473d84fc8a4d2ee1341469e26f51d9bafe8692439f66625b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89650623cdec7190a62120dae43ad2cd0c6364c09775c3ed057a8a8ca7bbc4f020d24c2aaec9e5819a84ef87e73d9428090644b598280f04233bd8c05eedb750
|
7
|
+
data.tar.gz: da7f6563c7a3f15bcbf93f64a2528593edc6bfa03e64d5946ae0ec09b43811e5e3f2b12a2513a003fd776593c892c64bd159bd47e121df39f0d8ead9c1233795
|
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
|
@@ -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
|
slug: سبيكة العنوان الشبكي
|
@@ -187,7 +187,7 @@ ar:
|
|
187
187
|
success: تم تحديث المشرف على هذه الجمعية بنجاح.
|
188
188
|
filters:
|
189
189
|
decidim_assemblies_type_id_eq:
|
190
|
-
label: نوع
|
190
|
+
label: نوع التجمع
|
191
191
|
menu:
|
192
192
|
assemblies: الجمعيات
|
193
193
|
assemblies_submenu:
|
@@ -199,7 +199,7 @@ ar:
|
|
199
199
|
categories: الفئات
|
200
200
|
components: المكونات
|
201
201
|
moderations: الإعتدال
|
202
|
-
assemblies_types:
|
202
|
+
assemblies_types: أنواع التجمّعات
|
203
203
|
models:
|
204
204
|
assemblies_types:
|
205
205
|
fields:
|
@@ -207,6 +207,7 @@ ar:
|
|
207
207
|
title: العنوان
|
208
208
|
assembly:
|
209
209
|
fields:
|
210
|
+
actions: الإجراءات
|
210
211
|
created_at: تاريخ الإنشاء
|
211
212
|
private: خاص
|
212
213
|
promoted: سلط الضوء
|
@@ -218,7 +219,7 @@ ar:
|
|
218
219
|
ceased_date: تاريخ التوقف
|
219
220
|
designation_date: تاريخ التعيين
|
220
221
|
full_name: الاسم
|
221
|
-
position:
|
222
|
+
position: الموقع
|
222
223
|
name: عضو
|
223
224
|
positions:
|
224
225
|
other: آخر
|
@@ -313,9 +314,9 @@ ar:
|
|
313
314
|
commission: اللجنة
|
314
315
|
consultative_advisory: استشاري / الاستشارية
|
315
316
|
executive: تنفيذية
|
316
|
-
government:
|
317
|
+
government: الحكومية
|
317
318
|
others: أخرى
|
318
|
-
participatory:
|
319
|
+
participatory: التشاركية
|
319
320
|
working_group: فريق العمل
|
320
321
|
content_blocks:
|
321
322
|
children_assemblies:
|
@@ -345,7 +346,7 @@ ar:
|
|
345
346
|
member_of:
|
346
347
|
member_of: عضو في
|
347
348
|
show:
|
348
|
-
assembly_type: نوع
|
349
|
+
assembly_type: نوع التجمع
|
349
350
|
duration: المدة الزمنية
|
350
351
|
private_space: هذه جمعية خاصة
|
351
352
|
social_networks_title: زيارة التجمع على
|
@@ -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})'
|