decidim-core 0.28.1 → 0.29.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (678) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cells/decidim/activities_cell.rb +0 -1
  4. data/app/cells/decidim/activity_cell.rb +5 -7
  5. data/app/cells/decidim/address_cell.rb +3 -5
  6. data/app/cells/decidim/amendable/amend_button_card_cell.rb +0 -2
  7. data/app/cells/decidim/amendable/amendments_cell.rb +0 -2
  8. data/app/cells/decidim/amendable/announcement_cell.rb +10 -14
  9. data/app/cells/decidim/amendable/emendation_actions_cell.rb +0 -2
  10. data/app/cells/decidim/amendable/promote_button_card_cell.rb +0 -2
  11. data/app/cells/decidim/amendable/wizard_step_form_cell.rb +6 -19
  12. data/app/cells/decidim/announcement/show.erb +3 -3
  13. data/app/cells/decidim/announcement_cell.rb +6 -2
  14. data/app/cells/decidim/attachments_file_tab/show.erb +3 -0
  15. data/app/cells/decidim/attachments_file_tab_cell.rb +11 -0
  16. data/app/cells/decidim/attachments_link_tab/show.erb +12 -0
  17. data/app/cells/decidim/attachments_link_tab_cell.rb +21 -0
  18. data/app/cells/decidim/author/flag.erb +2 -2
  19. data/app/cells/decidim/author/show.erb +5 -5
  20. data/app/cells/decidim/author_cell.rb +0 -2
  21. data/app/cells/decidim/authorization_modal_cell.rb +0 -3
  22. data/app/cells/decidim/badge_cell.rb +0 -4
  23. data/app/cells/decidim/badges_cell.rb +0 -2
  24. data/app/cells/decidim/button_cell.rb +0 -3
  25. data/app/cells/decidim/card/show.erb +1 -1
  26. data/app/cells/decidim/card_cell.rb +1 -5
  27. data/app/cells/decidim/card_g_cell.rb +2 -2
  28. data/app/cells/decidim/card_l/space.erb +1 -1
  29. data/app/cells/decidim/card_l_cell.rb +1 -3
  30. data/app/cells/decidim/card_metadata/show.erb +2 -2
  31. data/app/cells/decidim/card_metadata_cell.rb +1 -5
  32. data/app/cells/decidim/card_s_cell.rb +1 -4
  33. data/app/cells/decidim/coauthorships_cell.rb +0 -2
  34. data/app/cells/decidim/comments_button_cell.rb +0 -2
  35. data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
  36. data/app/cells/decidim/content_blocks/footer_sub_hero_cell.rb +0 -3
  37. data/app/cells/decidim/content_blocks/hero/show.erb +1 -1
  38. data/app/cells/decidim/content_blocks/hero_cell.rb +0 -1
  39. data/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb +0 -2
  40. data/app/cells/decidim/content_blocks/how_to_participate/show.erb +1 -1
  41. data/app/cells/decidim/content_blocks/how_to_participate_cell.rb +0 -1
  42. data/app/cells/decidim/content_blocks/participatory_space_documents/content.erb +1 -1
  43. data/app/cells/decidim/content_blocks/participatory_space_documents_cell.rb +17 -1
  44. data/app/cells/decidim/content_blocks/participatory_space_hero_cell.rb +0 -2
  45. data/app/cells/decidim/content_blocks/participatory_space_last_activity_cell.rb +1 -3
  46. data/app/cells/decidim/content_blocks/stats/show.erb +1 -1
  47. data/app/cells/decidim/content_blocks/sub_hero_cell.rb +0 -3
  48. data/app/cells/decidim/data_consent/category.erb +1 -1
  49. data/app/cells/decidim/date_range/show.erb +10 -10
  50. data/app/cells/decidim/date_range_cell.rb +0 -2
  51. data/app/cells/decidim/diff_cell.rb +0 -1
  52. data/app/cells/decidim/documents_panel/show.erb +4 -0
  53. data/app/cells/decidim/documents_panel_cell.rb +9 -1
  54. data/app/cells/decidim/endorsement_buttons_cell.rb +5 -13
  55. data/app/cells/decidim/flag_modal/flag_user.erb +3 -3
  56. data/app/cells/decidim/followers_cell.rb +0 -1
  57. data/app/cells/decidim/following_cell.rb +0 -1
  58. data/app/cells/decidim/footer_topics/show.erb +8 -0
  59. data/app/cells/decidim/footer_topics_cell.rb +39 -0
  60. data/app/cells/decidim/groups_cell.rb +0 -3
  61. data/app/cells/decidim/linked_resources_for_cell.rb +0 -3
  62. data/app/cells/decidim/members_cell.rb +0 -1
  63. data/app/cells/decidim/nav_links/show.erb +2 -2
  64. data/app/cells/decidim/navbar_admin_link_cell.rb +0 -2
  65. data/app/cells/decidim/newsletter_templates/base_cell.rb +0 -1
  66. data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +2 -2
  67. data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +2 -2
  68. data/app/cells/decidim/notification/moderated.erb +12 -0
  69. data/app/cells/decidim/notification/show.erb +5 -0
  70. data/app/cells/decidim/notification_actions/base_cell.rb +13 -0
  71. data/app/cells/decidim/notification_actions/buttons/show.erb +5 -0
  72. data/app/cells/decidim/notification_actions/buttons_cell.rb +41 -0
  73. data/app/cells/decidim/notification_cell.rb +14 -4
  74. data/app/cells/decidim/notifications_cell.rb +0 -1
  75. data/app/cells/decidim/pad_iframe/show.erb +2 -2
  76. data/app/cells/decidim/pad_iframe_cell.rb +0 -1
  77. data/app/cells/decidim/participatory_space_dropdown_metadata_cell.rb +1 -2
  78. data/app/cells/decidim/photo_cell.rb +1 -5
  79. data/app/cells/decidim/photos_list_cell.rb +0 -2
  80. data/app/cells/decidim/profile/details.erb +1 -1
  81. data/app/cells/decidim/profile_cell.rb +0 -2
  82. data/app/cells/decidim/profile_sidebar/show.erb +20 -20
  83. data/app/cells/decidim/profile_sidebar_cell.rb +1 -10
  84. data/app/cells/decidim/progress_bar/show.erb +8 -6
  85. data/app/cells/decidim/progress_bar_cell.rb +2 -0
  86. data/app/cells/decidim/public_participation/show.erb +1 -1
  87. data/app/cells/decidim/report_button/flag_modal.erb +6 -2
  88. data/app/cells/decidim/resource_types_filter/show.erb +3 -3
  89. data/app/cells/decidim/resource_types_filter_cell.rb +0 -2
  90. data/app/cells/decidim/scopes_picker/show.erb +1 -1
  91. data/app/cells/decidim/scopes_picker_cell.rb +0 -1
  92. data/app/cells/decidim/search_results_cell.rb +1 -1
  93. data/app/cells/decidim/statistic/show.erb +2 -2
  94. data/app/cells/decidim/statistic_cell.rb +0 -2
  95. data/app/cells/decidim/tab_panels/show.erb +1 -1
  96. data/app/cells/decidim/tab_panels_cell.rb +12 -2
  97. data/app/cells/decidim/tags_cell.rb +0 -2
  98. data/app/cells/decidim/tos_page_cell.rb +0 -3
  99. data/app/cells/decidim/translation_bar/show.erb +1 -1
  100. data/app/cells/decidim/translation_bar_cell.rb +0 -2
  101. data/app/cells/decidim/upload_modal/files.erb +1 -1
  102. data/app/cells/decidim/upload_modal/modal.erb +3 -4
  103. data/app/cells/decidim/upload_modal_cell.rb +1 -3
  104. data/app/cells/decidim/user_conversation/new.erb +1 -1
  105. data/app/cells/decidim/user_conversation/show.erb +1 -1
  106. data/app/cells/decidim/user_conversation_cell.rb +0 -1
  107. data/app/cells/decidim/user_conversations/show.erb +1 -1
  108. data/app/cells/decidim/user_conversations_cell.rb +0 -1
  109. data/app/cells/decidim/user_group_pending_invitations_list_cell.rb +0 -1
  110. data/app/cells/decidim/user_group_pending_requests_list_cell.rb +0 -1
  111. data/app/cells/decidim/user_timeline/show.erb +1 -1
  112. data/app/cells/decidim/version_cell.rb +3 -5
  113. data/app/cells/decidim/versions_list_cell.rb +1 -3
  114. data/app/cells/decidim/versions_list_item_cell.rb +2 -4
  115. data/app/cells/decidim/wizard_step_form/wizard_aside.erb +2 -2
  116. data/app/cells/decidim/wizard_step_form/wizard_header.erb +2 -3
  117. data/app/cells/decidim/wizard_step_form_cell.rb +0 -8
  118. data/app/commands/decidim/amendable/create_draft.rb +4 -3
  119. data/app/commands/decidim/amendable/promote.rb +3 -2
  120. data/app/commands/decidim/amendable/publish_draft.rb +3 -2
  121. data/app/commands/decidim/amendable/update_draft.rb +4 -3
  122. data/app/commands/decidim/amendable/withdraw.rb +1 -1
  123. data/app/commands/decidim/create_follow.rb +4 -4
  124. data/app/commands/decidim/create_report.rb +3 -3
  125. data/app/commands/decidim/create_user_report.rb +5 -5
  126. data/app/commands/decidim/delete_follow.rb +4 -4
  127. data/app/commands/decidim/demote_membership.rb +2 -2
  128. data/app/commands/decidim/destroy_account.rb +21 -19
  129. data/app/commands/decidim/endorse_resource.rb +1 -1
  130. data/app/commands/decidim/invite_user_to_group.rb +5 -4
  131. data/app/commands/decidim/update_account.rb +24 -22
  132. data/app/commands/decidim/update_notifications_settings.rb +13 -11
  133. data/app/commands/decidim/update_password.rb +7 -7
  134. data/app/commands/decidim/update_user_interests.rb +9 -7
  135. data/app/controllers/concerns/decidim/devise_controllers.rb +2 -0
  136. data/app/controllers/concerns/decidim/filter_resource.rb +1 -1
  137. data/app/controllers/concerns/decidim/force_authentication.rb +1 -1
  138. data/app/controllers/concerns/decidim/needs_rtl_direction.rb +23 -0
  139. data/app/controllers/concerns/decidim/participatory_space_context.rb +1 -23
  140. data/app/controllers/concerns/decidim/payload_info.rb +2 -1
  141. data/app/controllers/concerns/decidim/registers_permissions.rb +4 -4
  142. data/app/controllers/concerns/decidim/use_organization_time_zone.rb +2 -2
  143. data/app/controllers/concerns/decidim/withdrawable.rb +1 -1
  144. data/app/controllers/decidim/account_controller.rb +2 -2
  145. data/app/controllers/{concerns/decidim → decidim}/amendments_controller.rb +3 -16
  146. data/app/controllers/decidim/application_controller.rb +1 -0
  147. data/app/controllers/decidim/components/base_controller.rb +1 -1
  148. data/app/controllers/decidim/devise/invitations_controller.rb +1 -1
  149. data/app/controllers/decidim/devise/passwords_controller.rb +2 -2
  150. data/app/controllers/decidim/endorsements_controller.rb +1 -1
  151. data/app/controllers/decidim/favicon_controller.rb +1 -1
  152. data/app/controllers/decidim/follows_controller.rb +2 -2
  153. data/app/controllers/decidim/gamification/badges_controller.rb +2 -0
  154. data/app/controllers/decidim/group_invites_controller.rb +36 -9
  155. data/app/controllers/decidim/links_controller.rb +15 -2
  156. data/app/controllers/decidim/newsletters_opt_in_controller.rb +1 -1
  157. data/app/controllers/decidim/notifications_settings_controller.rb +1 -1
  158. data/app/controllers/decidim/report_users_controller.rb +1 -1
  159. data/app/controllers/decidim/reports_controller.rb +1 -1
  160. data/app/controllers/decidim/user_interests_controller.rb +1 -1
  161. data/app/events/decidim/change_nickname_event.rb +0 -1
  162. data/app/events/decidim/invited_to_group_event.rb +29 -0
  163. data/app/events/decidim/welcome_notification_event.rb +2 -4
  164. data/app/forms/decidim/form.rb +4 -0
  165. data/app/forms/decidim/omniauth_registration_form.rb +1 -1
  166. data/app/forms/decidim/upload_validation_form.rb +1 -1
  167. data/app/helpers/concerns/decidim/flash_helper_extensions.rb +3 -3
  168. data/app/helpers/decidim/amendments_helper.rb +4 -14
  169. data/app/helpers/decidim/application_helper.rb +8 -0
  170. data/app/helpers/decidim/authorization_form_helper.rb +2 -2
  171. data/app/helpers/decidim/breadcrumb_helper.rb +1 -1
  172. data/app/helpers/decidim/cells_helper.rb +1 -1
  173. data/app/helpers/decidim/check_boxes_tree_helper.rb +2 -3
  174. data/app/helpers/decidim/datalist_select_helper.rb +1 -1
  175. data/app/helpers/decidim/decidim_form_helper.rb +3 -3
  176. data/app/helpers/decidim/filters_helper.rb +1 -1
  177. data/app/helpers/decidim/layout_helper.rb +1 -36
  178. data/app/helpers/decidim/localized_locales_helper.rb +1 -1
  179. data/app/helpers/decidim/menu_helper.rb +8 -0
  180. data/app/helpers/decidim/meta_tags_helper.rb +26 -23
  181. data/app/helpers/decidim/modal_helper.rb +1 -1
  182. data/app/helpers/decidim/orders_helper.rb +1 -1
  183. data/app/helpers/decidim/organization_helper.rb +55 -0
  184. data/app/helpers/decidim/paginate_helper.rb +1 -1
  185. data/app/helpers/decidim/resource_helper.rb +0 -7
  186. data/app/helpers/decidim/scopes_helper.rb +4 -2
  187. data/app/helpers/decidim/searches_helper.rb +1 -1
  188. data/app/helpers/decidim/short_link_helper.rb +2 -2
  189. data/app/helpers/decidim/translations_helper.rb +2 -2
  190. data/app/helpers/decidim/twitter_search_helper.rb +1 -1
  191. data/app/helpers/decidim/user_profile_helper.rb +0 -1
  192. data/app/jobs/decidim/email_notifications_digest_generator_job.rb +2 -2
  193. data/app/mailers/decidim/application_mailer.rb +44 -6
  194. data/app/mailers/decidim/block_user_mailer.rb +1 -1
  195. data/app/mailers/decidim/decidim_devise_mailer.rb +7 -1
  196. data/app/mailers/decidim/newsletter_mailer.rb +1 -4
  197. data/app/mailers/decidim/newsletters_opt_in_mailer.rb +2 -2
  198. data/app/mailers/decidim/notification_mailer.rb +0 -1
  199. data/app/mailers/decidim/notifications_digest_mailer.rb +0 -1
  200. data/app/mailers/decidim/reported_mailer.rb +6 -3
  201. data/app/mailers/decidim/user_report_mailer.rb +1 -1
  202. data/app/models/decidim/action_log.rb +1 -1
  203. data/app/models/decidim/area_type.rb +1 -1
  204. data/app/models/decidim/attachment.rb +26 -2
  205. data/app/models/decidim/authorization.rb +1 -1
  206. data/app/models/decidim/authorization_transfer.rb +1 -0
  207. data/app/models/decidim/component.rb +2 -2
  208. data/app/models/decidim/content_block.rb +1 -1
  209. data/app/models/decidim/messaging/message.rb +2 -2
  210. data/app/models/decidim/newsletter.rb +9 -9
  211. data/app/models/decidim/notification.rb +2 -2
  212. data/app/models/decidim/organization.rb +23 -2
  213. data/app/models/decidim/push_notification_message.rb +1 -1
  214. data/app/models/decidim/resource_link.rb +1 -1
  215. data/app/models/decidim/user.rb +2 -2
  216. data/app/models/decidim/user_group.rb +2 -2
  217. data/app/packs/src/decidim/a11y.js +60 -0
  218. data/app/packs/src/decidim/abide_form_validator_fixer.js +44 -0
  219. data/app/packs/src/decidim/attachments/file_or_link_tabs.js +55 -0
  220. data/app/packs/src/decidim/attachments/index.js +1 -0
  221. data/app/packs/src/decidim/back_to_list.js +1 -1
  222. data/app/packs/src/decidim/check_boxes_tree.js +1 -1
  223. data/app/packs/src/decidim/data_consent/consent_manager.js +1 -1
  224. data/app/packs/src/decidim/data_consent/consent_manager.test.js +6 -6
  225. data/app/packs/src/decidim/data_consent/index.js +1 -1
  226. data/app/packs/src/decidim/datepicker/datepicker_functions.js +243 -0
  227. data/app/packs/src/decidim/datepicker/datepicker_listeners.js +78 -0
  228. data/app/packs/src/decidim/datepicker/form_datepicker.js +91 -0
  229. data/app/packs/src/decidim/datepicker/generate_datepicker.js +148 -0
  230. data/app/packs/src/decidim/datepicker/generate_timepicker.js +298 -0
  231. data/app/packs/src/decidim/datepicker/test/date.test.js +118 -0
  232. data/app/packs/src/decidim/datepicker/test/time.test.js +227 -0
  233. data/app/packs/src/decidim/direct_uploads/upload_modal.js +2 -6
  234. data/app/packs/src/decidim/editor/extensions/indent/index.js +1 -1
  235. data/app/packs/src/decidim/editor/extensions/video_embed/index.js +4 -4
  236. data/app/packs/src/decidim/editor/test/extensions/decidim_kit.test.js +0 -15
  237. data/app/packs/src/decidim/editor/test/extensions/indent.test.js +1 -1
  238. data/app/packs/src/decidim/editor/test/fixtures/upload_templates.js +1 -1
  239. data/app/packs/src/decidim/editor/test/helpers.js +1 -14
  240. data/app/packs/src/decidim/editor/utilities/paste_transform.js +2 -2
  241. data/app/packs/src/decidim/external_domain_warning.js +2 -2
  242. data/app/packs/src/decidim/external_domain_warning.test.js +4 -4
  243. data/app/packs/src/decidim/form_filter.js +4 -4
  244. data/app/packs/src/decidim/impersonation.js +1 -1
  245. data/app/packs/src/decidim/index.js +40 -6
  246. data/app/packs/src/decidim/input_character_counter.js +1 -1
  247. data/app/packs/src/decidim/input_emoji.js +171 -72
  248. data/app/packs/src/decidim/input_hashtags.js +1 -1
  249. data/app/packs/src/decidim/input_mentions.js +1 -1
  250. data/app/packs/src/decidim/notifications_actions.js +40 -0
  251. data/app/packs/src/decidim/sticky_header.js +87 -0
  252. data/app/packs/src/decidim/sw/sw.js +8 -6
  253. data/app/packs/src/decidim/tooltips.js +1 -1
  254. data/app/packs/stylesheets/decidim/_accordion.scss +2 -2
  255. data/app/packs/stylesheets/decidim/_cards.scss +2 -2
  256. data/app/packs/stylesheets/decidim/_datepicker.scss +193 -0
  257. data/app/packs/stylesheets/decidim/_dropdown.scss +36 -0
  258. data/app/packs/stylesheets/decidim/_emoji.scss +36 -0
  259. data/app/packs/stylesheets/decidim/_filters.scss +4 -2
  260. data/app/packs/stylesheets/decidim/_flash.scss +2 -2
  261. data/app/packs/stylesheets/decidim/_footer.scss +1 -3
  262. data/app/packs/stylesheets/decidim/_forms.scss +9 -1
  263. data/app/packs/stylesheets/decidim/_header.scss +70 -50
  264. data/app/packs/stylesheets/decidim/_home.scss +1 -1
  265. data/app/packs/stylesheets/decidim/_layout.scss +16 -3
  266. data/app/packs/stylesheets/decidim/_modal.scss +1 -1
  267. data/app/packs/stylesheets/decidim/_modal_update.scss +2 -4
  268. data/app/packs/stylesheets/decidim/_notifications.scss +4 -0
  269. data/app/packs/stylesheets/decidim/_tabs_x.scss +5 -1
  270. data/app/packs/stylesheets/decidim/application.scss +4 -0
  271. data/app/packs/stylesheets/decidim/legacy/leaflet.scss +1 -1
  272. data/app/packs/stylesheets/decidim/vendor/_datepicker_light.scss +228 -0
  273. data/app/permissions/decidim/default_permissions.rb +2 -2
  274. data/app/presenters/decidim/admin_log/organization_presenter.rb +2 -2
  275. data/app/presenters/decidim/admin_log/static_page_presenter.rb +1 -1
  276. data/app/presenters/decidim/authorization_transfer_presenter.rb +1 -1
  277. data/app/presenters/decidim/component_attachment_collection_presenter.rb +81 -0
  278. data/app/presenters/decidim/footer_menu_presenter.rb +1 -1
  279. data/app/presenters/decidim/home_stats_presenter.rb +1 -1
  280. data/app/presenters/decidim/log/resource_presenter.rb +7 -1
  281. data/app/presenters/decidim/organization_presenter.rb +1 -1
  282. data/app/queries/decidim/metric_measure.rb +1 -1
  283. data/app/queries/decidim/public_activities.rb +1 -1
  284. data/app/queries/decidim/user_groups/admin_memberships.rb +1 -1
  285. data/app/queries/decidim/user_groups/member_memberships.rb +1 -1
  286. data/app/services/decidim/action_logger.rb +3 -3
  287. data/app/services/decidim/log/diff_changeset_calculator.rb +3 -3
  288. data/app/services/decidim/notifications_digest_sending_decider.rb +1 -1
  289. data/app/uploaders/decidim/organization_favicon_uploader.rb +1 -1
  290. data/app/uploaders/decidim/record_image_uploader.rb +2 -2
  291. data/app/validators/organization_present_validator.rb +1 -1
  292. data/app/validators/passthru_validator.rb +1 -1
  293. data/app/validators/uploader_image_dimensions_validator.rb +2 -2
  294. data/app/views/decidim/account/show.html.erb +3 -3
  295. data/app/views/decidim/amendments/_wizard_header.html.erb +1 -2
  296. data/app/views/decidim/application/_collection.html.erb +3 -1
  297. data/app/views/decidim/application/_component_documents.html.erb +4 -0
  298. data/app/views/decidim/application/_document.html.erb +24 -10
  299. data/app/views/decidim/block_user_mailer/notify.html.erb +2 -2
  300. data/app/views/decidim/devise/invitations/edit.html.erb +2 -2
  301. data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
  302. data/app/views/decidim/devise/registrations/new.html.erb +1 -1
  303. data/app/views/decidim/devise/shared/_login_boxes.html.erb +1 -1
  304. data/app/views/decidim/doorkeeper/authorizations/new.html.erb +1 -1
  305. data/app/views/decidim/endorsements/_identity.html.erb +1 -1
  306. data/app/views/decidim/endorsements/update_buttons_and_counters.js.erb +2 -1
  307. data/app/views/decidim/gamification/badges/index.html.erb +34 -33
  308. data/app/views/decidim/links/_modal.html.erb +1 -1
  309. data/app/views/decidim/links/new.html.erb +3 -1
  310. data/app/views/decidim/manifests/show.json.erb +1 -1
  311. data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +2 -2
  312. data/app/views/decidim/messaging/conversations/_error_modal.html.erb +5 -5
  313. data/app/views/decidim/messaging/conversations/create.js.erb +1 -1
  314. data/app/views/decidim/newsletter_mailer/newsletter.html.erb +1 -1
  315. data/app/views/decidim/newsletters/show.html.erb +1 -1
  316. data/app/views/decidim/newsletters_opt_in_mailer/notify.html.erb +2 -2
  317. data/app/views/decidim/notifications_settings/show.html.erb +6 -6
  318. data/app/views/decidim/pages/_tabbed.html.erb +2 -2
  319. data/app/views/decidim/pages/index.html.erb +1 -2
  320. data/app/views/decidim/reported_mailer/report.html.erb +4 -2
  321. data/app/views/decidim/scopes/picker.html.erb +5 -5
  322. data/app/views/decidim/searches/_filters.html.erb +2 -2
  323. data/app/views/decidim/searches/_resources_filter_block.html.erb +6 -6
  324. data/app/views/decidim/shared/_extended_navigation_bar.html.erb +8 -8
  325. data/app/views/decidim/shared/_filters.html.erb +2 -2
  326. data/app/views/decidim/shared/_login_modal.html.erb +1 -1
  327. data/app/views/decidim/shared/_orders.html.erb +2 -2
  328. data/app/views/decidim/shared/filters/_collection.html.erb +5 -3
  329. data/app/views/decidim/shared/filters/_dropdown_label.html.erb +21 -19
  330. data/app/views/decidim/user_interests/_areas.html.erb +2 -2
  331. data/app/views/decidim/user_report_mailer/notify.html.erb +2 -2
  332. data/app/views/decidim/user_update_mailer/notify.html.erb +1 -1
  333. data/app/views/decidim/widgets/_data_picker.html.erb +1 -1
  334. data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
  335. data/app/views/devise/mailer/invitation_instructions.text.erb +1 -1
  336. data/app/views/devise/mailer/invite_admin.html.erb +2 -2
  337. data/app/views/devise/mailer/invite_admin.text.erb +2 -2
  338. data/app/views/devise/mailer/invite_collaborator.html.erb +2 -2
  339. data/app/views/devise/mailer/invite_collaborator.text.erb +2 -2
  340. data/app/views/devise/mailer/invite_private_user.html.erb +2 -2
  341. data/app/views/devise/mailer/invite_private_user.text.erb +2 -2
  342. data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
  343. data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +1 -1
  344. data/app/views/layouts/decidim/_application.html.erb +3 -6
  345. data/app/views/layouts/decidim/_data_consent_warning.html.erb +2 -2
  346. data/app/views/layouts/decidim/_decidim_javascript.html.erb +1 -1
  347. data/app/views/layouts/decidim/_head_extra.html.erb +2 -2
  348. data/app/views/layouts/decidim/_impersonation_warning.html.erb +1 -1
  349. data/app/views/layouts/decidim/_js_configuration.html.erb +7 -2
  350. data/app/views/layouts/decidim/_logo.html.erb +2 -2
  351. data/app/views/layouts/decidim/_logo_mobile.html.erb +11 -0
  352. data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
  353. data/app/views/layouts/decidim/_meta_tags_config.html.erb +1 -1
  354. data/app/views/layouts/decidim/_wrapper.html.erb +16 -9
  355. data/app/views/layouts/decidim/footer/_main.html.erb +2 -3
  356. data/app/views/layouts/decidim/footer/_main_intro.html.erb +2 -2
  357. data/app/views/layouts/decidim/footer/_main_legal.html.erb +2 -3
  358. data/app/views/layouts/decidim/footer/_main_links.html.erb +13 -9
  359. data/app/views/layouts/decidim/footer/_main_social_media_links.html.erb +8 -8
  360. data/app/views/layouts/decidim/header/_main.html.erb +9 -22
  361. data/app/views/layouts/decidim/header/_main_links_desktop.html.erb +7 -6
  362. data/app/views/layouts/decidim/header/_main_links_mobile_account.html.erb +10 -3
  363. data/app/views/layouts/decidim/header/_main_links_mobile_item_account.html.erb +24 -0
  364. data/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb +0 -21
  365. data/app/views/layouts/decidim/header/_main_menu_mobile.html.erb +12 -0
  366. data/app/views/layouts/decidim/header/_menu_breadcrumb_desktop.html.erb +1 -1
  367. data/app/views/layouts/decidim/header/_menu_breadcrumb_items.html.erb +2 -0
  368. data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_mobile.html.erb +17 -0
  369. data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_top_left.html.erb +1 -1
  370. data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +1 -1
  371. data/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb +16 -0
  372. data/app/views/layouts/decidim/header/_mobile_language_choose.html.erb +25 -0
  373. data/app/views/layouts/decidim/mailer.html.erb +2 -2
  374. data/app/views/layouts/decidim/shared/_layout_center.html.erb +1 -1
  375. data/app/views/layouts/decidim/shared/_layout_item.html.erb +0 -14
  376. data/app/views/layouts/decidim/shared/_layout_user_profile.html.erb +2 -2
  377. data/config/initializers/active_storage.rb +3 -0
  378. data/config/initializers/devise.rb +1 -1
  379. data/config/initializers/new_framework_defaults_7_0.rb +145 -0
  380. data/config/locales/ar.yml +3 -47
  381. data/config/locales/bg.yml +916 -41
  382. data/config/locales/ca.yml +67 -54
  383. data/config/locales/cs.yml +54 -56
  384. data/config/locales/de.yml +65 -52
  385. data/config/locales/el.yml +8 -30
  386. data/config/locales/en.yml +71 -58
  387. data/config/locales/es-MX.yml +73 -60
  388. data/config/locales/es-PY.yml +73 -60
  389. data/config/locales/es.yml +96 -83
  390. data/config/locales/eu.yml +71 -58
  391. data/config/locales/fi-plain.yml +69 -56
  392. data/config/locales/fi.yml +69 -56
  393. data/config/locales/fr-CA.yml +62 -55
  394. data/config/locales/fr.yml +57 -50
  395. data/config/locales/ga-IE.yml +7 -10
  396. data/config/locales/gl.yml +1 -18
  397. data/config/locales/hu.yml +37 -58
  398. data/config/locales/id-ID.yml +0 -14
  399. data/config/locales/is-IS.yml +0 -10
  400. data/config/locales/it.yml +7 -26
  401. data/config/locales/ja.yml +69 -56
  402. data/config/locales/kaa.yml +5 -0
  403. data/config/locales/lb.yml +7 -26
  404. data/config/locales/lt.yml +8 -50
  405. data/config/locales/lv.yml +8 -22
  406. data/config/locales/nl.yml +7 -25
  407. data/config/locales/no.yml +7 -26
  408. data/config/locales/pl.yml +99 -53
  409. data/config/locales/pt-BR.yml +4 -52
  410. data/config/locales/pt.yml +7 -26
  411. data/config/locales/ro-RO.yml +9 -28
  412. data/config/locales/ru.yml +8 -15
  413. data/config/locales/sk.yml +8 -22
  414. data/config/locales/sl.yml +8 -8
  415. data/config/locales/sv.yml +8 -34
  416. data/config/locales/tr-TR.yml +22 -28
  417. data/config/locales/uk.yml +10 -10
  418. data/config/locales/zh-CN.yml +0 -23
  419. data/config/locales/zh-TW.yml +8 -48
  420. data/config/routes.rb +0 -1
  421. data/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb +1 -1
  422. data/db/migrate/20240110150230_rename_external_domain_whitelist_to_external_domain_allowlist.rb +7 -0
  423. data/db/migrate/20240326104215_remove_show_in_footer_in_static_pages.rb +7 -0
  424. data/db/migrate/20240401192628_change_name_on_decidim_organizations.rb +31 -0
  425. data/db/seeds/avatars/001.jpg +0 -0
  426. data/db/seeds/avatars/002.jpg +0 -0
  427. data/db/seeds/avatars/003.jpg +0 -0
  428. data/db/seeds/avatars/004.jpg +0 -0
  429. data/db/seeds/avatars/005.jpg +0 -0
  430. data/db/seeds/avatars/006.jpg +0 -0
  431. data/db/seeds/avatars/007.jpg +0 -0
  432. data/db/seeds/avatars/008.jpg +0 -0
  433. data/db/seeds/avatars/009.jpg +0 -0
  434. data/db/seeds/avatars/010.jpg +0 -0
  435. data/db/seeds/avatars/011.jpg +0 -0
  436. data/db/seeds/avatars/012.jpg +0 -0
  437. data/db/seeds/avatars/013.jpg +0 -0
  438. data/db/seeds/avatars/014.jpg +0 -0
  439. data/db/seeds/avatars/015.jpg +0 -0
  440. data/db/seeds/avatars/016.jpg +0 -0
  441. data/db/seeds/avatars/017.jpg +0 -0
  442. data/db/seeds/avatars/018.jpg +0 -0
  443. data/db/seeds/avatars/019.jpg +0 -0
  444. data/db/seeds/avatars/020.jpg +0 -0
  445. data/db/seeds/avatars/021.jpg +0 -0
  446. data/db/seeds/avatars/022.jpg +0 -0
  447. data/db/seeds/avatars/023.jpg +0 -0
  448. data/db/seeds/avatars/024.jpg +0 -0
  449. data/db/seeds/avatars/025.jpg +0 -0
  450. data/db/seeds/avatars/026.jpg +0 -0
  451. data/db/seeds/avatars/027.jpg +0 -0
  452. data/db/seeds/avatars/028.jpg +0 -0
  453. data/db/seeds/avatars/029.jpg +0 -0
  454. data/db/seeds/avatars/030.jpg +0 -0
  455. data/db/seeds/avatars/031.jpg +0 -0
  456. data/db/seeds/avatars/032.jpg +0 -0
  457. data/db/seeds/avatars/033.jpg +0 -0
  458. data/db/seeds/avatars/034.jpg +0 -0
  459. data/db/seeds/avatars/035.jpg +0 -0
  460. data/db/seeds/avatars/036.jpg +0 -0
  461. data/db/seeds/avatars/037.jpg +0 -0
  462. data/db/seeds/avatars/038.jpg +0 -0
  463. data/db/seeds/avatars/039.jpg +0 -0
  464. data/db/seeds/avatars/040.jpg +0 -0
  465. data/db/seeds/avatars/041.jpg +0 -0
  466. data/db/seeds/avatars/042.jpg +0 -0
  467. data/db/seeds/avatars/043.jpg +0 -0
  468. data/db/seeds/avatars/044.jpg +0 -0
  469. data/db/seeds/avatars/045.jpg +0 -0
  470. data/db/seeds/avatars/046.jpg +0 -0
  471. data/db/seeds/avatars/047.jpg +0 -0
  472. data/db/seeds/avatars/048.jpg +0 -0
  473. data/db/seeds/avatars/049.jpg +0 -0
  474. data/db/seeds/avatars/050.jpg +0 -0
  475. data/db/seeds/avatars/051.jpg +0 -0
  476. data/db/seeds/avatars/052.jpg +0 -0
  477. data/db/seeds/avatars/053.jpg +0 -0
  478. data/db/seeds/avatars/054.jpg +0 -0
  479. data/db/seeds/avatars/055.jpg +0 -0
  480. data/db/seeds/avatars/056.jpg +0 -0
  481. data/db/seeds/avatars/057.jpg +0 -0
  482. data/db/seeds/avatars/058.jpg +0 -0
  483. data/db/seeds/avatars/059.jpg +0 -0
  484. data/db/seeds/avatars/060.jpg +0 -0
  485. data/db/seeds/avatars/061.jpg +0 -0
  486. data/db/seeds/avatars/062.jpg +0 -0
  487. data/db/seeds/avatars/063.jpg +0 -0
  488. data/db/seeds/avatars/064.jpg +0 -0
  489. data/db/seeds/avatars/065.jpg +0 -0
  490. data/db/seeds/avatars/066.jpg +0 -0
  491. data/db/seeds/avatars/067.jpg +0 -0
  492. data/db/seeds/avatars/068.jpg +0 -0
  493. data/db/seeds/avatars/069.jpg +0 -0
  494. data/db/seeds/avatars/070.jpg +0 -0
  495. data/db/seeds/avatars/071.jpg +0 -0
  496. data/db/seeds/avatars/072.jpg +0 -0
  497. data/db/seeds/avatars/073.jpg +0 -0
  498. data/db/seeds/avatars/074.jpg +0 -0
  499. data/db/seeds/avatars/075.jpg +0 -0
  500. data/db/seeds/avatars/076.jpg +0 -0
  501. data/db/seeds/avatars/077.jpg +0 -0
  502. data/db/seeds/avatars/078.jpg +0 -0
  503. data/db/seeds/avatars/079.jpg +0 -0
  504. data/db/seeds/avatars/080.jpg +0 -0
  505. data/db/seeds/avatars/081.jpg +0 -0
  506. data/db/seeds/avatars/082.jpg +0 -0
  507. data/db/seeds/avatars/083.jpg +0 -0
  508. data/db/seeds/avatars/084.jpg +0 -0
  509. data/db/seeds/avatars/085.jpg +0 -0
  510. data/db/seeds/avatars/086.jpg +0 -0
  511. data/db/seeds/avatars/087.jpg +0 -0
  512. data/db/seeds/avatars/088.jpg +0 -0
  513. data/db/seeds/avatars/089.jpg +0 -0
  514. data/db/seeds/avatars/090.jpg +0 -0
  515. data/db/seeds/avatars/091.jpg +0 -0
  516. data/db/seeds/avatars/092.jpg +0 -0
  517. data/db/seeds/avatars/093.jpg +0 -0
  518. data/db/seeds/avatars/094.jpg +0 -0
  519. data/db/seeds/avatars/095.jpg +0 -0
  520. data/db/seeds/avatars/096.jpg +0 -0
  521. data/db/seeds/avatars/097.jpg +0 -0
  522. data/db/seeds/avatars/098.jpg +0 -0
  523. data/db/seeds/avatars/099.jpg +0 -0
  524. data/db/seeds/avatars/100.jpg +0 -0
  525. data/db/seeds/avatars/CREDITS.md +114 -0
  526. data/db/seeds/avatars/README.md +25 -0
  527. data/decidim-core.gemspec +6 -5
  528. data/lib/decidim/acts_as_author.rb +1 -1
  529. data/lib/decidim/admin_filter.rb +44 -0
  530. data/lib/decidim/admin_filters_registry.rb +55 -0
  531. data/lib/decidim/amendable.rb +1 -2
  532. data/lib/decidim/api/functions/component_finder_base.rb +1 -1
  533. data/lib/decidim/api/functions/needs_api_filter_and_order.rb +3 -3
  534. data/lib/decidim/api/functions/participatory_space_finder_base.rb +1 -1
  535. data/lib/decidim/api/functions/participatory_space_list_base.rb +1 -1
  536. data/lib/decidim/api/input_filters/user_entity_input_filter.rb +3 -3
  537. data/lib/decidim/api/interfaces/author_interface.rb +1 -1
  538. data/lib/decidim/api/types/organization_type.rb +1 -1
  539. data/lib/decidim/api/types/user_group_type.rb +1 -1
  540. data/lib/decidim/api/types/user_type.rb +1 -1
  541. data/lib/decidim/asset_router/pipeline.rb +2 -2
  542. data/lib/decidim/assets/tailwind/instance.rb +1 -1
  543. data/lib/decidim/assets/tailwind/tailwind.config.js.erb +8 -3
  544. data/lib/decidim/attribute_object/model.rb +2 -2
  545. data/lib/decidim/attribute_object/type_resolver.rb +1 -3
  546. data/lib/decidim/attribute_object.rb +2 -2
  547. data/lib/decidim/attributes.rb +0 -4
  548. data/lib/decidim/authorable.rb +5 -0
  549. data/lib/decidim/command.rb +2 -2
  550. data/lib/decidim/commands/create_resource.rb +63 -0
  551. data/lib/decidim/commands/destroy_resource.rb +74 -0
  552. data/lib/decidim/commands/hook_error.rb +8 -0
  553. data/lib/decidim/commands/resource_handler.rb +85 -0
  554. data/lib/decidim/commands/update_resource.rb +64 -0
  555. data/lib/decidim/component_manifest.rb +3 -1
  556. data/lib/decidim/component_validator.rb +1 -1
  557. data/lib/decidim/content_blocks/has_related_components.rb +1 -1
  558. data/lib/decidim/content_parsers/resource_parser.rb +2 -2
  559. data/lib/decidim/content_processor.rb +1 -1
  560. data/lib/decidim/content_security_policy.rb +1 -1
  561. data/lib/decidim/core/engine.rb +12 -15
  562. data/lib/decidim/core/menu.rb +13 -3
  563. data/lib/decidim/core/seeds.rb +121 -148
  564. data/lib/decidim/core/test/factories.rb +24 -3
  565. data/lib/decidim/core/test/shared_examples/acts_as_author_examples.rb +1 -1
  566. data/lib/decidim/core/test/shared_examples/amendable/withdraw_amendment_examples.rb +2 -2
  567. data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -3
  568. data/lib/decidim/core/test/shared_examples/assembly_announcements_examples.rb +4 -4
  569. data/lib/decidim/core/test/shared_examples/comments_examples.rb +157 -81
  570. data/lib/decidim/core/test/shared_examples/comments_reports_examples.rb +4 -4
  571. data/lib/decidim/core/test/shared_examples/digest_mail_examples.rb +1 -1
  572. data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +1 -1
  573. data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +7 -7
  574. data/lib/decidim/core/test/shared_examples/fingerprint_examples.rb +1 -1
  575. data/lib/decidim/core/test/shared_examples/follows_examples.rb +3 -3
  576. data/lib/decidim/core/test/shared_examples/has_attachment_collections.rb +4 -2
  577. data/lib/decidim/core/test/shared_examples/has_attachments.rb +3 -2
  578. data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +4 -4
  579. data/lib/decidim/core/test/shared_examples/has_reference.rb +1 -1
  580. data/lib/decidim/core/test/shared_examples/logo_email.rb +2 -2
  581. data/lib/decidim/core/test/shared_examples/manage_component_share_tokens.rb +9 -9
  582. data/lib/decidim/core/test/shared_examples/map_examples.rb +5 -5
  583. data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +2 -2
  584. data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb +3 -3
  585. data/lib/decidim/core/test/shared_examples/preview_component_with_share_token_examples.rb +3 -3
  586. data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +4 -4
  587. data/lib/decidim/core/test/shared_examples/reports_examples.rb +5 -5
  588. data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +10 -10
  589. data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +1 -1
  590. data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +8 -8
  591. data/lib/decidim/core/test/shared_examples/share_link_examples.rb +2 -2
  592. data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -1
  593. data/lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb +3 -3
  594. data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +11 -11
  595. data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +2 -2
  596. data/lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb +2 -2
  597. data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
  598. data/lib/decidim/core/version.rb +1 -1
  599. data/lib/decidim/core.rb +30 -7
  600. data/lib/decidim/dependency_resolver.rb +3 -3
  601. data/lib/decidim/diffy_extension.rb +1 -1
  602. data/lib/decidim/download_your_data_serializers/download_your_data_user_serializer.rb +2 -1
  603. data/lib/decidim/engine_router.rb +2 -2
  604. data/lib/decidim/events/base_event.rb +23 -0
  605. data/lib/decidim/events/simple_event.rb +1 -0
  606. data/lib/decidim/exporters/export_manifest.rb +1 -1
  607. data/lib/decidim/faker/localized.rb +3 -3
  608. data/lib/decidim/form_builder.rb +4 -4
  609. data/lib/decidim/hashtag.rb +1 -1
  610. data/lib/decidim/jsonb_attributes.rb +4 -4
  611. data/lib/decidim/manifest_messages.rb +2 -2
  612. data/lib/decidim/organization_settings.rb +15 -7
  613. data/lib/decidim/paddable.rb +1 -1
  614. data/lib/decidim/participable.rb +1 -1
  615. data/lib/decidim/participatory_space_manifest.rb +1 -1
  616. data/lib/decidim/resourceable.rb +1 -1
  617. data/lib/decidim/search_resource_fields_mapper.rb +2 -2
  618. data/lib/decidim/searchable.rb +3 -3
  619. data/lib/decidim/seeds.rb +62 -0
  620. data/lib/decidim/stats_registry.rb +2 -2
  621. data/lib/decidim/translatable_attributes.rb +3 -3
  622. data/lib/decidim/translatable_resource.rb +1 -1
  623. data/lib/decidim/view_hooks.rb +1 -1
  624. data/lib/decidim/view_model.rb +4 -0
  625. data/lib/decidim/webpacker/esbuild.config.js +14 -0
  626. data/lib/decidim/webpacker/shakapacker.yml +2 -2
  627. data/lib/decidim/webpacker/tsconfig.json +11 -0
  628. data/lib/decidim/webpacker/webpack/custom.js +13 -35
  629. data/lib/devise/models/decidim_newsletterable.rb +1 -1
  630. data/lib/tasks/decidim_download_your_data_tasks.rake +2 -2
  631. data/lib/tasks/decidim_locales_tasks.rake +1 -1
  632. data/lib/tasks/decidim_mailers_tasks.rake +2 -2
  633. data/lib/tasks/decidim_metrics_tasks.rake +6 -6
  634. data/lib/tasks/decidim_procfile.rake +9 -3
  635. data/lib/tasks/decidim_tasks.rake +5 -4
  636. data/lib/tasks/decidim_webpacker_tasks.rake +126 -117
  637. data/lib/tasks/upgrade/decidim_active_storage_migration_tasks.rake +80 -0
  638. data/lib/tasks/upgrade/decidim_content_blocks_tasks.rake +50 -0
  639. data/lib/tasks/upgrade/decidim_deduplicate_endorsements.rake +1 -1
  640. data/lib/tasks/upgrade/decidim_fix_categorization.rake +1 -1
  641. data/lib/tasks/upgrade/decidim_fix_nickname_uniqueness.rake +1 -1
  642. data/lib/tasks/upgrade/decidim_fix_short_url_resolver.rake +1 -1
  643. data/lib/tasks/upgrade/decidim_moderation_tasks.rake +1 -1
  644. data/lib/tasks/upgrade/decidim_user_moderation.rake +1 -1
  645. metadata +208 -79
  646. data/app/cells/decidim/content_blocks/cta/show.erb +0 -12
  647. data/app/cells/decidim/content_blocks/cta_cell.rb +0 -31
  648. data/app/cells/decidim/footer_pages/pages.erb +0 -3
  649. data/app/cells/decidim/footer_pages/topics.erb +0 -12
  650. data/app/cells/decidim/footer_pages_cell.rb +0 -68
  651. data/app/packs/src/decidim/vendor/modernizr.js +0 -5
  652. data/app/queries/decidim/similar_emendations.rb +0 -56
  653. data/app/uploaders/decidim/cw/application_uploader.rb +0 -77
  654. data/app/uploaders/decidim/cw/attachment_uploader.rb +0 -56
  655. data/app/uploaders/decidim/cw/avatar_uploader.rb +0 -24
  656. data/app/uploaders/decidim/cw/banner_image_uploader.rb +0 -7
  657. data/app/uploaders/decidim/cw/download_your_data_uploader.rb +0 -15
  658. data/app/uploaders/decidim/cw/downloader.rb +0 -9
  659. data/app/uploaders/decidim/cw/hero_image_uploader.rb +0 -10
  660. data/app/uploaders/decidim/cw/homepage_image_uploader.rb +0 -14
  661. data/app/uploaders/decidim/cw/image_uploader.rb +0 -78
  662. data/app/uploaders/decidim/cw/newsletter_template_image_uploader.rb +0 -38
  663. data/app/uploaders/decidim/cw/oauth_application_logo_uploader.rb +0 -10
  664. data/app/uploaders/decidim/cw/official_image_footer_uploader.rb +0 -10
  665. data/app/uploaders/decidim/cw/official_image_header_uploader.rb +0 -10
  666. data/app/uploaders/decidim/cw/open_data_uploader.rb +0 -23
  667. data/app/uploaders/decidim/cw/organization_favicon_uploader.rb +0 -18
  668. data/app/uploaders/decidim/cw/organization_logo_uploader.rb +0 -10
  669. data/app/uploaders/decidim/cw/record_image_uploader.rb +0 -15
  670. data/app/uploaders/decidim/downloader.rb +0 -9
  671. data/app/views/decidim/amendments/compare_draft.html.erb +0 -18
  672. data/app/views/layouts/decidim/_edit_link.html.erb +0 -0
  673. data/app/views/layouts/decidim/header/_main_links_mobile.html.erb +0 -36
  674. data/config/initializers/carrierwave.rb +0 -15
  675. data/lib/decidim/carrier_wave_migrator_service.rb +0 -287
  676. data/lib/tasks/decidim_active_storage_migration_tasks.rake +0 -114
  677. data/lib/tasks/decidim_content_blocks_tasks.rake +0 -48
  678. /data/app/views/layouts/decidim/header/{_menu_breadcrumb_main_dropdown.html.erb → _menu_breadcrumb_main_dropdown_desktop.html.erb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 800e096eb86537caa7de18236fe0becf73b1c30ee38e4631888025b52e831f3a
4
- data.tar.gz: 9f05dfffcd55fcc9d4e76163a4b98c5b7e851bbdbcfe317f9a9566cb73a142d9
3
+ metadata.gz: b9d7e02680508906160916e60c9df702cacea39927e796c1a5e8c7b25a598e98
4
+ data.tar.gz: acaa0d17b9911bff8465bcc41e7617b239d3cba7db74a96d166247edd71c0952
5
5
  SHA512:
6
- metadata.gz: 97568f03aab3b39a4b75e98421a5b9e43f30f8f1c71b548478f0ee2f73c6303981643948289f9483d9cfbe71af47b872bf3e3c49d39009270e9e3ef72e55bf70
7
- data.tar.gz: 8fa7ecb28d0d2e8097124330aced622ac52fc96d6cc8d6039e629c897d29af8f79366e8992107a9d8b89c88280c723b667b345ccbc643d2326303f376abd243a
6
+ metadata.gz: 9a7d5cb4b7dd42ed7950df79a9fc55da0f00f3eca5732eb496828d8295ca47c0b3cfd60ecb7821d2496a256a4c5df452faacffbae4a84bb1824d52d8b51c2206
7
+ data.tar.gz: 1ae409446d015bba3a91cb9bf7da8b91777730e98345166f16993e9b9ae72d4137af5135a82f4b817c5193854fbd75188918b4800b44b10cee552b7bfab625df
data/README.md CHANGED
@@ -28,7 +28,7 @@ User authentication is set up with [`Devise`](https://github.com/plataformatec/d
28
28
 
29
29
  Core implements an Amendment feature that can be activated in the components. As of now, it is only implemented in the proposal component.
30
30
 
31
- This feature makes it possible for anyone to edit the text of an amendable resource and create a child resource as an amendment. This child resource may receive support and the author of the amendable resource may accept or reject the amendment (or child proposal). In case of rejection, the author of the rejected emendation may raise the child resource to an independent resource.
31
+ This feature makes it possible for anyone to edit the text of an amendable resource and create a child resource as an amendment. This child resource may receive votes and the author of the amendable resource may accept or reject the amendment (or child proposal). In case of rejection, the author of the rejected emendation may raise the child resource to an independent resource.
32
32
 
33
33
  ### Key artifacts for Amendments
34
34
 
@@ -5,7 +5,6 @@ module Decidim
5
5
  # each one.
6
6
  class ActivitiesCell < Decidim::ViewModel
7
7
  include Decidim::CardHelper
8
- include Decidim::IconHelper
9
8
  include Decidim::Core::Engine.routes.url_helpers
10
9
 
11
10
  # Since we are rendering each activity separatedly we need to trigger
@@ -7,10 +7,6 @@ module Decidim
7
7
  # tweak the necessary methods (usually `title` is enough).
8
8
  class ActivityCell < Decidim::ViewModel
9
9
  include Cell::ViewModel::Partial
10
- include Decidim::IconHelper
11
- include Decidim::ApplicationHelper
12
- include Decidim::SanitizeHelper
13
- include ActionView::Helpers::DateHelper
14
10
 
15
11
  def show
16
12
  return unless renderable?
@@ -27,6 +23,8 @@ module Decidim
27
23
 
28
24
  # The resource linked to the activity.
29
25
  def resource
26
+ return if model.blank?
27
+
30
28
  model.resource_lazy
31
29
  end
32
30
 
@@ -75,7 +73,7 @@ module Decidim
75
73
 
76
74
  # The text to show as the link to the resource.
77
75
  def resource_link_text
78
- decidim_html_escape(translated_attribute(resource.title))
76
+ decidim_escape_translated(resource.title)
79
77
  end
80
78
 
81
79
  def created_at
@@ -106,7 +104,7 @@ module Decidim
106
104
  hash << id_prefix
107
105
  hash << I18n.locale.to_s
108
106
  hash << model.class.name.underscore
109
- hash << model.cache_key_with_version
107
+ hash << model.cache_key_with_version if model.respond_to?(:cache_key_with_version)
110
108
  if (author_cell = author)
111
109
  hash.push(Digest::MD5.hexdigest(author_cell.send(:cache_hash)))
112
110
  end
@@ -157,7 +155,7 @@ module Decidim
157
155
 
158
156
  def participatory_space_link
159
157
  link_to(
160
- decidim_html_escape(translated_attribute(participatory_space.title)),
158
+ decidim_escape_translated(participatory_space.title),
161
159
  resource_locator(participatory_space).path
162
160
  )
163
161
  end
@@ -4,8 +4,6 @@ module Decidim
4
4
  # This cell renders the address of a meeting.
5
5
  class AddressCell < Decidim::ViewModel
6
6
  include Cell::ViewModel::Partial
7
- include LayoutHelper
8
- include Decidim::SanitizeHelper
9
7
 
10
8
  def show
11
9
  return render :online if options[:online]
@@ -22,15 +20,15 @@ module Decidim
22
20
  end
23
21
 
24
22
  def location_hints
25
- decidim_sanitize(translated_attribute(model.location_hints))
23
+ decidim_sanitize_translated(model.location_hints)
26
24
  end
27
25
 
28
26
  def location
29
- decidim_sanitize(translated_attribute(model.location))
27
+ decidim_sanitize_translated(model.location)
30
28
  end
31
29
 
32
30
  def address
33
- decidim_sanitize(translated_attribute(model.address))
31
+ decidim_sanitize_translated(model.address)
34
32
  end
35
33
 
36
34
  def display_start_and_end_time?
@@ -4,8 +4,6 @@ module Decidim
4
4
  module Amendable
5
5
  # This cell renders the button to amend the given resource.
6
6
  class AmendButtonCardCell < Decidim::ViewModel
7
- delegate :current_user, to: :controller, prefix: false
8
-
9
7
  def model_name
10
8
  model.model_name.human
11
9
  end
@@ -3,9 +3,7 @@
3
3
  module Decidim::Amendable
4
4
  # This cell renders the list of amendments of a resource.
5
5
  class AmendmentsCell < Decidim::ViewModel
6
- include Decidim::ApplicationHelper
7
6
  include Decidim::CardHelper
8
- include Decidim::IconHelper
9
7
 
10
8
  delegate :amendable?, :visible_emendations_for, to: :model
11
9
 
@@ -3,10 +3,8 @@
3
3
  module Decidim::Amendable
4
4
  # This cell renders the callout with information about the state of the emendation
5
5
  class AnnouncementCell < Decidim::ViewModel
6
- include Decidim::ApplicationHelper
7
-
8
6
  def show
9
- cell "decidim/announcement", announcement, callout_class: state_classes
7
+ cell "decidim/announcement", announcement, callout_class:, callout_styles:
10
8
  end
11
9
 
12
10
  private
@@ -50,17 +48,15 @@ module Decidim::Amendable
50
48
  model.amendment.updated_at
51
49
  end
52
50
 
53
- def state_classes
54
- case model.state
55
- when "accepted"
56
- "success"
57
- when "rejected", "withdrawn"
58
- "alert"
59
- when "evaluating"
60
- "warning"
61
- else
62
- "muted"
63
- end
51
+ def callout_class
52
+ return "muted" if model.state.blank?
53
+ return "alert" if model.withdrawn?
54
+ end
55
+
56
+ def callout_styles
57
+ return if model.state.blank? || model.withdrawn?
58
+
59
+ model.proposal_state&.css_style
64
60
  end
65
61
  end
66
62
  end
@@ -3,8 +3,6 @@
3
3
  module Decidim::Amendable
4
4
  # This cell renders the action buttons for coauthors to amend the given resource.
5
5
  class EmendationActionsCell < Decidim::ViewModel
6
- include Decidim::LayoutHelper
7
-
8
6
  delegate :amendment, to: :model
9
7
 
10
8
  def current_component
@@ -4,8 +4,6 @@ module Decidim
4
4
  module Amendable
5
5
  # This cell renders the button to amend the given resource.
6
6
  class PromoteButtonCardCell < Decidim::ViewModel
7
- delegate :current_user, to: :controller, prefix: false
8
-
9
7
  def emendation
10
8
  @emendation ||= model
11
9
  end
@@ -14,14 +14,10 @@ module Decidim
14
14
  # Returns the current step as Integer.
15
15
  def current_step
16
16
  @current_step ||= case params[:action].to_sym
17
- when :new, :create
17
+ when :new, :create, :edit_draft, :update_draft, :destroy_draft
18
18
  1
19
- when :compare_draft
20
- 2
21
- when :edit_draft, :update_draft, :destroy_draft
22
- 3
23
19
  when :preview_draft, :publish_draft
24
- 4
20
+ 2
25
21
  end
26
22
  end
27
23
 
@@ -47,12 +43,10 @@ module Decidim
47
43
  {
48
44
  view:,
49
45
  current_step:,
50
- total_steps: 4,
46
+ total_steps: 2,
51
47
  steps: {
52
48
  "1": i18n_step(1),
53
- "2": i18n_step(2),
54
- "3": i18n_step(3),
55
- "4": i18n_step(4)
49
+ "2": i18n_step(2)
56
50
  }
57
51
  }
58
52
  end
@@ -68,7 +62,6 @@ module Decidim
68
62
  def wizard_header_options
69
63
  {
70
64
  wizard_header_title:,
71
- wizard_header_similar_resources_count: options[:similar_resources_count],
72
65
  wizard_header_help_text:
73
66
  }
74
67
  end
@@ -86,9 +79,7 @@ module Decidim
86
79
  case current_step
87
80
  when 1
88
81
  Decidim::ResourceLocatorPresenter.new(amendable).path
89
- when 3
90
- Decidim::Core::Engine.routes.url_helpers.compare_draft_amend_path(amendment)
91
- when 4
82
+ when 2
92
83
  Decidim::Core::Engine.routes.url_helpers.edit_draft_amend_path(amendment)
93
84
  end
94
85
  end
@@ -99,11 +90,7 @@ module Decidim
99
90
  when 1
100
91
  :new
101
92
  when 2
102
- :compare_draft
103
- when 3
104
- :edit_draft
105
- when 4
106
- :preview_draft
93
+ :publish_draft
107
94
  end
108
95
 
109
96
  t("decidim.amendments.#{key}.title")
@@ -1,11 +1,11 @@
1
- <%= content_tag :div, id: options[:id], class: "flash flex-col #{css_class}", data: { announcement: "" }.compact, hidden: options[:hidden] do %>
1
+ <%= content_tag :div, id: options[:id], class: "flash flex-col #{css_class}", style: css_styles, data: { announcement: "" }.compact, hidden: options[:hidden] do %>
2
2
  <% if has_title? %>
3
3
  <div class="flash__title">
4
4
  <%= clean_title %>
5
5
  </div>
6
6
  <% end %>
7
7
 
8
- <span class="flash__message">
8
+ <div class="flash__message">
9
9
  <%= text %>
10
- </span>
10
+ </div>
11
11
  <% end %>
@@ -19,8 +19,6 @@ module Decidim
19
19
  # - `callout_class`: The Css class to apply
20
20
  #
21
21
  class AnnouncementCell < Decidim::ViewModel
22
- include Decidim::SanitizeHelper
23
-
24
22
  def show
25
23
  return if blank_content?
26
24
 
@@ -41,6 +39,12 @@ module Decidim
41
39
  has_title? ? clean_body : clean_announcement
42
40
  end
43
41
 
42
+ def css_styles
43
+ return unless options[:callout_styles]
44
+
45
+ options[:callout_styles]
46
+ end
47
+
44
48
  def css_class
45
49
  return unless options[:callout_class]
46
50
 
@@ -0,0 +1,3 @@
1
+ <div class="row column">
2
+ <%= form.upload :file, button_class: "button button__sm button__transparent-secondary" %>
3
+ </div>
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ class AttachmentsFileTabCell < Decidim::ViewModel
5
+ alias form model
6
+
7
+ def show
8
+ render :show
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ <div class="row column">
2
+ <%= form.text_field :link, aria: { label: :url }, type: :text %>
3
+
4
+ <div class="upload-modal__text">
5
+ <span class="sr-only"><%= explanation %></span>
6
+ <ul>
7
+ <% help_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ </div>
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ class AttachmentsLinkTabCell < Decidim::ViewModel
5
+ alias form model
6
+
7
+ def show
8
+ render :show
9
+ end
10
+
11
+ private
12
+
13
+ def explanation
14
+ I18n.t("decidim.forms.attachment_link.explanation")
15
+ end
16
+
17
+ def help_messages
18
+ I18n.t("decidim.forms.attachment_link.help_messages")
19
+ end
20
+ end
21
+ end
@@ -1,6 +1,6 @@
1
- <button type="button" class="link-alt" data-open="<%= current_user.present? ? "flagModal" : "loginModal" %>" title="<%= t("report", scope: "decidim.shared.flag_modal" ) %>" aria-controls="<%= current_user.present? ? "flagModal" : "loginModal" %>" aria-haspopup="true" tabindex="0">
1
+ <button type="button" data-open="<%= current_user.present? ? "flagModal" : "loginModal" %>" title="<%= t("report", scope: "decidim.shared.flag_modal" ) %>" aria-controls="<%= current_user.present? ? "flagModal" : "loginModal" %>" aria-haspopup="true" tabindex="0">
2
2
  <%= icon "flag", aria_hidden: true, class: "icon--small", role: "img", "aria-hidden": true %>
3
- <span class="show-for-sr">
3
+ <span>
4
4
  <%= t("report", scope: "decidim.shared.flag_modal" ) %>
5
5
  </span>
6
6
  </button>
@@ -1,16 +1,16 @@
1
1
  <% data = has_tooltip? ? { tooltip: render(:profile_minicard).html_safe } : nil %>
2
- <div class="author" data-author>
3
- <%= content_tag :div, class: "author__container#{" is-compact" if layout == :compact}", data: do %>
2
+ <span class="author" data-author>
3
+ <%= content_tag :span, class: "author__container#{" is-compact" if layout == :compact}", data: do %>
4
4
  <% if layout == :compact %>
5
5
  <%= render :avatar %>
6
6
 
7
- <div>
7
+ <span>
8
8
  <%= render :name %>
9
9
 
10
10
  <% context_actions.each do |action| %>
11
11
  <%= render action %>
12
12
  <% end %>
13
- </div>
13
+ </span>
14
14
  <% elsif layout == :avatar %>
15
15
  <%= render :avatar %>
16
16
  <% else %>
@@ -24,4 +24,4 @@
24
24
  <%= render action %>
25
25
  <% end %>
26
26
  <% end %>
27
- </div>
27
+ </span>
@@ -5,9 +5,7 @@ module Decidim
5
5
  # below resource titles to indicate its authorship & such, and is intended
6
6
  # for resources that have a single author.
7
7
  class AuthorCell < Decidim::ViewModel
8
- include LayoutHelper
9
8
  include CellsHelper
10
- include Decidim::SanitizeHelper
11
9
  include ::Devise::Controllers::Helpers
12
10
  include ::Devise::Controllers::UrlHelpers
13
11
  include Messaging::ConversationHelper
@@ -2,9 +2,6 @@
2
2
 
3
3
  module Decidim
4
4
  class AuthorizationModalCell < Decidim::ViewModel
5
- include LayoutHelper
6
- include Decidim::MetaTagsHelper
7
-
8
5
  delegate :authorize_action_path, to: :controller
9
6
 
10
7
  alias authorizations model
@@ -2,11 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  class BadgeCell < Decidim::ViewModel
5
- include Decidim::ApplicationHelper
6
5
  include Decidim::Core::Engine.routes.url_helpers
7
- include Decidim::IconHelper
8
-
9
- delegate :current_user, to: :controller
10
6
 
11
7
  def small
12
8
  render "small"
@@ -2,8 +2,6 @@
2
2
 
3
3
  module Decidim
4
4
  class BadgesCell < Decidim::ViewModel
5
- include Decidim::ApplicationHelper
6
- include Decidim::LayoutHelper
7
5
  include Decidim::Core::Engine.routes.url_helpers
8
6
 
9
7
  def available_badges
@@ -3,9 +3,6 @@
3
3
  module Decidim
4
4
  # This cell renders a generic button.
5
5
  class ButtonCell < Decidim::ViewModel
6
- include LayoutHelper
7
- include IconHelper
8
- include Decidim::SanitizeHelper
9
6
  include Decidim::ResourceHelper
10
7
 
11
8
  DEFAULT_ATTRIBUTES = {
@@ -1,5 +1,5 @@
1
1
  <div class="py-4 space-y-2">
2
- <a href="" class="text-lg text-secondary font-semibold hover:underline"><%= title %></a>
2
+ <a href="" class="text-lg text-secondary font-semibold hover:underline"><%= decidim_html_escape(title) %></a>
3
3
  <div class="flex items-center divide-x divide-gray-3">
4
4
  <% metadata.first(4).each do |item| %>
5
5
  <div class="flex items-center gap-1 px-4 lg:px-6 first:pl-0 last:pr-0 max-w-xs">
@@ -3,12 +3,8 @@
3
3
  module Decidim
4
4
  # This cell renders the card of the given instance of a Component
5
5
  # delegated to the components' cell if specified in the manifest
6
- # otherwise a primary cell wil be shown.
6
+ # otherwise a primary cell will be shown.
7
7
  class CardCell < Decidim::ViewModel
8
- include Decidim::ApplicationHelper
9
- include Decidim::IconHelper
10
- include ActionView::Helpers::NumberHelper
11
-
12
8
  ICONS_MAPPING = {
13
9
  published_at: "calendar-line",
14
10
  votings_count: "check-double-line",
@@ -73,11 +73,11 @@ module Decidim
73
73
  end
74
74
 
75
75
  def title
76
- decidim_html_escape(translated_attribute(resource.title))
76
+ decidim_escape_translated(resource.title)
77
77
  end
78
78
 
79
79
  def alt_title
80
- [t("decidim.application.photo.alt"), decidim_html_escape(translated_attribute(resource.title))].join(": ")
80
+ [t("decidim.application.photo.alt"), decidim_escape_translated(resource.title)].join(": ")
81
81
  end
82
82
 
83
83
  def title_tag
@@ -1 +1 @@
1
- <span class="muted"><%= searchable_resource_human_name(model.participatory_space.class, count: 1) %>:</span>&nbsp;<%= link_to translated_attribute(participatory_space.title), Decidim::ResourceLocatorPresenter.new(participatory_space).path %>
1
+ <span><%= searchable_resource_human_name(model.participatory_space.class, count: 1) %>:</span>&nbsp;<%= link_to translated_attribute(participatory_space.title), Decidim::ResourceLocatorPresenter.new(participatory_space).path %>
@@ -5,9 +5,7 @@ module Decidim
5
5
  # so other cells only have to customize a few methods or overwrite views.
6
6
  class CardLCell < Decidim::ViewModel
7
7
  include Cell::ViewModel::Partial
8
- include Decidim::ApplicationHelper
9
8
  include Decidim::TooltipHelper
10
- include Decidim::SanitizeHelper
11
9
  include Decidim::CardHelper
12
10
  include Decidim::LayoutHelper
13
11
  include Decidim::SearchesHelper
@@ -104,7 +102,7 @@ module Decidim
104
102
  end
105
103
 
106
104
  def title
107
- decidim_html_escape(translated_attribute(resource.title))
105
+ decidim_escape_translated(resource.title)
108
106
  end
109
107
 
110
108
  def title_tag
@@ -3,12 +3,12 @@
3
3
  <% hook_output = render_hook(item[:hook]) %>
4
4
  <% next if hook_output.blank? %>
5
5
 
6
- <%= content_tag :span, data: item[:data_attributes] do %>
6
+ <%= content_tag :div, data: item[:data_attributes] do %>
7
7
  <%= icon item[:icon] if item[:icon].present? %>
8
8
  <%= hook_output %>
9
9
  <% end %>
10
10
  <% else %>
11
- <%= content_tag :span, data: item[:data_attributes] do %>
11
+ <%= content_tag :div, data: item[:data_attributes] do %>
12
12
  <%= icon item[:icon] if item[:icon].present? %>
13
13
  <% if item[:text].present? %>
14
14
  <%= link_to_if enable_links? && item.has_key?(:url), item[:text], item[:url] %>
@@ -4,11 +4,7 @@ module Decidim
4
4
  # This cell is used to display metadata inside a list card
5
5
  # so other cells only have to customize a few methods or overwrite views.
6
6
  class CardMetadataCell < Decidim::ViewModel
7
- include Decidim::IconHelper
8
- include Decidim::ApplicationHelper
9
- include Decidim::SanitizeHelper
10
7
  include Decidim::DateRangeHelper
11
- include ActionView::Helpers::DateHelper
12
8
  include Cell::ViewModel::Partial
13
9
  include Decidim::ViewHooksHelper
14
10
 
@@ -33,7 +29,7 @@ module Decidim
33
29
  return unless show_space?
34
30
 
35
31
  {
36
- text: decidim_html_escape(translated_attribute(participatory_space.title)),
32
+ text: decidim_escape_translated(participatory_space.title),
37
33
  icon: resource_type_icon_key(participatory_space.class),
38
34
  url: Decidim::ResourceLocatorPresenter.new(participatory_space).path
39
35
  }
@@ -4,9 +4,6 @@ module Decidim
4
4
  # This cell is used a base for all Search cards. It holds the basic layout
5
5
  # so other cells only have to customize a few methods or overwrite views.
6
6
  class CardSCell < Decidim::ViewModel
7
- include Decidim::ApplicationHelper
8
- include Decidim::SanitizeHelper
9
-
10
7
  alias resource model
11
8
 
12
9
  def show
@@ -24,7 +21,7 @@ module Decidim
24
21
  end
25
22
 
26
23
  def title
27
- decidim_html_escape(translated_attribute(resource.title))
24
+ decidim_escape_translated(resource.title)
28
25
  end
29
26
 
30
27
  def title_tag
@@ -7,8 +7,6 @@ module Decidim
7
7
  #
8
8
  # cell("decidim/coauthorships", @proposal)
9
9
  class CoauthorshipsCell < Decidim::ViewModel
10
- include Decidim::ApplicationHelper
11
-
12
10
  def show
13
11
  if authorable?
14
12
  cell "decidim/author", presenter_for_author(model), has_actions: has_actions?, from: model
@@ -2,8 +2,6 @@
2
2
 
3
3
  module Decidim
4
4
  class CommentsButtonCell < ButtonCell
5
- delegate :current_settings, :component_settings, to: :controller
6
-
7
5
  def show
8
6
  if options.has_key?(:display)
9
7
  return render if options[:display]
@@ -1,7 +1,7 @@
1
1
  <section id="footer_sub_hero" class="home__section text-center">
2
2
  <div class="flex justify-center mb-12">
3
3
  <h2 class="title-decorator">
4
- <%= t("decidim.pages.home.footer_sub_hero.footer_sub_hero_headline", organization: current_organization.name) %>
4
+ <%= t("decidim.pages.home.footer_sub_hero.footer_sub_hero_headline", organization: current_organization_name) %>
5
5
  </h2>
6
6
  </div>
7
7
  <p class="text-lg text-gray-2">
@@ -3,9 +3,6 @@
3
3
  module Decidim
4
4
  module ContentBlocks
5
5
  class FooterSubHeroCell < Decidim::ViewModel
6
- include Decidim::IconHelper
7
-
8
- delegate :current_user, to: :controller
9
6
  end
10
7
  end
11
8
  end
@@ -2,7 +2,7 @@
2
2
  <div class="hero">
3
3
  <h1 class="hero__title">
4
4
  <% if translated_welcome_text.blank? %>
5
- <%= t("decidim.pages.home.hero.welcome", organization: current_organization.name) %>
5
+ <%= t("decidim.pages.home.hero.welcome", organization: current_organization_name) %>
6
6
  <% else %>
7
7
  <%= decidim_sanitize_admin translated_welcome_text %>
8
8
  <% end %>
@@ -4,7 +4,6 @@ module Decidim
4
4
  module ContentBlocks
5
5
  class HeroCell < Decidim::ViewModel
6
6
  include Decidim::CtaButtonHelper
7
- include Decidim::SanitizeHelper
8
7
 
9
8
  # Needed so that the `CtaButtonHelper` can work.
10
9
  def decidim_participatory_processes
@@ -3,8 +3,6 @@
3
3
  module Decidim
4
4
  module ContentBlocks
5
5
  class HighlightedContentBannerCell < Decidim::ViewModel
6
- include Decidim::SanitizeHelper
7
-
8
6
  def show
9
7
  return unless current_organization.highlighted_content_banner_enabled
10
8
 
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  </div>
40
40
  <%= link_to decidim.pages_path, class: "button button__sm md:button__lg button__secondary mt-6" do %>
41
- <%= t("more_info", scope: "decidim.pages.home.extended", resource_name: translated_attribute(current_organization.name, current_organization)) %>
41
+ <%= t("more_info", scope: "decidim.pages.home.extended", resource_name: current_organization_name) %>
42
42
  <%= icon "arrow-right-line", class: "fill-current" %>
43
43
  <% end %>
44
44
  </section>
@@ -3,7 +3,6 @@
3
3
  module Decidim
4
4
  module ContentBlocks
5
5
  class HowToParticipateCell < Decidim::ViewModel
6
- include Decidim::IconHelper
7
6
  end
8
7
  end
9
8
  end