decidim-consultations 0.26.10 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/consultations/consultation_m_cell.rb +3 -1
  3. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +2 -2
  4. data/app/commands/decidim/consultations/admin/create_consultation.rb +1 -1
  5. data/app/commands/decidim/consultations/admin/create_question.rb +1 -1
  6. data/app/commands/decidim/consultations/admin/create_response.rb +1 -1
  7. data/app/commands/decidim/consultations/admin/create_response_group.rb +1 -1
  8. data/app/commands/decidim/consultations/admin/destroy_response_group.rb +1 -1
  9. data/app/commands/decidim/consultations/admin/publish_consultation.rb +1 -1
  10. data/app/commands/decidim/consultations/admin/publish_consultation_results.rb +1 -1
  11. data/app/commands/decidim/consultations/admin/publish_question.rb +1 -1
  12. data/app/commands/decidim/consultations/admin/unpublish_consultation.rb +1 -1
  13. data/app/commands/decidim/consultations/admin/unpublish_consultation_results.rb +1 -1
  14. data/app/commands/decidim/consultations/admin/unpublish_question.rb +1 -1
  15. data/app/commands/decidim/consultations/admin/update_consultation.rb +1 -1
  16. data/app/commands/decidim/consultations/admin/update_question.rb +1 -1
  17. data/app/commands/decidim/consultations/admin/update_question_configuration.rb +1 -1
  18. data/app/commands/decidim/consultations/admin/update_response.rb +1 -1
  19. data/app/commands/decidim/consultations/admin/update_response_group.rb +1 -1
  20. data/app/commands/decidim/consultations/multiple_vote_question.rb +1 -1
  21. data/app/commands/decidim/consultations/unvote_question.rb +1 -1
  22. data/app/commands/decidim/consultations/vote_question.rb +1 -1
  23. data/app/controllers/decidim/consultations/consultations_controller.rb +5 -12
  24. data/app/forms/decidim/consultations/admin/consultation_form.rb +1 -1
  25. data/app/helpers/decidim/consultations/consultations_helper.rb +1 -1
  26. data/app/helpers/decidim/consultations/questions_helper.rb +3 -3
  27. data/app/models/decidim/consultation.rb +9 -3
  28. data/app/permissions/decidim/consultations/permissions.rb +1 -3
  29. data/app/presenters/decidim/consultations/question_stats_presenter.rb +4 -2
  30. data/app/queries/decidim/consultations/admin/admin_users.rb +1 -1
  31. data/app/queries/decidim/consultations/organization_active_consultations.rb +1 -1
  32. data/app/queries/decidim/consultations/organization_consultations.rb +1 -1
  33. data/app/queries/decidim/consultations/organization_questions.rb +1 -1
  34. data/app/views/decidim/consultations/_consultation.html.erb +1 -1
  35. data/app/views/decidim/consultations/admin/consultations/_form.html.erb +1 -1
  36. data/app/views/decidim/consultations/admin/consultations/edit.html.erb +0 -1
  37. data/app/views/decidim/consultations/admin/consultations/index.html.erb +0 -2
  38. data/app/views/decidim/consultations/admin/consultations/new.html.erb +0 -1
  39. data/app/views/decidim/consultations/admin/question_configuration/_form.html.erb +1 -1
  40. data/app/views/decidim/consultations/admin/questions/_form.html.erb +3 -3
  41. data/app/views/decidim/consultations/admin/questions/edit.html.erb +0 -1
  42. data/app/views/decidim/consultations/admin/questions/index.html.erb +0 -2
  43. data/app/views/decidim/consultations/admin/questions/new.html.erb +0 -1
  44. data/app/views/decidim/consultations/admin/responses/edit.html.erb +0 -1
  45. data/app/views/decidim/consultations/admin/responses/index.html.erb +0 -1
  46. data/app/views/decidim/consultations/admin/responses/new.html.erb +0 -1
  47. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +1 -1
  48. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  49. data/app/views/decidim/consultations/consultations/_filters.html.erb +4 -4
  50. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  51. data/app/views/decidim/consultations/consultations/index.html.erb +3 -1
  52. data/app/views/decidim/consultations/question_multiple_votes/_voting_rules.html.erb +3 -1
  53. data/app/views/decidim/consultations/questions/_vote_button.html.erb +3 -1
  54. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  55. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -0
  56. data/app/views/decidim/consultations/questions/show.html.erb +6 -4
  57. data/app/views/layouts/decidim/_consultation_header.html.erb +1 -1
  58. data/app/views/layouts/decidim/_question_header.html.erb +2 -2
  59. data/config/locales/am-ET.yml +1 -0
  60. data/config/locales/ar.yml +2 -22
  61. data/config/locales/bg.yml +1 -0
  62. data/config/locales/ca.yml +2 -5
  63. data/config/locales/cs.yml +3 -6
  64. data/config/locales/da.yml +1 -0
  65. data/config/locales/de.yml +5 -8
  66. data/config/locales/el.yml +1 -11
  67. data/config/locales/en.yml +1 -5
  68. data/config/locales/eo.yml +1 -0
  69. data/config/locales/es-MX.yml +2 -5
  70. data/config/locales/es-PY.yml +2 -5
  71. data/config/locales/es.yml +2 -5
  72. data/config/locales/et.yml +1 -0
  73. data/config/locales/eu.yml +47 -51
  74. data/config/locales/fi-plain.yml +2 -5
  75. data/config/locales/fi.yml +9 -12
  76. data/config/locales/fr-CA.yml +3 -6
  77. data/config/locales/fr.yml +4 -7
  78. data/config/locales/ga-IE.yml +1 -1
  79. data/config/locales/gl.yml +2 -1
  80. data/config/locales/hr.yml +1 -0
  81. data/config/locales/hu.yml +2 -11
  82. data/config/locales/id-ID.yml +1 -1
  83. data/config/locales/is-IS.yml +2 -1
  84. data/config/locales/it.yml +1 -1
  85. data/config/locales/ja.yml +2 -5
  86. data/config/locales/ko.yml +1 -0
  87. data/config/locales/lb.yml +1 -3
  88. data/config/locales/lt.yml +1 -398
  89. data/config/locales/lv.yml +1 -1
  90. data/config/locales/mt.yml +1 -0
  91. data/config/locales/nl.yml +2 -2
  92. data/config/locales/no.yml +1 -1
  93. data/config/locales/om-ET.yml +1 -0
  94. data/config/locales/pl.yml +1 -5
  95. data/config/locales/pt-BR.yml +2 -2
  96. data/config/locales/pt.yml +1 -1
  97. data/config/locales/ro-RO.yml +2 -5
  98. data/config/locales/ru.yml +1 -3
  99. data/config/locales/si-LK.yml +1 -0
  100. data/config/locales/sk.yml +1 -1
  101. data/config/locales/sl.yml +1 -0
  102. data/config/locales/so-SO.yml +1 -0
  103. data/config/locales/sr-CS.yml +1 -0
  104. data/config/locales/sv.yml +2 -5
  105. data/config/locales/sw-KE.yml +1 -0
  106. data/config/locales/ti-ER.yml +1 -0
  107. data/config/locales/tr-TR.yml +1 -1
  108. data/config/locales/uk.yml +1 -3
  109. data/config/locales/val-ES.yml +1 -0
  110. data/config/locales/vi.yml +1 -0
  111. data/config/locales/zh-CN.yml +1 -1
  112. data/config/locales/zh-TW.yml +1 -368
  113. data/lib/decidim/consultations/participatory_space.rb +7 -7
  114. data/lib/decidim/consultations/version.rb +1 -1
  115. metadata +14 -24
  116. data/app/scrubbers/decidim/consultations/question_title_scrubber.rb +0 -17
  117. data/app/services/decidim/consultations/consultation_search.rb +0 -51
  118. data/config/locales/fa-IR.yml +0 -1
  119. data/config/locales/gn-PY.yml +0 -1
  120. data/config/locales/ka-GE.yml +0 -1
  121. data/config/locales/kaa.yml +0 -15
  122. data/config/locales/lo-LA.yml +0 -1
  123. data/config/locales/oc-FR.yml +0 -1
  124. data/config/locales/sq-AL.yml +0 -1
  125. data/config/locales/th-TH.yml +0 -1
