decidim-initiatives 0.28.1 → 0.28.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/decidim/initiatives/initiative_helper.rb +2 -2
  3. data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +2 -2
  4. data/app/views/decidim/initiatives/initiatives/show.html.erb +21 -9
  5. data/config/locales/ar.yml +0 -1
  6. data/config/locales/bg.yml +584 -0
  7. data/config/locales/ca.yml +0 -2
  8. data/config/locales/cs.yml +0 -2
  9. data/config/locales/de.yml +0 -2
  10. data/config/locales/el.yml +0 -2
  11. data/config/locales/en.yml +0 -2
  12. data/config/locales/es-MX.yml +1 -3
  13. data/config/locales/es-PY.yml +1 -3
  14. data/config/locales/es.yml +2 -4
  15. data/config/locales/eu.yml +0 -2
  16. data/config/locales/fi-plain.yml +0 -2
  17. data/config/locales/fi.yml +0 -2
  18. data/config/locales/fr-CA.yml +0 -2
  19. data/config/locales/fr.yml +0 -2
  20. data/config/locales/ga-IE.yml +0 -2
  21. data/config/locales/gl.yml +0 -1
  22. data/config/locales/hu.yml +0 -2
  23. data/config/locales/id-ID.yml +0 -1
  24. data/config/locales/is-IS.yml +0 -3
  25. data/config/locales/it.yml +0 -2
  26. data/config/locales/ja.yml +6 -8
  27. data/config/locales/lb.yml +0 -2
  28. data/config/locales/lt.yml +0 -2
  29. data/config/locales/lv.yml +0 -2
  30. data/config/locales/nl.yml +0 -2
  31. data/config/locales/no.yml +0 -2
  32. data/config/locales/pl.yml +56 -2
  33. data/config/locales/pt-BR.yml +0 -2
  34. data/config/locales/pt.yml +0 -2
  35. data/config/locales/ro-RO.yml +0 -2
  36. data/config/locales/ru.yml +0 -2
  37. data/config/locales/sk.yml +0 -2
  38. data/config/locales/sl.yml +0 -2
  39. data/config/locales/sr-CS.yml +0 -5
  40. data/config/locales/sv.yml +0 -2
  41. data/config/locales/tr-TR.yml +0 -1
  42. data/config/locales/uk.yml +0 -2
  43. data/config/locales/zh-CN.yml +0 -1
  44. data/config/locales/zh-TW.yml +0 -2
  45. data/lib/decidim/initiatives/version.rb +1 -1
  46. metadata +18 -19
  47. data/app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df40d8accbe30d128907e67ed67f9f258a25c115923f846b6b9506a0f7d78184
4
- data.tar.gz: 2f786007f2213c07819f5d35e2e724ac0df3be6cd795501dfa4f3068aa27e322
3
+ metadata.gz: ee9402e2ccd3d11cecca9129ce2f63a68547640abb7699b2e98f23bc47a7b44b
4
+ data.tar.gz: 841ab41667a8e6391c9dc779028408d38a3bf0dcace1bf31b5bb1999d1b04c00
5
5
  SHA512:
6
- metadata.gz: 3f32c5fbedf3834157b7490f7ae1bf3057e432deb0130aca487fda782ec41106cb6440d33abb11e704c951526af67ec801506396b56a45e3fafba3f0f4c10a20
7
- data.tar.gz: 3cb68e7102d325cc4f4f157f733df17c5f9afb287edb7731e406bbf7f0dd5ac2db41d52e8b6dfa43a426c57e59491ab13162e06158cc04e50323fb7371f8fc17
6
+ metadata.gz: fb1bc518c0f6be5a2a1f2a1063c726a4f46d5f502ad6a1f6a420140de228db5b367bd1d0e9c61585c90c8acef7594e6d98ae54a4ea634e7af54d2a839e5b455a
7
+ data.tar.gz: 682efa73c8d37f54e0b2959a4cfff03b542e984cd8cfb2a57c53938e7b524bd302d81982a21e8272f9d9c754824a66fb93bc9c4f6fca9ec9c50d538b4ab6585c
@@ -115,7 +115,7 @@ module Decidim
115
115
 
116
116
  html_options["onclick"] = "event.preventDefault();"
117
117
 
118
- send("#{tag}_to", "", html_options, &)
118
+ send("#{tag}_to", "/", html_options, &)
119
119
  end
120
120
 
121
121
  def authorized_vote_modal_button(initiative, html_options, &)
@@ -133,7 +133,7 @@ module Decidim
133
133
 
134
134
  html_options["onclick"] = "event.preventDefault();"
135
135
 
136
- send("#{tag}_to", "", html_options, &)
136
+ send("#{tag}_to", "/", html_options, &)
137
137
  end
138
138
 
139
139
  def can_edit_custom_signature_end_date?(initiative)
@@ -16,7 +16,7 @@
16
16
  <%= icon "lightbulb-flash-line", class: "verification__icon " %>
17
17
  <div class="initiatives__selection__text">
18
18
  <h2 class="h5 text-secondary"><%= translated_attribute(type.title) %></h2>
19
- <span><%= decidim_escape_translated(type.description) %></span>
19
+ <span><%= decidim_sanitize_admin(translated_attribute(type.description)) %></span>
20
20
  </div>
21
21
  <%= icon "arrow-right-s-line", class: "fill-secondary initiatives__selection__icon" %>
22
22
  </button>
@@ -26,7 +26,7 @@
26
26
  <%= icon "lightbulb-flash-line", class: "verification__icon " %>
27
27
  <div class="initiatives__selection__text">
28
28
  <h2 class="h5 text-secondary"><%= translated_attribute(type.title) %></h2>
29
- <span><%= decidim_escape_translated(type.description) %></span>
29
+ <span><%= decidim_sanitize_admin(translated_attribute(type.description)) %></span>
30
30
  <%= authorized_create_modal_button(type, remote: true, class: "button button__sm button__secondary") do %>
31
31
  <%= t("verification_required", scope: "decidim.initiatives.create_initiative.select_initiative_type") %>
32
32
  <% end %>
@@ -23,17 +23,29 @@ edit_link(
23
23
  </section>
24
24
  <% end %>
25
25
  <% else %>
26
- <section class="layout-aside__section layout-aside__buttons">
27
- <%= link_to t(".edit"),
28
- edit_initiative_path(current_initiative),
29
- class: "button button__xl w-full button__secondary" %>
30
- <%= render partial: "send_to_technical_validation", locals: { title: t(".send_to_technical_validation"), confirm: t(".confirm") } %>
31
- </section>
26
+ <% if allowed_to?(:edit, :initiative, initiative: current_initiative) || allowed_to?(:send_to_technical_validation, :initiative, initiative: current_initiative) %>
27
+ <section class="layout-aside__section layout-aside__buttons">
28
+ <% if allowed_to? :edit, :initiative, initiative: current_initiative %>
29
+ <%= link_to t(".edit"),
30
+ edit_initiative_path(current_initiative),
31
+ class: "button button__xl w-full button__secondary" %>
32
+ <% end %>
33
+
34
+ <% if allowed_to? :send_to_technical_validation, :initiative, initiative: current_initiative %>
35
+ <%= link_to t(".send_to_technical_validation"),
36
+ send_to_technical_validation_initiative_path(current_initiative),
37
+ class: "button button__xl w-full button__secondary mt-4",
38
+ data: { confirm: t(".confirm") } %>
39
+ <% end %>
40
+ </section>
41
+ <% end %>
32
42
  <% end %>
33
43
 
34
- <section class="layout-aside__section">
35
- <%= render partial: "progress_bar" %>
36
- </section>
44
+ <% unless current_initiative.validating? %>
45
+ <section class="layout-aside__section">
46
+ <%= render partial: "progress_bar" %>
47
+ </section>
48
+ <% end %>
37
49
 
38
50
  <section class="layout-aside__section">
39
51
  <%= cell("decidim/nav_links", initiative_nav_items(current_initiative)) %>
@@ -60,7 +60,6 @@ ar:
60
60
  actions:
61
61
  new_initiative_type: نوع المبادرة الجديدة
62
62
  menu:
63
- components: المكونات
64
63
  information: معلومات
65
64
  initiatives: المبادرات
66
65
  initiatives_settings: الإعدادات