decidim-core 0.26.3 → 0.26.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-core might be problematic. Click here for more details.

Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/amendable/announcement_cell.rb +1 -1
  3. data/app/cells/decidim/card_m_cell.rb +1 -1
  4. data/app/cells/decidim/newsletter_templates/base_cell.rb +8 -0
  5. data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +4 -4
  6. data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +4 -4
  7. data/app/commands/decidim/unendorse_resource.rb +1 -1
  8. data/app/controllers/decidim/devise/invitations_controller.rb +9 -2
  9. data/app/controllers/decidim/devise/registrations_controller.rb +4 -0
  10. data/app/controllers/decidim/groups_controller.rb +5 -0
  11. data/app/controllers/decidim/links_controller.rb +4 -2
  12. data/app/controllers/decidim/profiles_controller.rb +1 -1
  13. data/app/forms/decidim/account_form.rb +3 -3
  14. data/app/forms/decidim/amendable/form.rb +2 -1
  15. data/app/forms/decidim/registration_form.rb +3 -3
  16. data/app/helpers/decidim/icon_helper.rb +3 -3
  17. data/app/helpers/decidim/newsletters_helper.rb +1 -0
  18. data/app/mailers/decidim/newsletter_mailer.rb +10 -3
  19. data/app/mailers/decidim/notification_mailer.rb +1 -0
  20. data/app/models/decidim/newsletter.rb +28 -0
  21. data/app/models/decidim/user.rb +0 -2
  22. data/app/models/decidim/user_base_entity.rb +2 -0
  23. data/app/models/decidim/user_block.rb +2 -2
  24. data/app/models/decidim/user_group.rb +1 -1
  25. data/app/packs/src/decidim/editor/clipboard_override.js +143 -0
  26. data/app/packs/src/decidim/editor/clipboard_utilities.js +119 -0
  27. data/app/packs/src/decidim/editor/linebreak_module.js +0 -8
  28. data/app/packs/src/decidim/editor.js +9 -2
  29. data/app/packs/src/decidim/form_filter.component.test.js +148 -5
  30. data/app/packs/src/decidim/form_filter.js +26 -4
  31. data/app/packs/stylesheets/decidim/email.scss +7 -0
  32. data/app/presenters/decidim/admin_log/user_group_presenter.rb +1 -1
  33. data/app/presenters/decidim/admin_log/user_moderation_presenter.rb +1 -1
  34. data/app/presenters/decidim/home_stats_presenter.rb +11 -4
  35. data/app/presenters/decidim/stats_presenter.rb +7 -8
  36. data/app/presenters/decidim/user_presenter.rb +9 -4
  37. data/app/services/decidim/activity_search.rb +1 -0
  38. data/app/validators/etiquette_validator.rb +7 -3
  39. data/app/views/decidim/newsletter_mailer/newsletter.html.erb +3 -3
  40. data/app/views/decidim/newsletters/show.html.erb +1 -1
  41. data/app/views/decidim/notification_mailer/event_received.html.erb +1 -1
  42. data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
  43. data/app/views/layouts/decidim/newsletter_base.html.erb +2 -2
  44. data/config/locales/ar.yml +5 -26
  45. data/config/locales/bg.yml +5 -26
  46. data/config/locales/ca.yml +17 -33
  47. data/config/locales/cs.yml +9 -26
  48. data/config/locales/de.yml +2 -27
  49. data/config/locales/el.yml +4 -27
  50. data/config/locales/en.yml +8 -24
  51. data/config/locales/es-MX.yml +10 -26
  52. data/config/locales/es-PY.yml +10 -26
  53. data/config/locales/es.yml +19 -35
  54. data/config/locales/eu.yml +22 -44
  55. data/config/locales/fi-plain.yml +8 -24
  56. data/config/locales/fi.yml +9 -25
  57. data/config/locales/fr-CA.yml +8 -27
  58. data/config/locales/fr.yml +8 -27
  59. data/config/locales/ga-IE.yml +0 -4
  60. data/config/locales/gl.yml +2 -26
  61. data/config/locales/gn-PY.yml +1 -0
  62. data/config/locales/hu.yml +4 -27
  63. data/config/locales/id-ID.yml +5 -26
  64. data/config/locales/is-IS.yml +0 -1
  65. data/config/locales/it.yml +1 -27
  66. data/config/locales/ja.yml +22 -38
  67. data/config/locales/ka-GE.yml +1 -0
  68. data/config/locales/lb.yml +0 -26
  69. data/config/locales/lo-LA.yml +1 -0
  70. data/config/locales/lt.yml +0 -26
  71. data/config/locales/lv.yml +5 -26
  72. data/config/locales/nl.yml +0 -26
  73. data/config/locales/no.yml +2 -28
  74. data/config/locales/pl.yml +2 -27
  75. data/config/locales/pt-BR.yml +0 -26
  76. data/config/locales/pt.yml +0 -26
  77. data/config/locales/ro-RO.yml +5 -25
  78. data/config/locales/ru.yml +5 -5
  79. data/config/locales/sk.yml +5 -26
  80. data/config/locales/sv.yml +2 -27
  81. data/config/locales/tr-TR.yml +4 -27
  82. data/config/locales/uk.yml +5 -1
  83. data/config/locales/zh-CN.yml +3 -26
  84. data/config/routes.rb +20 -2
  85. data/lib/decidim/api/types/localized_string_type.rb +9 -0
  86. data/lib/decidim/api/types/translated_field_type.rb +20 -5
  87. data/lib/decidim/attributes/localized_date.rb +9 -1
  88. data/lib/decidim/attributes/time_with_zone.rb +13 -1
  89. data/lib/decidim/core/engine.rb +0 -5
  90. data/lib/decidim/core/test/factories.rb +13 -6
  91. data/lib/decidim/core/test/shared_examples/mcell_examples.rb +17 -0
  92. data/lib/decidim/core/test.rb +1 -0
  93. data/lib/decidim/core/version.rb +1 -1
  94. data/lib/decidim/form_builder.rb +9 -2
  95. data/lib/decidim/participatory_space_resourceable.rb +7 -1
  96. data/lib/decidim/resourceable.rb +5 -4
  97. data/lib/decidim/settings_manifest.rb +1 -1
  98. metadata +12 -8
  99. data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_invitations.svg +0 -1
  100. data/app/views/decidim/devise/registrations/edit.html.erb +0 -41
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="invitations-svg" width="1080" height="1080" x="0" y="0" enable-background="new 0 0 1080 1080" version="1.1" viewBox="0 0 1080 1080" xml:space="preserve"><g id="invitations" class="stroke-primary"><path id="_x35_0-pct" fill="#31536E" fill-opacity=".5" stroke="#31536E" stroke-miterlimit="10" stroke-width="16" d="M558.615,484.287c-1.795,13.101-13.868,22.268-26.971,20.475l-430.091-58.867c-13.102-1.793-22.269-13.867-20.476-26.969 l25.128-183.588c1.792-13.101,13.867-22.268,26.969-20.475l430.09,58.867c13.104,1.793,22.271,13.867,20.476,26.969 L558.615,484.287z" class="stroke-primary fill-primary"/><g id="llave-2"><polyline id="_x32_5-pct" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" points="725.15 608.29 795.92 631.312 811.343 619.35 951.072 799.492 994.668 765.676 854.939 585.534 870.773 573.253 865.453 489.109 785.277 463.028 710.425 521.088 710.771 526.581" class="stroke-primary fill-primary"/><line x1="822.037" x2="949.643" y1="611.055" y2="775.57" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><circle cx="851.312" cy="618.65" r="4.164" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M883.329,641.242c1.41,1.818,1.08,4.435-0.739,5.844c-1.814,1.41-4.432,1.079-5.842-0.738c-1.409-1.815-1.078-4.433,0.738-5.844 C879.305,639.096,881.92,639.428,883.329,641.242z"/><ellipse cx="909.955" cy="690.856" fill="#31536E" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" rx="8.068" ry="8.328" transform="matrix(0.7902 -0.6129 0.6129 0.7902 -232.4812 702.6757)"/><ellipse cx="930.024" cy="717.028" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" rx="2.706" ry="2.793" transform="matrix(0.79 -0.6131 0.6131 0.79 -244.3098 720.8308)"/><ellipse cx="959.021" cy="745.919" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" rx="2.705" ry="2.793" transform="matrix(0.7901 -0.6129 0.6129 0.7901 -255.9333 744.3307)"/><path fill="#FFF" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M748.271,530.445c-2.446-6.905,2.196-17.128,11.607-24.426c10.754-8.342,23.66-9.706,28.829-3.044 c5.165,6.66,0.633,18.822-10.12,27.163c-6.389,4.956-13.539,7.449-19.371,7.26"/></g><g id="llave-1"><path fill="#FFF" stroke="#31536E" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M614.113,522.867 c-15.51,13.144-25.266,32.768-25.266,54.689c0,30.556,19.152,56.628,46.152,66.933v53.651l10.41,12.492L635,724.513v29.149 l10,13.186v12.491l5.41,12.492L635,805.713v43.375l24.959,20.82L687,849.088v-204.94c26-10.53,45.135-36.366,45.135-66.591 c0-39.575-32.113-71.656-71.688-71.656c-13.148,0-25.486,3.542-36.077,9.723"/><path fill="none" stroke="#31536E" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M649.429,535.988 c3.556-2.918,8.105-4.671,13.064-4.671c11.378,0,20.603,9.225,20.603,20.604c0,2.6-0.48,5.087-1.359,7.377 c-2.968,7.735-10.465,13.226-19.243,13.226c-11.38,0-20.604-9.225-20.604-20.603c0-1.879,0.252-3.699,0.724-5.429"/><line x1="672" x2="672" y1="645" y2="838" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/></g><path fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="8" d="M590.754,433.03 c-21.271,0-38.517-17.245-38.517-38.517c0-21.272,17.245-38.517,38.517-38.517s38.518,17.245,38.518,38.517 c0,16.125-9.91,29.936-23.972,35.674"/><g><path fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="8" d="M681.732,559.303 c-52.018-6.146-92.366-50.394-92.366-104.065c0-57.877,46.918-104.795,104.796-104.795c57.875,0,104.793,46.918,104.793,104.795 c0,4.064-0.23,8.074-0.68,12.018"/><path fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="8" d="M682.455,546.806 c-45.45-5.752-80.598-44.555-80.598-91.568c0-50.978,41.325-92.304,92.305-92.304c50.977,0,92.302,41.326,92.302,92.304 c0,2.717-0.117,5.406-0.348,8.063"/></g><path fill="#FFF" stroke="#31536E" stroke-miterlimit="10" stroke-width="8" d="M517.327,448.165 c-1.794,13.101-13.868,22.268-26.969,20.475l-355.832-48.703c-13.101-1.793-22.268-13.868-20.476-26.969l16.799-122.736 c1.793-13.102,13.867-22.269,26.969-20.476l355.831,48.702c13.102,1.794,22.269,13.868,20.475,26.969L517.327,448.165z"/><g><path fill="#FFF" stroke="#31536E" stroke-linecap="round" stroke-linejoin="bevel" stroke-miterlimit="10" stroke-width="8" d="M788.189,501.559c-11.944,24.199-32.955,43.123-58.598,52.332l-6.449-10.99c22.528-7.444,41.213-23.33,52.313-43.91 L788.189,501.559z"/></g><g id="logo-decidim"><path fill="#FFF" d="M403.485,369.949c-35.105-4.969-59.938-37.072-55.925-72.299l-1.195-0.152 c-4.971,35.104-37.074,59.937-72.301,55.924l-0.153,1.196c35.135,4.73,59.968,36.834,55.924,72.301l1.196,0.152 c4.731-35.136,36.835-59.968,72.301-55.925L403.485,369.949z"/><path fill="#31536E" d="M403.485,369.949c4.013-35.227-20.819-67.33-55.925-72.299 C343.547,332.877,368.379,364.98,403.485,369.949z" class="fill-primary"/><path fill="#31536E" d="M403.332,371.146c-35.196-4.252-67.3,20.58-72.301,55.925 C366.259,431.084,398.362,406.251,403.332,371.146z" class="fill-primary"/><path fill="#31536E" d="M282.252,289.309l-8.189,64.113l0,0c35.197,4.252,67.301-20.581,72.301-55.924L282.252,289.309z" class="fill-primary"/><path fill="#31536E" d="M273.911,354.618L273.911,354.618l-8.188,64.112l64.111,8.189 C333.849,391.691,309.016,359.587,273.911,354.618z" class="fill-primary"/><path fill="#31536E" d="M273.911,354.618c-4.252,35.196,20.58,67.3,55.924,72.301 C333.849,391.691,309.016,359.587,273.911,354.618z" class="fill-primary"/><path fill="#31536E" d="M274.063,353.421c35.197,4.252,67.301-20.581,72.301-55.924 C310.897,293.453,278.794,318.285,274.063,353.421z" class="fill-primary"/></g><g id="stars-1" class="stars"><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M429,158.355C429,143.667,410.333,123,393.645,123C409,123,429,102.667,429,87.645C429,102.667,445.666,123,464.355,123 C445.333,123,429,143.667,429,158.355z"/><g><circle cx="860.382" cy="125.411" r="13.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="843.883" x2="822.67" y1="108.676" y2="87.463" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="877.824" x2="899.037" y1="142.617" y2="163.83" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="877.117" x2="898.33" y1="109.383" y2="88.17" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="843.883" x2="822.67" y1="142.617" y2="163.83" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="798.612" x2="772.45" y1="927.094" y2="953.258" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="763.258" x2="737.095" y1="962.449" y2="988.613" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="797.905" x2="771.742" y1="988.613" y2="962.449" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="762.551" x2="736.388" y1="953.258" y2="927.094" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M1028.592,902.609c0,0-21.566,4.035-26.516,8.983c-4.948,4.948-8.982,26.515-8.982,26.515s-4.035-21.566-8.984-26.515 c-4.948-4.948-26.514-8.983-26.514-8.983s22.077-4.546,26.514-8.983c4.438-4.438,8.984-26.515,8.984-26.515 s4.034,21.566,8.982,26.515C1007.025,898.574,1028.592,902.609,1028.592,902.609z"/><g><circle cx="188.501" cy="902.667" r="16.604" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="152.6" cy="902.667" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="188.501" cy="938.568" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="224.402" cy="902.667" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="188.501" cy="866.766" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="358.746" x2="413.649" y1="617.973" y2="672.878" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="413.649" x2="358.746" y1="617.973" y2="672.878" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="368" x2="341" y1="645" y2="645" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="406" x2="433" y1="645" y2="645" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="387" x2="387" y1="664" y2="691" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="387" x2="387" y1="626" y2="599" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="133" x2="133" y1="98" y2="177" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="172" x2="93" y1="138" y2="138" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="113" cy="157.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="113" cy="117.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="153" cy="157.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="153" cy="117.5" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g></g></g></svg>
@@ -1,41 +0,0 @@
1
- <h2><%= t("devise.registrations.edit.title", resource: resource_class.model_name.human) %></h2>
2
-
3
- <%= decidim_form_for(resource, namespace: "registration", as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= render "devise/shared/error_messages", resource: resource %>
5
- <%= form_required_explanation %>
6
- <%= invisible_captcha %>
7
-
8
- <div class="field">
9
- <%= f.email_field :email %>
10
- </div>
11
-
12
- <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
13
- <p>
14
- <%= t("devise.registrations.edit.currently_waiting_confirmation_for_email", email: resource.unconfirmed_email) %>
15
- </p>
16
- <% end %>
17
-
18
- <div class="field">
19
- <%= f.password_field :password, autocomplete: "off" %>
20
- </div>
21
-
22
- <div class="field">
23
- <%= f.password_field :password_confirmation %>
24
- </div>
25
-
26
- <div class="field">
27
- <%= f.password_field :current_password %>
28
- </div>
29
-
30
- <div class="field">
31
- <%= f.text_field :name %>
32
- </div>
33
-
34
- <div><%= f.submit t("devise.registrations.edit.update") %></div>
35
- <% end %>
36
-
37
- <h3><%= t("devise.registrations.edit.cancel_my_account") %></h3>
38
-
39
- <p><%= t("devise.registrations.edit.unhappy") %> <%= link_to t("devise.registrations.edit.cancel_my_account"), registration_path(resource_name), data: { confirm: t("devise.registrations.edit.are_you_sure") }, method: :delete %>.</p>
40
-
41
- <%= link_to t("devise.shared.links.back"), :back %>