@@ -1,369 +1,2 @@
1
+ ---
1
2
  zh-TW:
2
- activemodel:
3
- attributes:
4
- consultation:
5
- banner_image: 橫幅圖片
6
- decidim_highlighted_scope_id: 重點關注範圍
7
- description: 說明
8
- end_voting_date: 投票截止
9
- introductory_image: 介紹圖片
10
- introductory_video_url: 介紹視訊URL
11
- questions: 問題
12
- slug: URL網址別名
13
- start_voting_date: 開始投票
14
- subtitle: 子標題
15
- title: 標題
16
- question:
17
- banner_image: 橫幅圖片
18
- decidim_scope_id: 市政區域
19
- hashtag: 主題標籤
20
- hero_image: 首頁圖片
21
- i_frame_url: 外部投票系統網址
22
- instructions: 投票的附加說明
23
- max_votes: 最大投票數量
24
- min_votes: 最小投票數量
25
- origin_scope: 範圍
26
- origin_title: 起源
27
- origin_url: 原始網址
28
- participatory_scope: 參與範圍
29
- promoter_group: 促銷團隊
30
- question_context: 上下文
31
- reference: 參考
32
- scope: 市政區域
33
- slug: URL網址別名
34
- subtitle: 子標題
35
- vote: 外部投票系統
36
- what_is_decided: 決定了什麼
37
- response:
38
- decidim_consultations_response_group_id: 群組
39
- errors:
40
- models:
41
- question:
42
- attributes:
43
- max_votes:
44
- lower_than_min: 最大投票數量應該高於或等於最小投票數量。
45
- vote:
46
- decidim_consultations_response_id:
47
- not_found: 找不到回應。
48
- activerecord:
49
- errors:
50
- models:
51
- decidim/consultations/vote:
52
- attributes:
53
- question:
54
- invalid_num_votes: 投票數無效。
55
- models:
56
- decidim/consultation:
57
- other: 諮詢
58
- decidim/consultations/question:
59
- other: 問題
60
- decidim/consultations/response:
61
- other: "One\n回應\n\nOther\n回應"
62
- decidim/consultations/vote:
63
- other: 投票
64
- decidim:
65
- admin:
66
- actions:
67
- back_to_responses: 返回回覆
68
- new_consultation: 新諮詢
69
- new_question: 新問題
70
- new_response: 新回覆
71
- new_response_group: 新群組
72
- publish_results: 發佈結果
73
- response_groups: 管理回應群組
74
- unpublish_results: 取消發佈結果
75
- consultation_publications:
76
- create:
77
- error: 發布此諮詢時出現問題。
78
- success: 諮詢成功發佈。
79
- destroy:
80
- error: 取消發佈此諮詢出現問題。
81
- success: 諮詢已成功取消發布。
82
- consultation_results_publications:
83
- create:
84
- error: 發佈此諮詢的結果時出現問題。
85
- success: 諮詢結果成功發佈。
86
- destroy:
87
- error: 取消發佈此諮詢的結果出現問題。
88
- success: 諮詢結果已成功取消發布。
89
- consultations:
90
- create:
91
- error: 建立新諮詢時出現問題。
92
- success: 諮詢已成功建立。
93
- deprecation_warning: 諮詢模組將在不久的將來被棄用。我們正在開發下一個加密安全版本,名為 Votings。
94
- edit:
95
- update: 更新
96
- form:
97
- slug_help: 'URL slugs 用於產生指向此諮詢的網址。它只接受字母、數字和連字符,且必須以字母開頭。例如: %{url}'
98
- title: 一般資訊
99
- index:
100
- not_published: 未發佈
101
- published: 已發佈
102
- new:
103
- create: 建立
104
- title: 新諮詢
105
- results:
106
- not_visible: 結果將在諮詢結束後公佈。
107
- participants: "%{count} 位參與者"
108
- total_votes: '總共:%{count} 票'
109
- update:
110
- error: 更新此諮詢時出現問題.
111
- success: 諮詢更新成功
112
- menu:
113
- consultations: 諮詢
114
- consultations_submenu:
115
- info: 資訊
116
- questions: 問題
117
- results: 結果
118
- questions_submenu:
119
- attachments: 附件
120
- categories: 類別
121
- components: 组件
122
- configuration: 配置
123
- consultation: 諮詢
124
- info: 資訊
125
- responses: 回應
126
- models:
127
- consultation:
128
- fields:
129
- created_at: 建立於
130
- published: 已發佈
131
- title: 標題
132
- name:
133
- other: "One\n諮詢\n\nOther\n諮詢"
134
- question:
135
- fields:
136
- created_at: 建立於
137
- published: 已發佈
138
- title: 標題
139
- name:
140
- other: 問題
141
- response:
142
- fields:
143
- created_at: 建立於
144
- response_group: 群組
145
- title: 標題
146
- name:
147
- other: 回應
148
- question_configuration:
149
- disable_external_voting: 請在進階配置中禁用外部投票功能。
150
- form:
151
- help: 通過增加參與者可以選擇的最大回應數量,來設置多選題。預設的最大值為1,意味著只能選擇一個回應進行投票。
152
- title: 進階配置
153
- question_publications:
154
- create:
155
- error: 發佈此問題時出現問題。
156
- success: 問題成功發佈.
157
- destroy:
158
- error: 取消發佈問題時出了問題.
159
- success: 問題已成功取消發佈。
160
- questions:
161
- create:
162
- error: 建立新問題時出現問題。
163
- success: 問題成功建立。
164
- destroy:
165
- success: 問題已成功刪除.
166
- edit:
167
- update: 更新
168
- form:
169
- title: 一般資訊
170
- index:
171
- not_published: 未發佈
172
- published: 已發佈
173
- new:
174
- create: 建立
175
- title: 新問題
176
- update:
177
- error: 更新問題時出現問題。
178
- success: 問題成功更新.
179
- response_groups:
180
- create:
181
- error: 建立新回應群組時發生問題。
182
- success: 回應群組已成功創建.
183
- destroy:
184
- error: 移除回應群組時發生問題。請確認沒有任何回應依賴於該群組。
185
- success: 回應群組已成功刪除
186
- edit:
187
- update: 更新
188
- form:
189
- title: 一般資訊
190
- help: 使用群組來組織多個選擇題目,將其分成套裝。
191
- new:
192
- create: 建立
193
- title: 新回應群組
194
- update:
195
- error: 更新此回應時出現問題。
196
- success: 回應成功更新.
197
- responses:
198
- create:
199
- error: 建立新回應時發生問題。
200
- success: 回應已成功創建.
201
- destroy:
202
- error: 移除回應時發生問題。
203
- success: 回應已成功刪除。
204
- edit:
205
- update: 更新
206
- form:
207
- title: 一般資訊
208
- new:
209
- create: 建立
210
- title: 新回應
211
- update:
212
- error: 更新此回應時出現問題。
213
- success: 回應成功更新.
214
- titles:
215
- consultations: 諮詢
216
- questions: 問題
217
- response_groups: 回應群組
218
- responses: 回應
219
- results: 結果
220
- consultations:
221
- admin:
222
- content_blocks:
223
- highlighted_consultations:
224
- max_results: 顯示的最大元素數量
225
- consultation:
226
- start_voting_date: 開始投票
227
- view_results: 顯示結果
228
- consultation_card:
229
- view_results: 顯示結果
230
- consultations:
231
- orders:
232
- label: '按照以下方式對諮詢進行排序:'
233
- random: 隨機
234
- recent: 最近
235
- show:
236
- dates: 日期
237
- content_blocks:
238
- highlighted_consultations:
239
- name: 重點關注諮詢
240
- count:
241
- title:
242
- other: "One\n%{count} 個諮詢\nOther\n%{count} 個諮詢"
243
- filters:
244
- active: 生效
245
- all: 全部
246
- finished: 已完成
247
- search: 搜尋
248
- state: 狀態
249
- upcoming: 即將舉行
250
- filters_small_view:
251
- close_modal: 關閉視窗
252
- filter: 篩選器
253
- filter_by: 篩選條件
254
- unfold: 展開
255
- highlighted_questions:
256
- title: 來自於 %{scope_name} 的問題
257
- index:
258
- title: 諮詢
259
- last_activity:
260
- new_consultation: 新諮詢
261
- new_question_at_html: "<span>有新問題,連結網址為 %{link}</span>"
262
- pages:
263
- home:
264
- highlighted_consultations:
265
- active_consultations: 進行中的諮詢
266
- see_all_consultations: 查看所有諮詢
267
- voting_ends_in:
268
- other: "One\n投票截止日期:<strong>明天</strong>\n\nOther\n投票截止日期:<strong>%{count} 天後</strong>"
269
- voting_ends_today: 投票截止日期:<strong>今天</strong>
270
- question:
271
- take_part: 參與
272
- view_results: 顯示結果
273
- votes_out_of:
274
- other: "one\n票中的一個\n\nOther\n票中的數個"
275
- question_multiple_votes:
276
- results_rules:
277
- minimum_votes_per_user:
278
- description: 參與者可以將最少 %{votes} 票分配給不同的選項。
279
- title: 在這個問題中,允許多個選擇。
280
- total_participants: 總共有 %{count} 人參與了投票。
281
- vote_limit:
282
- description: 參與者最多可以投票給 %{limit} 個選項。
283
- voting_rules:
284
- minimum_votes_per_user:
285
- description: 您必須將最少 %{votes} 票分配給不同的選項。
286
- title: '投票受以下規則約束:'
287
- vote_limit:
288
- description: 您最多可以對 %{limit} 個選項進行投票。
289
- left: 剩餘
290
- votes: 投票
291
- question_votes:
292
- create:
293
- error: 投票此問題時出現問題。
294
- success: 您可以在諮詢結束之前更改投票。只有最後一次投票將被接受。
295
- title_error: 投票錯誤!
296
- title_success: 投票成功註冊。
297
- regular_questions:
298
- title: 此諮詢的問題
299
- show:
300
- badge_name:
301
- finished: 已完成
302
- open: 開啟
303
- open_votes: 開放投票
304
- published_results: 公佈結果
305
- footer_button_text:
306
- debate: 辯論
307
- view: 檢視
308
- view_results: 顯示結果
309
- vote: 投票
310
- unspecified: 未指定
311
- help:
312
- participatory_spaces:
313
- consultations:
314
- contextual: "<p>一個<strong>諮詢</strong>是一個空間,讓您向組織的所有成員提出明確的問題,呼籲參與諮詢,引發並組織支持或反對某個回應的討論。當諮詢日期到來時,您可以進行投票並公佈投票結果。</p> <p>例子:諮詢可以涉及影響組織的幾乎所有方面:例如,更改組織的名稱或標誌,提供多個選項,決定是否加入一個更大的組織,驗證或拒絕新的戰略計劃或工作小組的結果,或確定職位是否應該有最多 1、2 或 3 個任期。</p>\n"
315
- page: "<p>一個<strong>諮詢</strong>是一個空間,讓您向組織的所有成員提出明確的問題,呼籲參與諮詢,引發並組織支持或反對某個回應的討論。當諮詢日期到來時,您可以進行投票並公佈投票結果。</p> <p>例子:諮詢可以涉及影響組織的幾乎任何方面:例如,更改組織的名稱或標誌,提供多個替代方案,決定是否加入一個更大的組織,驗證或拒絕新的戰略計劃或工作小組的結果,或確定組織中的職位是否應保持最多 1、2 或 3 個任期。</p>\n"
316
- title: 什麼是諮詢?
317
- menu:
318
- consultations: 諮詢
319
- questions:
320
- next_button: 下一個問題
321
- previous_button: 上一個問題
322
- results:
323
- title: 結果
324
- show:
325
- read_more: 顯示較多
326
- statistics:
327
- assistants_count_title: 助理
328
- comments_count_title: 評論
329
- meetings_count_title: 會議
330
- supports_count_title: 投票
331
- technical_info:
332
- technical_data: 技術數據
333
- vote_button:
334
- already_voted: 已經投票
335
- already_voted_hover: 撤銷投票
336
- starting_from: 起始日期:%{date}
337
- verification_required: 驗證您的帳戶以進行投票。
338
- vote: 投票
339
- vote_modal:
340
- close_modal: 關閉視窗
341
- contextual_help: 請, 選擇一個選項。
342
- title: '諮詢:問題投票'
343
- vote_modal_confirm:
344
- change: 更改
345
- close_modal: 關閉視窗
346
- confirm: 確認
347
- contextual_help: 請確認所選的選項。
348
- title: '諮詢:確認投票'
349
- resources:
350
- consultations:
351
- actions:
352
- comment: 評論
353
- vote: 投票
354
- question:
355
- actions:
356
- comment: 評論
357
- vote: 投票
358
- statistics:
359
- consultations_count: 諮詢
360
- votes_count: 投票
361
- layouts:
362
- decidim:
363
- consultation_voting_data:
364
- start_voting_date: 開始投票
365
- question_components:
366
- question_menu_item: 問題
367
- question_header:
368
- back_to_consultation: 查看所有諮詢
369
- back_to_question: 返回問題
@@ -50,7 +50,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
50
50
  start_voting_date: Time.zone.today,
