decidim-participatory_processes 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/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
- data/app/models/decidim/participatory_process.rb +1 -1
- data/app/permissions/decidim/participatory_processes/permissions.rb +7 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -1
- data/config/locales/ar.yml +14 -1
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +33 -0
- data/config/locales/ca-IT.yml +525 -0
- data/config/locales/ca.yml +4 -3
- data/config/locales/cs.yml +5 -4
- data/config/locales/de.yml +2 -1
- data/config/locales/el.yml +1 -1
- data/config/locales/en.yml +1 -0
- data/config/locales/es-MX.yml +4 -3
- data/config/locales/es-PY.yml +4 -3
- data/config/locales/es.yml +5 -4
- data/config/locales/eu.yml +108 -107
- data/config/locales/fi-plain.yml +2 -1
- data/config/locales/fi.yml +8 -7
- data/config/locales/fr-CA.yml +3 -2
- data/config/locales/fr.yml +3 -2
- data/config/locales/ga-IE.yml +10 -0
- data/config/locales/gl.yml +12 -1
- data/config/locales/hu.yml +1 -1
- data/config/locales/id-ID.yml +11 -1
- data/config/locales/is-IS.yml +14 -1
- data/config/locales/it.yml +27 -1
- data/config/locales/ja.yml +1 -0
- data/config/locales/lb.yml +12 -1
- data/config/locales/lv.yml +11 -1
- data/config/locales/nl.yml +11 -0
- data/config/locales/no.yml +2 -2
- data/config/locales/pt-BR.yml +9 -1
- data/config/locales/pt.yml +17 -0
- data/config/locales/ro-RO.yml +5 -0
- data/config/locales/ru.yml +14 -1
- data/config/locales/sk.yml +12 -2
- data/config/locales/sv.yml +10 -7
- data/config/locales/tr-TR.yml +12 -1
- data/config/locales/uk.yml +14 -1
- data/config/locales/zh-CN.yml +11 -1
- data/decidim-participatory_processes.gemspec +1 -1
- data/lib/decidim/participatory_processes/query_extensions.rb +26 -0
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 896df4da3cb3e990222b63ec31c8dc39385f600de4d86ddd71a9c204d95e89b5
|
4
|
+
data.tar.gz: 46125fb026f6683de9afafc5028c8ab520a7169596327b3dc0650a68e1af841b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc8ebe189065d96fc96b382ffb4e5a766acb13d7c906392d5135835b4eaae57748f365e0c260c4748efbc50d2f36ae642fa46d951872211d51d3f17c67594e5f
|
7
|
+
data.tar.gz: '08640af47bdd5b469c1fa20b4e1bf1a826e430c0206b45fc91875c4c9f9b5c4948f837d318302f1162571eca94960f7ed0db7bb181f4fc28f71890fda42d6958'
|
@@ -12,15 +12,15 @@ module Decidim
|
|
12
12
|
|
13
13
|
mimic :participatory_process
|
14
14
|
|
15
|
-
translatable_attribute :announcement,
|
16
|
-
translatable_attribute :description,
|
15
|
+
translatable_attribute :announcement, Decidim::Attributes::RichText
|
16
|
+
translatable_attribute :description, Decidim::Attributes::RichText
|
17
17
|
translatable_attribute :developer_group, String
|
18
18
|
translatable_attribute :local_area, String
|
19
19
|
translatable_attribute :meta_scope, String
|
20
20
|
translatable_attribute :participatory_scope, String
|
21
21
|
translatable_attribute :participatory_structure, String
|
22
22
|
translatable_attribute :subtitle, String
|
23
|
-
translatable_attribute :short_description,
|
23
|
+
translatable_attribute :short_description, Decidim::Attributes::RichText
|
24
24
|
translatable_attribute :title, String
|
25
25
|
translatable_attribute :target, String
|
26
26
|
|
@@ -193,7 +193,7 @@ module Decidim
|
|
193
193
|
end
|
194
194
|
|
195
195
|
def user_roles(role_name = nil)
|
196
|
-
roles = Decidim::ParticipatoryProcessUserRole.where(participatory_process: self)
|
196
|
+
roles = Decidim::ParticipatoryProcessUserRole.order_by_name.where(participatory_process: self)
|
197
197
|
return roles if role_name.blank?
|
198
198
|
|
199
199
|
roles.where(role: role_name)
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module Decidim
|
4
4
|
module ParticipatoryProcesses
|
5
5
|
class Permissions < Decidim::DefaultPermissions
|
6
|
+
include Decidim::UserRoleChecker
|
7
|
+
|
6
8
|
def permissions
|
7
9
|
user_can_enter_processes_space_area?
|
8
10
|
user_can_enter_process_groups_space_area?
|
@@ -35,6 +37,7 @@ module Decidim
|
|
35
37
|
user_can_read_process_list?
|
36
38
|
user_can_read_current_process?
|
37
39
|
user_can_create_process?
|
40
|
+
user_can_upload_images_in_process?
|
38
41
|
|
39
42
|
# org admins and space admins can do everything in the admin section
|
40
43
|
org_admin_action?
|
@@ -48,7 +51,6 @@ module Decidim
|
|
48
51
|
collaborator_action?
|
49
52
|
valuator_action?
|
50
53
|
process_admin_action?
|
51
|
-
|
52
54
|
permission_action
|
53
55
|
end
|
54
56
|
|
@@ -288,6 +290,10 @@ module Decidim
|
|
288
290
|
def process_group
|
289
291
|
@process_group ||= context.fetch(:process_group, nil)
|
290
292
|
end
|
293
|
+
|
294
|
+
def user_can_upload_images_in_process?
|
295
|
+
allow! if user&.admin_terms_accepted? && user_has_any_role?(user, process, broad_check: true) && (permission_action.subject == :editor_image)
|
296
|
+
end
|
291
297
|
end
|
292
298
|
end
|
293
299
|
end
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module ParticipatoryProcesses
|
5
5
|
class ParticipatoryProcessPresenter < SimpleDelegator
|
6
6
|
def hero_image_url
|
7
|
-
process.attached_uploader(:hero_image).url
|
7
|
+
process.attached_uploader(:hero_image).url
|
8
8
|
end
|
9
9
|
|
10
10
|
def banner_image_url
|
data/config/locales/ar.yml
CHANGED
@@ -24,7 +24,6 @@ ar:
|
|
24
24
|
promoted: رقية
|
25
25
|
published_at: نشرت في
|
26
26
|
related_process_ids: العمليات ذات الصلة
|
27
|
-
scope_id: نطاق
|
28
27
|
scopes_enabled: النطاقات المُفعّلَة
|
29
28
|
short_description: وصف قصير
|
30
29
|
show_metrics: اظهر المقاييس
|
@@ -46,6 +45,8 @@ ar:
|
|
46
45
|
short_description: وصف قصير
|
47
46
|
start_date: تاريخ البداية
|
48
47
|
title: العنوان
|
48
|
+
participatory_process_type:
|
49
|
+
title: عنوان
|
49
50
|
participatory_process_user_role:
|
50
51
|
email: البريد الإلكتروني
|
51
52
|
name: اسم
|
@@ -110,6 +111,7 @@ ar:
|
|
110
111
|
models:
|
111
112
|
participatory_process:
|
112
113
|
fields:
|
114
|
+
actions: الإجراءات
|
113
115
|
created_at: أنشئت في
|
114
116
|
private: نشر
|
115
117
|
published: نشرت
|
@@ -123,6 +125,10 @@ ar:
|
|
123
125
|
start_date: تاريخ البدء
|
124
126
|
title: عنوان
|
125
127
|
name: مرحلة العملية التشاركية
|
128
|
+
participatory_process_type:
|
129
|
+
fields:
|
130
|
+
created_at: أنشئت في
|
131
|
+
title: عنوان
|
126
132
|
participatory_process_user_role:
|
127
133
|
fields:
|
128
134
|
email: البريد الإلكتروني
|
@@ -189,6 +195,11 @@ ar:
|
|
189
195
|
update:
|
190
196
|
error: حدثت مشكلة أثناء تحديث هذه المرحلة من العملية التشاركية.
|
191
197
|
success: تم تحديث المرحلة التشاركية بنجاح.
|
198
|
+
participatory_process_types:
|
199
|
+
edit:
|
200
|
+
update: تحديث
|
201
|
+
new:
|
202
|
+
create: إنشاء
|
192
203
|
participatory_process_user_roles:
|
193
204
|
create:
|
194
205
|
error: حدثت مشكلة أثناء إضافة مشارك لهذه العملية التشاركية.
|
@@ -241,6 +252,8 @@ ar:
|
|
241
252
|
publish: "%{user_name} نشر عملية المشاركة %{resource_name}"
|
242
253
|
unpublish: "%{user_name} لم تنشر العملية التشاركية %{resource_name}"
|
243
254
|
update: "%{user_name} تحديث العملية التشاركية %{resource_name}"
|
255
|
+
participatory_process_group:
|
256
|
+
unpublish: "المستخدم %{user_name} قام بإلغاء نشر مجموعة عملية المشاركة %{resource_name}"
|
244
257
|
participatory_process_step:
|
245
258
|
activate: "%{user_name} تفعيل المرحلة %{resource_name} في عملية المشاركة %{space_name}"
|
246
259
|
create: "%{user_name} خلق المرحلة %{resource_name} في العملية التشاركية %{space_name}"
|
@@ -0,0 +1 @@
|
|
1
|
+
bn:
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
bs:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
participatory_process:
|
6
|
+
scope_type_max_depth_id: Obim dubine filtera
|
7
|
+
show_metrics: Prikaži metriku
|
8
|
+
decidim:
|
9
|
+
admin:
|
10
|
+
models:
|
11
|
+
participatory_process_user_role:
|
12
|
+
roles:
|
13
|
+
valuator: Procenjivač
|
14
|
+
participatory_process_user_roles:
|
15
|
+
edit:
|
16
|
+
title: Ažuriraj administratora participatornog procesa
|
17
|
+
new:
|
18
|
+
title: Novi administrator participatornog prostora
|
19
|
+
events:
|
20
|
+
participatory_process:
|
21
|
+
role_assigned:
|
22
|
+
email_intro: Imenovani ste na funkciju %{role} za participatorni proces "%{resource_title}".
|
23
|
+
email_outro: Dobili ste ovo obaveštenje zbog toga što ste %{role} participatornog procesa "%{resource_title}".
|
24
|
+
email_subject: Imenovani ste na funkciju %{role} %{resource_title}.
|
25
|
+
participatory_process_groups:
|
26
|
+
content_blocks:
|
27
|
+
stats:
|
28
|
+
name: Statistika
|
29
|
+
participatory_processes:
|
30
|
+
admin:
|
31
|
+
participatory_processes:
|
32
|
+
form:
|
33
|
+
scope_type_max_depth_help: Ograniči obim dubine filtera; Filter će pokazivati od opšteg ka odabranom tipu obima.
|