decidim-proposals 0.28.5 → 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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb +0 -12
  3. data/app/controllers/decidim/proposals/versions_controller.rb +1 -1
  4. data/app/models/decidim/proposals/collaborative_draft.rb +2 -3
  5. data/app/models/decidim/proposals/proposal.rb +0 -5
  6. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
  7. data/app/views/decidim/proposals/admin/proposals/show.html.erb +4 -4
  8. data/app/views/decidim/proposals/proposals/_proposals.html.erb +1 -1
  9. data/app/views/decidim/proposals/proposals/index.html.erb +8 -1
  10. data/config/locales/ar.yml +6 -3
  11. data/config/locales/bg.yml +0 -4
  12. data/config/locales/bs-BA.yml +0 -2
  13. data/config/locales/ca-IT.yml +931 -0
  14. data/config/locales/ca.yml +10 -5
  15. data/config/locales/cs.yml +7 -2
  16. data/config/locales/de.yml +8 -3
  17. data/config/locales/el.yml +0 -3
  18. data/config/locales/en.yml +7 -2
  19. data/config/locales/es-MX.yml +10 -5
  20. data/config/locales/es-PY.yml +10 -5
  21. data/config/locales/es.yml +14 -9
  22. data/config/locales/eu.yml +73 -68
  23. data/config/locales/fi-plain.yml +7 -2
  24. data/config/locales/fi.yml +7 -2
  25. data/config/locales/fr-CA.yml +8 -3
  26. data/config/locales/fr.yml +8 -3
  27. data/config/locales/ga-IE.yml +0 -1
  28. data/config/locales/hu.yml +1 -5
  29. data/config/locales/id-ID.yml +1 -1
  30. data/config/locales/is-IS.yml +3 -0
  31. data/config/locales/it.yml +28 -3
  32. data/config/locales/ja.yml +9 -2
  33. data/config/locales/lt.yml +0 -4
  34. data/config/locales/lv.yml +0 -2
  35. data/config/locales/nl.yml +2 -4
  36. data/config/locales/no.yml +0 -2
  37. data/config/locales/pl.yml +0 -4
  38. data/config/locales/pt-BR.yml +0 -3
  39. data/config/locales/pt.yml +0 -2
  40. data/config/locales/ro-RO.yml +3 -2
  41. data/config/locales/ru.yml +3 -0
  42. data/config/locales/sk.yml +0 -2
  43. data/config/locales/sr-CS.yml +0 -2
  44. data/config/locales/sv.yml +7 -3
  45. data/config/locales/tr-TR.yml +0 -2
  46. data/config/locales/uk.yml +3 -0
  47. data/config/locales/zh-CN.yml +0 -2
  48. data/config/locales/zh-TW.yml +0 -3
  49. data/lib/decidim/proposals/version.rb +1 -1
  50. metadata +21 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a1d75f047cf77a3873fed131cdefcd187c822c14f9fedb1b4d5c5d8a006454f
4
- data.tar.gz: 825829e1601b57bcb849fd9359190839dc2e8691d4c203377d0cb8d1865c43c2
3
+ metadata.gz: 63f02eb870fe0f3b26efdfb4b561f9414b69088c57501c8a560836f4580fd587
4
+ data.tar.gz: 72ab69147738585ed8699e8f037854862d57710efd14da0d5ead38a6ca5ba362
5
5
  SHA512:
6
- metadata.gz: 56fd50c16ab2a410a880b20896c64c3faf5be9e295223d3a6a42aa5045719057e5ad9effb1511ed953e52c89c270c037dc57100167566cba67e2b04f952e52ef
7
- data.tar.gz: 46d01f111fab1ce7ba565990f435027a943dbb75f992f8873eb522739c9454a5a0c5ec3562daa20616ec03cf2ef4366d8ba82fd67dc51234464d262ff3cadbbf
6
+ metadata.gz: a4101cf611f39a640e9847ef15453ba995ddb961b72f60f64b909227cb3a4e5f93e3eb2012bebfaba9368ec03418e83e60d099dafaab35c93247e8b27a88fafc
7
+ data.tar.gz: 51125fff4a9d5e07483e6d741388aace1a3c6a719eba50bbe7d157d42124b98b75cc4a338cca0ed4da29f6cfda182199953c47732b068177774a97ac1df3aa13
@@ -10,18 +10,6 @@
10
10
  <% end %>
11
11
  <% end %>
12
12
  </div>
13
-
14
- <div class="flex items-center justify-between space-x-6">
15
- <span class="content-block__span flex-shrink-0">
16
- <%= t("decidim.participatory_spaces.highlighted_proposals.last") %>
17
- </span>
18
- <% if single_component? %>
19
- <%= link_to decidim_proposals.new_proposal_path, class: "button button__xs md:button__lg button__secondary" do %>
20
- <span class="text-center"><%= t("decidim.proposals.actions.new") %></span>
21
- <%= icon "add-line" %>
22
- <% end %>
23
- <% end %>
24
- </div>
25
13
  <div class="flex items-start justify-between">
26
14
  <div class="grow space-y-6">
27
15
  <% proposals_to_render.each do |p| %>
@@ -11,7 +11,7 @@ module Decidim
11
11
  def versioned_resource
12
12
  @versioned_resource ||=
13
13
  if params[:proposal_id]
14
- present(Proposal.where(component: current_component).find(params[:proposal_id]))
14
+ present(Proposal.not_hidden.published.where(component: current_component).find(params[:proposal_id]))
15
15
  else
16
16
  CollaborativeDraft.where(component: current_component).find(params[:collaborative_draft_id])
17
17
  end
@@ -45,9 +45,8 @@ module Decidim
45
45
  authored_by?(user)
46
46
  end
47
47
 
48
- # Public: Overrides the `reported_content_url` Reportable concern method.
49
- def reported_content_url
50
- ResourceLocatorPresenter.new(self).url
48
+ def presenter
49
+ Decidim::Proposals::CollaborativeDraftPresenter.new(self)
51
50
  end
52
51
 
53
52
  # Public: Overrides the `reported_attributes` Reportable concern method.
@@ -251,11 +251,6 @@ module Decidim
251
251
  state == "evaluating"
252
252
  end
253
253
 
254
- # Public: Overrides the `reported_content_url` Reportable concern method.
255
- def reported_content_url
256
- ResourceLocatorPresenter.new(self).url
257
- end
258
-
259
254
  # Returns the presenter for this author, to be used in the views.
260
255
  # Required by ResourceRenderer.
261
256
  def presenter
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <% end %>
22
22
  <% if @form.component_suggested_hashtags.any? %>
23
- <div class="field">
23
+ <div class="row column">
24
24
  <%= form.label :suggested_hashtags %>
25
25
  <div class="checkboxes hashtags">
26
26
  <%= form.collection_check_boxes :suggested_hashtags, @form.component_suggested_hashtags.map { |hashtag| [hashtag.downcase, "##{hashtag}"] }, :first, :last do |option|
@@ -52,20 +52,20 @@
52
52
 
53
53
  <% presented_endorsers = endorsers_presenters_for(proposal) %>
54
54
  <% if presented_endorsers.any? %>
55
- <%= render partial: "endorsers", locals: { presented_endorsers:, proposal: } %>
55
+ <%= render partial: "decidim/proposals/admin/proposals/endorsers", locals: { presented_endorsers:, proposal: } %>
56
56
  <% end %>
57
57
 
58
58
  <% if proposal.documents.any? %>
59
- <%= render partial: "documents", locals: { proposal: } %>
59
+ <%= render partial: "decidim/proposals/admin/proposals/documents", locals: { proposal: } %>
60
60
  <% end %>
61
61
 
62
62
  <% if proposal.photos.any? %>
63
- <%= render partial: "photos", locals: { proposal: } %>
63
+ <%= render partial: "decidim/proposals/admin/proposals/photos", locals: { proposal: } %>
64
64
  <% end %>
65
65
 
66
66
  <% proposal_meetings = proposal.linked_resources(:meetings, "proposals_from_meeting") %>
67
67
  <% if proposal_meetings.any? %>
68
- <%= render partial: "meetings", locals: { proposal_meetings: } %>
68
+ <%= render partial: "decidim/proposals/admin/proposals/meetings", locals: { proposal_meetings: } %>
69
69
  <% end %>
70
70
 
71
71
  <% if allowed_to?(:create, :proposal_note, proposal: proposal) %>
@@ -7,7 +7,7 @@
7
7
  <% if @proposals.empty? %>
8
8
  <%= cell("decidim/announcement", params[:filter].present? ? t(".empty_filters") : t(".empty")) %>
9
9
  <% else %>
10
- <h2 class="h5 md:h3 decorator"><%= t("count", scope: "decidim.proposals.proposals.index", count: @proposals.total_count) %></h2>
10
+ <h2 class="h5 md:h3 decorator" aria-live="polite" aria-atomic="true"><%= t("count", scope: "decidim.proposals.proposals.index", count: @proposals.total_count) %></h2>
11
11
 
12
12
  <%= order_selector available_orders, i18n_scope: "decidim.proposals.proposals.orders" %>
13
13
 
@@ -1,4 +1,11 @@
1
- <% add_decidim_page_title(t("name", scope: "decidim.components.proposals")) %>
1
+ <% add_decidim_meta_tags(
2
+ description: translated_attribute(current_participatory_space.short_description),
3
+ title: t("decidim.components.pagination.page_title",
4
+ component_name:,
5
+ current_page: @proposals.current_page,
6
+ total_pages: @proposals.total_pages ),
7
+ url: proposals_url,
8
+ resource: current_component) %>
2
9
 
3
10
  <% append_stylesheet_pack_tag "decidim_proposals", media: "all" %>
4
11
  <% append_javascript_pack_tag "decidim_proposals" %>
@@ -12,6 +12,8 @@ ar:
12
12
  state: حالة
13
13
  title: عنوان
14
14
  user_group_id: إنشاء مسودة تعاونية كـ
15
+ import_participatory_text:
16
+ document: مستند
15
17
  proposal:
16
18
  address: عنوان
17
19
  answer: إجابة
@@ -21,6 +23,8 @@ ar:
21
23
  category_id: الفئة
22
24
  decidim_scope_id: النطاق
23
25
  has_address: لديه عنوان
26
+ latitude: خط العرض
27
+ longitude: خط الطول
24
28
  scope_id: نطاق
25
29
  state: حالة
26
30
  suggested_hashtags: الهاشتاج المقترحة
@@ -33,6 +37,8 @@ ar:
33
37
  execution_period: فترة التنفيذ
34
38
  proposals_copy:
35
39
  origin_component_id: مكون لنسخ المقترحات من
40
+ proposals_file_import:
41
+ file: ملف
36
42
  proposals_import:
37
43
  import_proposals: مقترحات الاستيراد
38
44
  keep_answers: الاحتفاظ بالحالة والإجابات
@@ -484,7 +490,6 @@ ar:
484
490
  index:
485
491
  actions: أفعال
486
492
  assign_to_valuator: أسنِده إلى مُقيِّم
487
- assign_to_valuator_button: تعيين
488
493
  cancel: إلغاء
489
494
  change_category: تغيير الفئة
490
495
  change_scope: تغيير النطاق
@@ -498,7 +503,6 @@ ar:
498
503
  split_button: انشق، مزق
499
504
  title: اقتراحات
500
505
  unassign_from_valuator: إلغاء الإسناد مِن المُقيِّم
501
- unassign_from_valuator_button: إلغاء الإسناد
502
506
  update: تحديث
503
507
  update_scope_button: تحديث النطاق
504
508
  new:
@@ -764,7 +768,6 @@ ar:
764
768
  text_banner: أنت تتطلع على قائمة الاقتراحات المسحوبة من قبل مؤلفيها. %{go_back_link}.
765
769
  new:
766
770
  send: استمر
767
- title: إنشاء اقتراحك
768
771
  orders:
769
772
  label: 'ترتيب المقترحات حسب:'
770
773
  most_commented: الأكثر تعليقًا عليها
@@ -385,7 +385,6 @@ bg:
385
385
  title: Подкрепа
386
386
  participatory_spaces:
387
387
  highlighted_proposals:
388
- last: Позледни предложения
389
388
  see_all: Виж всички предложения
390
389
  proposals:
391
390
  actions:
@@ -504,7 +503,6 @@ bg:
504
503
  index:
505
504
  actions: Активности
506
505
  assign_to_valuator: Възлагане на оценител
507
- assign_to_valuator_button: Възлагане
508
506
  cancel: Отказ
509
507
  change_category: Промяна на категория
510
508
  change_scope: Промяна на обхвата
@@ -518,7 +516,6 @@ bg:
518
516
  split_button: Разделяне
519
517
  title: Предложения
520
518
  unassign_from_valuator: Отнемане възложеното на оценителя
521
- unassign_from_valuator_button: Отнемане на възложеното
522
519
  update: Актуализация
523
520
  update_scope_button: Актуализиране на обхвата
524
521
  new:
@@ -801,7 +798,6 @@ bg:
801
798
  text_banner: Разглеждате списъка с предложения, оттеглени от своите автори. %{go_back_link}.
802
799
  new:
803
800
  send: Продължи
804
- title: Създайте Ваше предложение
805
801
  orders:
806
802
  label: 'Подреждане на предложенията по:'
807
803
  most_commented: Най-коментирани
@@ -51,11 +51,9 @@ bs:
51
51
  proposals:
52
52
  index:
53
53
  assign_to_valuator: Dodeli procenjivaču
54
- assign_to_valuator_button: Dodeli
55
54
  change_scope: Promeni opseg
56
55
  publish_answers: Objavi odgovore
57
56
  unassign_from_valuator: Oduzmi od procenjivača
58
- unassign_from_valuator_button: Od dodeli
59
57
  update_scope_button: Ažuriraj opseg
60
58
  show:
61
59
  amendments_count: Broj izmena