51
51
  end_voting_date: Time.zone.today + 1.month,
52
52
  organization: organization,
53
- banner_image: ActiveStorage::Blob.create_after_upload!(
53
+ banner_image: ActiveStorage::Blob.create_and_upload!(
54
54
  io: File.open(File.join(seeds_root, "city2.jpeg")),
55
55
  filename: "banner_image.jpeg",
56
56
  content_type: "image/jpeg",
@@ -82,7 +82,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
82
82
  start_voting_date: Time.zone.today - 2.months,
83
83
  end_voting_date: Time.zone.today - 1.month,
84
84
  organization: organization,
85
- banner_image: ActiveStorage::Blob.create_after_upload!(
85
+ banner_image: ActiveStorage::Blob.create_and_upload!(
86
86
  io: File.open(File.join(seeds_root, "city2.jpeg")),
87
87
  filename: "banner_image.jpeg",
88
88
  content_type: "image/jpeg",
@@ -113,7 +113,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
113
113
  start_voting_date: Time.zone.today + 1.month + 1.day,
114
114
  end_voting_date: Time.zone.today + 2.months,
115
115
  organization: organization,
116
- banner_image: ActiveStorage::Blob.create_after_upload!(
116
+ banner_image: ActiveStorage::Blob.create_and_upload!(
117
117
  io: File.open(File.join(seeds_root, "city2.jpeg")),
118
118
  filename: "banner_image.jpeg",
119
119
  content_type: "image/jpeg",
@@ -148,13 +148,13 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
148
148
  Decidim::Faker::Localized.paragraph(sentence_count: 3)
149
149
  end,
150
150
  organization: organization,
151
- hero_image: ActiveStorage::Blob.create_after_upload!(
151
+ hero_image: ActiveStorage::Blob.create_and_upload!(
152
152
  io: File.open(File.join(seeds_root, "city.jpeg")),
153
153
  filename: "hero_image.jpeg",
154
154
  content_type: "image/jpeg",
155
155
  metadata: nil
156
156
  ), # Keep after organization
157
- banner_image: ActiveStorage::Blob.create_after_upload!(
157
+ banner_image: ActiveStorage::Blob.create_and_upload!(
158
158
  io: File.open(File.join(seeds_root, "city2.jpeg")),
159
159
  filename: "banner_image.jpeg",
160
160
  content_type: "image/jpeg",
@@ -188,7 +188,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
188
188
  description: Decidim::Faker::Localized.sentence(word_count: 5),
189
189
  attached_to: question,
190
190
  content_type: "image/jpeg",
191
- file: ActiveStorage::Blob.create_after_upload!(
191
+ file: ActiveStorage::Blob.create_and_upload!(
192
192
  io: File.open(File.join(seeds_root, "city.jpeg")),
193
193
  filename: "city.jpeg",
194
194
  content_type: "image/jpeg",
@@ -201,7 +201,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
201
201
  description: Decidim::Faker::Localized.sentence(word_count: 5),
202
202
  attached_to: question,
203
203
  content_type: "application/pdf",
204
- file: ActiveStorage::Blob.create_after_upload!(
204
+ file: ActiveStorage::Blob.create_and_upload!(
205
205
  io: File.open(File.join(seeds_root, "Exampledocument.pdf")),
206
206
  filename: "Exampledocument.pdf",
207
207
  content_type: "application/pdf",
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.26.10"
6
+ "0.27.0.rc1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-consultations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.10
4
+ version: 0.27.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.26.10
19
+ version: 0.27.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.26.10
26
+ version: 0.27.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.26.10
33
+ version: 0.27.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.26.10
40
+ version: 0.27.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.26.10
47
+ version: 0.27.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.26.10
54
+ version: 0.27.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-dev
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.26.10
61
+ version: 0.27.0.rc1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.26.10
68
+ version: 0.27.0.rc1
69
69
  description: Extends Decidim adding a first level public consultation component
70
70
  email:
71
71
  - jsperezg@gmail.com
@@ -182,8 +182,6 @@ files:
182
182
  - app/queries/decidim/consultations/organization_active_consultations.rb
183
183
  - app/queries/decidim/consultations/organization_consultations.rb
184
184
  - app/queries/decidim/consultations/organization_questions.rb
185
- - app/scrubbers/decidim/consultations/question_title_scrubber.rb
186
- - app/services/decidim/consultations/consultation_search.rb
187
185
  - app/views/decidim/consultations/_consultation.html.erb
188
186
  - app/views/decidim/consultations/admin/consultations/_form.html.erb
189
187
  - app/views/decidim/consultations/admin/consultations/edit.html.erb
@@ -266,7 +264,6 @@ files:
266
264
  - config/locales/et-EE.yml
267
265
  - config/locales/et.yml
268
266
  - config/locales/eu.yml
269
- - config/locales/fa-IR.yml
270
267
  - config/locales/fi-pl.yml
271
268
  - config/locales/fi-plain.yml
272
269
  - config/locales/fi.yml
@@ -275,7 +272,6 @@ files:
275
272
  - config/locales/fr.yml
276
273
  - config/locales/ga-IE.yml
277
274
  - config/locales/gl.yml
278
- - config/locales/gn-PY.yml
279
275
  - config/locales/hr-HR.yml
280
276
  - config/locales/hr.yml
281
277
  - config/locales/hu.yml
@@ -284,13 +280,10 @@ files:
284
280
  - config/locales/is.yml
285
281
  - config/locales/it.yml
286
282
  - config/locales/ja.yml
287
- - config/locales/ka-GE.yml
288
- - config/locales/kaa.yml
289
283
  - config/locales/ko-KR.yml
290
284
  - config/locales/ko.yml
291
285
  - config/locales/lb-LU.yml
292
286
  - config/locales/lb.yml
293
- - config/locales/lo-LA.yml
294
287
  - config/locales/lt-LT.yml
295
288
  - config/locales/lt.yml
296
289
  - config/locales/lv.yml
@@ -298,7 +291,6 @@ files:
298
291
  - config/locales/mt.yml
299
292
  - config/locales/nl.yml
300
293
  - config/locales/no.yml
301
- - config/locales/oc-FR.yml
302
294
  - config/locales/om-ET.yml
303
295
  - config/locales/pl.yml
304
296
  - config/locales/pt-BR.yml
@@ -310,11 +302,9 @@ files:
310
302
  - config/locales/sk.yml
311
303
  - config/locales/sl.yml
312
304
  - config/locales/so-SO.yml
313
- - config/locales/sq-AL.yml
314
305
  - config/locales/sr-CS.yml
315
306
  - config/locales/sv.yml
316
307
  - config/locales/sw-KE.yml
317
- - config/locales/th-TH.yml
318
308
  - config/locales/ti-ER.yml
319
309
  - config/locales/tr-TR.yml
320
310
  - config/locales/uk.yml
@@ -386,14 +376,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
386
376
  requirements:
387
377
  - - ">="
388
378
  - !ruby/object:Gem::Version
389
- version: '2.7'
379
+ version: '3.0'
390
380
  required_rubygems_version: !ruby/object:Gem::Requirement
391
381
  requirements:
392
- - - ">="
382
+ - - ">"
393
383
  - !ruby/object:Gem::Version
394
- version: '0'
384
+ version: 1.3.1
395
385
  requirements: []
396
- rubygems_version: 3.1.6
386
+ rubygems_version: 3.2.22
397
387
  signing_key:
398
388
  specification_version: 4
399
389
  summary: Decidim consultations module
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Consultations
5
- class QuestionTitleScrubber < Decidim::UserInputScrubber
6
- private
7
-
8
- def custom_allowed_tags
9
- %w(strong em u b i br ul ol li p a code)
10
- end
11
-
12
- def custom_allowed_attributes
13
- %w(class href target rel)
14
- end
15
- end
16
- end
17
- end
@@ -1,51 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Consultations
5
- # Service that encapsulates all logic related to filtering consultations.
6
- class ConsultationSearch < Searchlight::Search
7
- # Public: Initializes the service.
8
- # page - The page number to paginate the results.
9
- # per_page - The number of proposals to return per page.
10
- def initialize(options = {})
11
- super(options)
12
- end
13
-
14
- def base_query
15
- Decidim::Consultation.where(organization: options[:organization]).published
16
- end
17
-
18
- # Handle the search_text filter
19
- def search_search_text
20
- query
21
- .where(Arel.sql("title->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
22
- .or(
23
- query.where(Arel.sql("description->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
24
- )
25
- .or(
26
- query.where(Arel.sql("subtitle->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
27
- )
28
- end
29
-
30
- # Handle the state filter
31
- def search_state
32
- case state
33
- when "active"
34
- query.active
35
- when "upcoming"
36
- query.upcoming
37
- when "finished"
38
- query.finished
39
- else # Assume all
40
- query
41
- end
42
- end
43
-
44
- private
45
-
46
- def current_locale
47
- I18n.locale.to_s
48
- end
49
- end
50
- end
51
- end
@@ -1 +0,0 @@
1
- fa:
@@ -1 +0,0 @@
1
- gn:
@@ -1 +0,0 @@
1
- ka:
@@ -1,15 +0,0 @@
1
- kaa:
2
- decidim:
3
- admin:
4
- consultations:
5
- edit:
6
- update: Jańalaw
7
- questions:
8
- edit:
9
- update: Jańalaw
10
- response_groups:
11
- edit:
12
- update: Jańalaw
13
- responses:
14
- edit:
15
- update: Jańalaw
@@ -1 +0,0 @@
1
- lo: