decidim-accountability 0.17.2 → 0.18.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cbc1b2900c2afcf4168fe56221655b954ea9f84db1363d35a66af69fee8aaa8
4
- data.tar.gz: 987e8a0204546b7b88059e1785bc5ff3c237e18192f86b3e52c90f9cb7ee720a
3
+ metadata.gz: ec65eebf74952fad67ae19dd90d482eaea5292e340c2105ceadce040bab759ca
4
+ data.tar.gz: f5f3e1b7ecd4c62d17bbec2b321c18826afbc95f7e3f3ccaff61f7df9ad51d4a
5
5
  SHA512:
6
- metadata.gz: 3a5b3dae35603a02c1d06a55a67337788a460c7dccf60a3086d106a88461b56954250d89fbbb12a59aab91afaab097c859a975c9065b03816d48767a30e76e00
7
- data.tar.gz: 77b458a73411d0324b25f12a27fbf7e9a72c774b5e49cbc9b55d297f959b5bd7e0049a6181cec2459e4f7fe6e641def4e244f144560d906baf179a150d71f3b0
6
+ metadata.gz: 728776d0e2834f8aee9e3e10fbfa2e37aceefa41c9e92bd7d8003bde99a49747ceeea5be6c3f4f2c431e54b50ad44e7d307cef5bd798a2110fab2dc202479db1
7
+ data.tar.gz: 1f15a22e74fc4539e9b3b735d3555b2363b912228406453cc102ff3d5441deebe433504cf3cd25b99ff7a20da0e114e31770ff0c4e9274d0546d45f66b1faa86
@@ -76,10 +76,18 @@ module Decidim
76
76
  true
77
77
  end
78
78
 
79
+ # Public: Whether the object can have new comments or not.
80
+ def user_allowed_to_comment?(user)
81
+ can_participate_in_space?(user)
82
+ end
83
+
79
84
  private
80
85
 
81
86
  # Private: When a row uses weight 1 and there's more than one, weight shouldn't be considered
87
+ # Handle special case when all children weight are nil
82
88
  def children_use_weighted_progress?
89
+ return false if children.pluck(:weight).all?(&:nil?)
90
+
83
91
  children.length == 1 || children.pluck(:weight).none? { |weight| weight == 1.0 }
84
92
  end
85
93
  end
@@ -3,7 +3,6 @@
3
3
  <h2 class="card-title">
4
4
  <%= t(".title") %>
5
5
  <%= link_to t("actions.new", scope: "decidim.accountability", name: t("models.status.name", scope: "decidim.accountability.admin")), new_status_path, class: "button tiny button--title" if allowed_to? :create, :status %>
6
- <%= render partial: "decidim/accountability/admin/shared/subnav" %>
7
6
  </h2>
8
7
  </div>
9
8
 
@@ -26,7 +26,7 @@
26
26
  </div>
27
27
  <% end %>
28
28
 
29
- <div class="columns mediumlarge-9 mediumlarge-pull-3">
29
+ <div class="columns mediumlarge-9 <%= component_settings.display_progress_enabled? && result.progress.present? ? "mediumlarge-pull-3" : "" %>">
30
30
  <div class="section">
31
31
  <div class="result-meta row">
32
32
  <% if result.start_date %>
@@ -9,10 +9,7 @@
9
9
  <div class="row">
10
10
  <div class="mediumlarge-8 columns">
11
11
  <div class="section">
12
- <% diff_renderer.diff.each_value do |data| %>
13
- <h3 class="section-heading"><%= data[:label] %></h3>
14
- <%= render_diff_data(data) %>
15
- <% end %>
12
+ <%= cell("decidim/diff", current_version) %>
16
13
  </div>
17
14
  </div>
18
15
 
@@ -0,0 +1,234 @@
1
+ ar:
2
+ activemodel:
3
+ attributes:
4
+ result:
5
+ decidim_accountability_status_id: الحالة
6
+ decidim_category_id: الفئة
7
+ decidim_scope_id: نطاق
8
+ description: وصف
9
+ end_date: تاريخ الانتهاء
10
+ progress: تقدم
11
+ project_ids: المشاريع المدرجة
12
+ proposals: وشملت المقترحات
13
+ start_date: تاريخ البدء
14
+ title: عنوان
15
+ updated_at: تم التحديث في
16
+ status:
17
+ description: وصف
18
+ key: مفتاح
19
+ name: اسم
20
+ progress: تقدم
21
+ timeline_entry:
22
+ description: وصف
23
+ entry_date: تاريخ
24
+ models:
25
+ decidim/accountability/proposal_linked_event: اقتراح المدرجة في النتيجة
26
+ decidim/accountability/result_progress_updated_event: نتيجة التقدم المحدث
27
+ activerecord:
28
+ models:
29
+ decidim/accountability/result:
30
+ zero: النتائج
31
+ one: نتيجة
32
+ two: النتائج
33
+ few: النتائج
34
+ many: النتائج
35
+ other: النتائج
36
+ decidim:
37
+ accountability:
38
+ actions:
39
+ confirm_destroy: هل أنت متأكد أنك تريد حذف هذا %{name}؟
40
+ destroy: حذف
41
+ edit: تعديل
42
+ new: جديد %{name}
43
+ preview: معاينة
44
+ timeline_entries: تطور المشروع
45
+ title: أفعال
46
+ admin:
47
+ exports:
48
+ results: النتائج
49
+ models:
50
+ result:
51
+ name: نتيجة
52
+ status:
53
+ name: الحالة
54
+ timeline_entry:
55
+ name: دخول الجدول الزمني
56
+ results:
57
+ create:
58
+ invalid: كانت هناك مشكلة في إنشاء هذه النتيجة
59
+ success: تم إنشاء النتيجة بنجاح
60
+ destroy:
61
+ success: تم حذف النتيجة بنجاح
62
+ edit:
63
+ title: تحرير النتيجة
64
+ update: تحديث النتيجة
65
+ form:
66
+ add_proposal: إضافة اقتراح
67
+ index:
68
+ title: النتائج
69
+ new:
70
+ create: إنشاء نتيجة
71
+ title: نتيجة جديدة
72
+ proposals:
73
+ close: قريب
74
+ current_selection: الإختيار الحالي
75
+ select: تحديد
76
+ update:
77
+ invalid: حدثت مشكلة أثناء تحديث هذه النتيجة
78
+ success: تم تحديث النتيجة بنجاح
79
+ shared:
80
+ subnav:
81
+ statuses: الأوضاع
82
+ statuses:
83
+ create:
84
+ invalid: كانت هناك مشكلة في إنشاء هذه الحالة
85
+ success: تم إنشاء الحالة بنجاح
86
+ destroy:
87
+ success: تم حذف الحالة بنجاح
88
+ edit:
89
+ title: تحرير الحالة
90
+ update: تحديث الحالة
91
+ index:
92
+ title: الأوضاع
93
+ new:
94
+ create: إنشاء الحالة
95
+ title: حالة جديدة
96
+ update:
97
+ invalid: حدثت مشكلة أثناء تحديث هذه الحالة
98
+ success: تم تحديث الحالة بنجاح
99
+ timeline_entries:
100
+ create:
101
+ invalid: حدثت مشكلة أثناء إنشاء هذا الإدخال
102
+ success: تم إنشاء الدخول بنجاح
103
+ destroy:
104
+ success: تم حذف الإدخال بنجاح
105
+ edit:
106
+ title: تحرير دخول
107
+ update: تحديث الإدخال
108
+ index:
109
+ title: إدخالات الجدول الزمني للمشروع
110
+ new:
111
+ create: إنشاء دخول
112
+ title: دخول جديد
113
+ update:
114
+ invalid: حدثت مشكلة أثناء تحديث هذا الإدخال
115
+ success: تم تحديث الإدخال بنجاح
116
+ admin_log:
117
+ result:
118
+ create: "%{user_name} نتيجة تم إنشاؤها %{resource_name} في %{space_name}"
119
+ delete: "%{user_name} حذف النتيجة %{resource_name} في %{space_name}"
120
+ update: "%{user_name} نتيجة محدثة %{resource_name} في %{space_name}"
121
+ value_types:
122
+ parent_presenter:
123
+ not_found: 'لم يتم العثور على الأصل في قاعدة البيانات (المعرف: %{id})'
124
+ last_activity:
125
+ new_result_at_html: "<span>نتيجة جديدة في %{link}</span>"
126
+ models:
127
+ result:
128
+ fields:
129
+ end_date: تاريخ الانتهاء
130
+ progress: تقدم
131
+ start_date: تاريخ البدء
132
+ status: الحالة
133
+ title: عنوان
134
+ status:
135
+ fields:
136
+ description: وصف
137
+ key: مفتاح
138
+ name: اسم
139
+ progress: تقدم
140
+ timeline_entry:
141
+ fields:
142
+ description: وصف
143
+ entry_date: تاريخ
144
+ results:
145
+ count:
146
+ results_count:
147
+ zero: "%{count} النتائج"
148
+ one: نتيجة واحدة
149
+ two: "%{count} النتائج"
150
+ few: "%{count} النتائج"
151
+ many: "%{count} النتائج"
152
+ other: "%{count} النتائج"
153
+ filters:
154
+ all: الكل
155
+ scopes: نطاقات
156
+ home:
157
+ categories_label: الاقسام
158
+ subcategories_label: الفئات الفرعية
159
+ home_header:
160
+ global_status: حالة التنفيذ العالمي
161
+ nav_breadcrumb:
162
+ global: التنفيذ العالمي
163
+ search:
164
+ search: البحث عن الإجراءات
165
+ show:
166
+ stats:
167
+ attendees: الحاضرين
168
+ back_to_result: العودة إلى النتيجة
169
+ comments: تعليقات
170
+ contributions: مساهمات
171
+ last_edited_by: التعديل الأخير تم بواسطة
172
+ last_updated_at: آخر تحديث في
173
+ meetings: اجتماعات
174
+ number_of_versions: إصدارات
175
+ proposals: اقتراحات
176
+ show_all_versions: عرض جميع الإصدارات
177
+ version_author: مؤلف الإصدار
178
+ version_created_at: تم إنشاء الإصدار في
179
+ version_number: رقم الإصدار
180
+ version_number_out_of_total: "%{current_version} من %{total_count}"
181
+ votes: الدعم
182
+ timeline:
183
+ title: تطور المشروع
184
+ versions:
185
+ index:
186
+ changes_at_title: التغييرات في "%{title}"
187
+ title: إصدارات
188
+ show:
189
+ changes_at_title: التغييرات في "%{title}"
190
+ version:
191
+ version_index: الإصدار %{index}
192
+ components:
193
+ accountability:
194
+ name: المسائلة
195
+ settings:
196
+ global:
197
+ categories_label: اسم "الفئات"
198
+ comments_enabled: تم تمكين التعليقات
199
+ display_progress_enabled: عرض التقدم
200
+ heading_leaf_level_results: اسم "المشاريع"
201
+ heading_parent_level_results: اسم "النتائج"
202
+ intro: مقدمة
203
+ subcategories_label: اسم "الفئات الفرعية"
204
+ step:
205
+ comments_blocked: تم حظر التعليقات
206
+ events:
207
+ accountability:
208
+ proposal_linked:
209
+ email_intro: 'تم تضمين الاقتراح "%{proposal_title}" في النتيجة. يمكنك أن ترى ذلك من هذه الصفحة:'
210
+ email_outro: لقد تلقيت هذا الإشعار لأنك تتابع "%{proposal_title}". يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
211
+ email_subject: تحديث إلى %{proposal_title}
212
+ notification_title: تم إدراج الاقتراح <a href="%{proposal_path}">%{proposal_title}</a> في النتيجة <a href="%{resource_path}">%{resource_title}</a>.
213
+ result_progress_updated:
214
+ email_intro: 'النتيجة "%{resource_title}" ، التي تتضمن الاقتراح "%{proposal_title}" ، اكتملت الآن بنسبة %{progress}٪. يمكنك أن ترى ذلك من هذه الصفحة:'
215
+ email_outro: لقد تلقيت هذا الإشعار لأنك تتابع "%{proposal_title}" ، ويتم تضمين هذا الاقتراح في النتيجة "%{resource_title}". يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
216
+ email_subject: تحديث إلى %{resource_title} التقدم
217
+ notification_title: النتيجة <a href="%{resource_path}">%{resource_title}</a>، التي تتضمن الاقتراح <a href="%{proposal_path}">%{proposal_title}</a>، اكتملت الآن بنسبة %{progress}٪.
218
+ metrics:
219
+ results:
220
+ description: عدد النتائج الناتجة
221
+ object: النتائج
222
+ title: النتائج
223
+ participatory_processes:
224
+ participatory_process_groups:
225
+ highlighted_results:
226
+ results: النتائج
227
+ participatory_spaces:
228
+ highlighted_results:
229
+ see_all: شاهد الكل (%{count})
230
+ resource_links:
231
+ included_projects:
232
+ result_project: المشاريع المدرجة في هذه النتيجة
233
+ included_proposals:
234
+ result_proposal: المقترحات المدرجة في هذه النتيجة
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.17.2"
7
+ "0.18.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-accountability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.17.2
21
+ version: 0.18.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.17.2
28
+ version: 0.18.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.17.2
35
+ version: 0.18.0
36
36
  type: :runtime
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.17.2
42
+ version: 0.18.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: kaminari
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,98 +74,98 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.17.2
77
+ version: 0.18.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.17.2
84
+ version: 0.18.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-assemblies
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.17.2
91
+ version: 0.18.0
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.17.2
98
+ version: 0.18.0
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-comments
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.17.2
105
+ version: 0.18.0
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.17.2
112
+ version: 0.18.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-dev
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.17.2
119
+ version: 0.18.0
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.17.2
126
+ version: 0.18.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-meetings
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.17.2
133
+ version: 0.18.0
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.17.2
140
+ version: 0.18.0
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-participatory_processes
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.17.2
147
+ version: 0.18.0
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.17.2
154
+ version: 0.18.0
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-proposals
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.17.2
161
+ version: 0.18.0
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.17.2
168
+ version: 0.18.0
169
169
  description: An accountability component for decidim's participatory spaces.
170
170
  email:
171
171
  - josepjaume@gmail.com
@@ -188,7 +188,6 @@ files:
188
188
  - app/assets/stylesheets/decidim/accountability/accountability/_categories.scss
189
189
  - app/assets/stylesheets/decidim/accountability/accountability/_lines_breadcrumb.scss
190
190
  - app/assets/stylesheets/decidim/accountability/accountability/_results.scss
191
- - app/assets/stylesheets/decidim/accountability/accountability/_versions.scss
192
191
  - app/cells/decidim/accountability/highlighted_results/show.erb
193
192
  - app/cells/decidim/accountability/highlighted_results_cell.rb
194
193
  - app/cells/decidim/accountability/highlighted_results_for_component/show.erb
@@ -268,6 +267,7 @@ files:
268
267
  - app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb
269
268
  - app/views/decidim/participatory_spaces/_result.html.erb
270
269
  - config/locales/ar-SA.yml
270
+ - config/locales/ar.yml
271
271
  - config/locales/ca.yml
272
272
  - config/locales/cs-CZ.yml
273
273
  - config/locales/cs.yml
@@ -1,9 +0,0 @@
1
- .diff{
2
- .addition{
3
- background-color: #e6ffed;
4
- }
5
-
6
- .removal{
7
- background-color: #ffeef0;
8
- }
9
- }