decidim-participatory_processes 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/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
- 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/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +1 -0
- data/config/locales/ar.yml +14 -1
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +32 -0
- data/config/locales/ca-IT.yml +524 -0
- data/config/locales/ca.yml +6 -3
- data/config/locales/cs.yml +5 -4
- data/config/locales/de.yml +4 -1
- data/config/locales/el.yml +1 -1
- data/config/locales/en.yml +3 -0
- data/config/locales/es-MX.yml +6 -3
- data/config/locales/es-PY.yml +6 -3
- data/config/locales/es.yml +7 -4
- data/config/locales/eu.yml +110 -107
- data/config/locales/fi-plain.yml +2 -1
- data/config/locales/fi.yml +8 -7
- data/config/locales/fr-CA.yml +5 -2
- data/config/locales/fr.yml +5 -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 +3 -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 +7 -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: f62baad6499413313f952d8b3f6cf3552d7bea7fccd6186157bebcdab786c080
|
4
|
+
data.tar.gz: 30b390a99a17c135613e7e78d3335dd3d1b6e90d85f56edc4e3207568421c20e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc955ce744afa121d2d0335d4cb836a79c7bf8900ebfd672639837aac0ef02008ab4de718d009e69654a1b62de84bbdf8becdcbdbfbaa74001d4e2751faae5c2
|
7
|
+
data.tar.gz: 2a737cfd019efe487eef20ceb16fa691c5a26cea8a799c6ef7be87255d4455685fb15042d7f085ded96fd52b781f33658fc748929301d839857682c3c2d02531
|
@@ -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
|
|
@@ -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 area_name
|
data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
<% if processes_for_select %>
|
22
22
|
<%= form.select :participatory_process_ids, processes_for_select, {}, { multiple: true, class: "chosen-select" } %>
|
23
23
|
<% end %>
|
24
|
+
<%= form.label :participatory_process_ids, t("decidim.participatory_process_groups.related_processes.help") %>
|
24
25
|
</div>
|
25
26
|
|
26
27
|
<div class="row column">
|
data/config/locales/ar.yml
CHANGED
@@ -23,7 +23,6 @@ ar:
|
|
23
23
|
promoted: رقية
|
24
24
|
published_at: نشرت في
|
25
25
|
related_process_ids: العمليات ذات الصلة
|
26
|
-
scope_id: نطاق
|
27
26
|
scopes_enabled: النطاقات المُفعّلَة
|
28
27
|
short_description: وصف قصير
|
29
28
|
slug: سبيكة العنوان الشبكي
|
@@ -43,6 +42,8 @@ ar:
|
|
43
42
|
short_description: وصف قصير
|
44
43
|
start_date: تاريخ البداية
|
45
44
|
title: العنوان
|
45
|
+
participatory_process_type:
|
46
|
+
title: عنوان
|
46
47
|
participatory_process_user_role:
|
47
48
|
email: البريد الإلكتروني
|
48
49
|
name: اسم
|
@@ -107,6 +108,7 @@ ar:
|
|
107
108
|
models:
|
108
109
|
participatory_process:
|
109
110
|
fields:
|
111
|
+
actions: الإجراءات
|
110
112
|
created_at: أنشئت في
|
111
113
|
private: نشر
|
112
114
|
published: نشرت
|
@@ -120,6 +122,10 @@ ar:
|
|
120
122
|
start_date: تاريخ البدء
|
121
123
|
title: عنوان
|
122
124
|
name: مرحلة العملية التشاركية
|
125
|
+
participatory_process_type:
|
126
|
+
fields:
|
127
|
+
created_at: أنشئت في
|
128
|
+
title: عنوان
|
123
129
|
participatory_process_user_role:
|
124
130
|
fields:
|
125
131
|
email: البريد الإلكتروني
|
@@ -186,6 +192,11 @@ ar:
|
|
186
192
|
update:
|
187
193
|
error: حدثت مشكلة أثناء تحديث هذه المرحلة من العملية التشاركية.
|
188
194
|
success: تم تحديث المرحلة التشاركية بنجاح.
|
195
|
+
participatory_process_types:
|
196
|
+
edit:
|
197
|
+
update: تحديث
|
198
|
+
new:
|
199
|
+
create: إنشاء
|
189
200
|
participatory_process_user_roles:
|
190
201
|
create:
|
191
202
|
error: حدثت مشكلة أثناء إضافة مشارك لهذه العملية التشاركية.
|
@@ -238,6 +249,8 @@ ar:
|
|
238
249
|
publish: "%{user_name} نشر عملية المشاركة %{resource_name}"
|
239
250
|
unpublish: "%{user_name} لم تنشر العملية التشاركية %{resource_name}"
|
240
251
|
update: "%{user_name} تحديث العملية التشاركية %{resource_name}"
|
252
|
+
participatory_process_group:
|
253
|
+
unpublish: "المستخدم %{user_name} قام بإلغاء نشر مجموعة عملية المشاركة %{resource_name}"
|
241
254
|
participatory_process_step:
|
242
255
|
activate: "%{user_name} تفعيل المرحلة %{resource_name} في عملية المشاركة %{space_name}"
|
243
256
|
create: "%{user_name} خلق المرحلة %{resource_name} في العملية التشاركية %{space_name}"
|
@@ -0,0 +1 @@
|
|
1
|
+
bn:
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
bs:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
participatory_process:
|
6
|
+
scope_type_max_depth_id: Obim dubine filtera
|
7
|
+
decidim:
|
8
|
+
admin:
|
9
|
+
models:
|
10
|
+
participatory_process_user_role:
|
11
|
+
roles:
|
12
|
+
valuator: Procenjivač
|
13
|
+
participatory_process_user_roles:
|
14
|
+
edit:
|
15
|
+
title: Ažuriraj administratora participatornog procesa
|
16
|
+
new:
|
17
|
+
title: Novi administrator participatornog prostora
|
18
|
+
events:
|
19
|
+
participatory_process:
|
20
|
+
role_assigned:
|
21
|
+
email_intro: Imenovani ste na funkciju %{role} za participatorni proces "%{resource_title}".
|
22
|
+
email_outro: Dobili ste ovo obaveštenje zbog toga što ste %{role} participatornog procesa "%{resource_title}".
|
23
|
+
email_subject: Imenovani ste na funkciju %{role} %{resource_title}.
|
24
|
+
participatory_process_groups:
|
25
|
+
content_blocks:
|
26
|
+
stats:
|
27
|
+
name: Statistika
|
28
|
+
participatory_processes:
|
29
|
+
admin:
|
30
|
+
participatory_processes:
|
31
|
+
form:
|
32
|
+
scope_type_max_depth_help: Ograniči obim dubine filtera; Filter će pokazivati od opšteg ka odabranom tipu obima.
|