decidim-participatory_processes 0.27.8 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cells/decidim/participatory_process_groups/content_block_cell.rb +5 -1
  4. data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data/recent_users.erb +1 -0
  5. data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb +71 -0
  6. data/app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb +30 -0
  7. data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +77 -0
  8. data/app/cells/decidim/participatory_process_groups/content_blocks/related_processes_cell.rb +47 -0
  9. data/app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb +2 -2
  10. data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +4 -4
  11. data/app/cells/decidim/participatory_processes/content_block_cell.rb +21 -0
  12. data/app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb +1 -0
  13. data/app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb +60 -0
  14. data/app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb +29 -0
  15. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +14 -27
  16. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +1 -1
  17. data/app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb +34 -0
  18. data/app/cells/decidim/participatory_processes/content_blocks/metadata_cell.rb +23 -0
  19. data/app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb +25 -0
  20. data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form/show.erb +3 -0
  21. data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb +28 -0
  22. data/app/cells/decidim/participatory_processes/content_blocks/related_processes/content.erb +1 -0
  23. data/app/cells/decidim/participatory_processes/content_blocks/related_processes_cell.rb +53 -0
  24. data/app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb +17 -0
  25. data/app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb +1 -1
  26. data/app/cells/decidim/participatory_processes/process_cell.rb +2 -2
  27. data/app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb +22 -0
  28. data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +39 -0
  29. data/app/cells/decidim/participatory_processes/process_filters/show.erb +4 -5
  30. data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +1 -1
  31. data/app/cells/decidim/participatory_processes/process_filters_cell.rb +6 -6
  32. data/app/cells/decidim/participatory_processes/process_g_cell.rb +31 -0
  33. data/app/cells/decidim/participatory_processes/process_group_cell.rb +2 -2
  34. data/app/cells/decidim/participatory_processes/process_group_g_cell.rb +23 -0
  35. data/app/cells/decidim/participatory_processes/process_group_metadata_cell.rb +46 -0
  36. data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +5 -13
  37. data/app/cells/decidim/participatory_processes/process_metadata_cell.rb +44 -0
  38. data/app/cells/decidim/participatory_processes/process_metadata_g_cell.rb +15 -0
  39. data/app/cells/decidim/participatory_processes/process_s_cell.rb +5 -25
  40. data/app/cells/decidim/participatory_processes/process_step/show.erb +48 -0
  41. data/app/cells/decidim/participatory_processes/process_step_cell.rb +30 -0
  42. data/app/cells/decidim/participatory_processes/processes/show.erb +16 -0
  43. data/app/cells/decidim/participatory_processes/processes_cell.rb +24 -0
  44. data/app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb +1 -1
  45. data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +2 -2
  46. data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +3 -1
  47. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +4 -2
  48. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +1 -1
  49. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +1 -1
  50. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb +1 -1
  51. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +1 -1
  52. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb +1 -1
  53. data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +1 -1
  54. data/app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb +1 -1
  55. data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +1 -1
  56. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +2 -2
  57. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +1 -1
  58. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +1 -1
  59. data/app/constraints/decidim/participatory_processes/current_participatory_process.rb +1 -1
  60. data/app/controllers/decidim/participatory_processes/admin/application_controller.rb +29 -0
  61. data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +2 -0
  62. data/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb +3 -1
  63. data/app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb +1 -1
  64. data/app/controllers/decidim/participatory_processes/admin/moderations_controller.rb +1 -1
  65. data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb +5 -0
  66. data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb +5 -0
  67. data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb +1 -5
  68. data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +24 -7
  69. data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +16 -0
  70. data/app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb +14 -0
  71. data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_content_blocks_controller.rb +37 -0
  72. data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb +37 -0
  73. data/app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb +9 -29
  74. data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb +1 -1
  75. data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +16 -4
  76. data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +19 -0
  77. data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +8 -91
  78. data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +3 -0
  79. data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +14 -1
  80. data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +19 -4
  81. data/app/events/decidim/participatory_process_role_assigned_event.rb +6 -6
  82. data/app/events/decidim/participatory_process_step_activated_event.rb +5 -4
  83. data/app/events/decidim/participatory_process_step_changed_event.rb +5 -4
  84. data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +1 -1
  85. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +1 -1
  86. data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +1 -1
  87. data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +2 -2
  88. data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +2 -18
  89. data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +1 -0
  90. data/app/helpers/decidim/participatory_processes/application_helper.rb +5 -0
  91. data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +37 -9
  92. data/app/helpers/decidim/participatory_processes/participatory_space_content_blocks_helper.rb +17 -0
  93. data/app/jobs/decidim/participatory_processes/change_active_step_job.rb +35 -0
  94. data/app/models/decidim/participatory_process.rb +5 -5
  95. data/app/models/decidim/participatory_process_group.rb +4 -0
  96. data/app/models/decidim/participatory_process_user_role.rb +5 -34
  97. data/app/packs/entrypoints/decidim_participatory_processes.js +0 -2
  98. data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +2 -2
  99. data/app/permissions/decidim/participatory_processes/permissions.rb +11 -15
  100. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +2 -2
  101. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +2 -2
  102. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_type_presenter.rb +2 -2
  103. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_user_role_presenter.rb +2 -2
  104. data/app/presenters/decidim/participatory_processes/admin_log/step_presenter.rb +2 -2
  105. data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +4 -40
  106. data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +0 -68
  107. data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +6 -0
  108. data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -42
  109. data/app/queries/decidim/participatory_processes/admin/admin_users.rb +1 -1
  110. data/app/queries/decidim/participatory_processes/admin/moderators.rb +1 -1
  111. data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +4 -4
  112. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +24 -29
  113. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +16 -5
  114. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +72 -50
  115. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +15 -9
  116. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +49 -54
  117. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +28 -5
  118. data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +33 -39
  119. data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb +18 -5
  120. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +18 -25
  121. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +16 -5
  122. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +54 -54
  123. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +18 -5
  124. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +2 -2
  125. data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb +6 -8
  126. data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +14 -6
  127. data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +47 -50
  128. data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +14 -6
  129. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/_form.html.erb +14 -18
  130. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +17 -6
  131. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +59 -60
  132. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +16 -5
  133. data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +193 -146
  134. data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +25 -11
  135. data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +111 -128
  136. data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +16 -9
  137. data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +6 -10
  138. data/app/views/decidim/participatory_processes/participatory_processes/_collection.html.erb +8 -0
  139. data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +21 -8
  140. data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +19 -17
  141. data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +1 -8
  142. data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +14 -128
  143. data/app/views/layouts/decidim/_process_header.html.erb +15 -26
  144. data/app/views/layouts/decidim/_process_nav_item.html.erb +6 -0
  145. data/app/views/layouts/decidim/admin/_manage_processes.html.erb +36 -0
  146. data/app/views/layouts/decidim/admin/participatory_process.html.erb +12 -14
  147. data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +23 -13
  148. data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +13 -0
  149. data/app/views/layouts/decidim/admin/participatory_process_type.html.erb +13 -11
  150. data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -8
  151. data/app/views/layouts/decidim/participatory_process.html.erb +7 -14
  152. data/config/locales/ar.yml +1 -55
  153. data/config/locales/bg.yml +0 -518
  154. data/config/locales/ca.yml +50 -70
  155. data/config/locales/cs.yml +51 -71
  156. data/config/locales/de.yml +52 -72
  157. data/config/locales/el.yml +8 -64
  158. data/config/locales/en.yml +52 -72
  159. data/config/locales/es-MX.yml +49 -69
  160. data/config/locales/es-PY.yml +49 -69
  161. data/config/locales/es.yml +49 -69
  162. data/config/locales/eu.yml +89 -112
  163. data/config/locales/fi-plain.yml +50 -70
  164. data/config/locales/fi.yml +51 -71
  165. data/config/locales/fr-CA.yml +51 -71
  166. data/config/locales/fr.yml +52 -72
  167. data/config/locales/ga-IE.yml +0 -16
  168. data/config/locales/gl.yml +0 -67
  169. data/config/locales/hu.yml +6 -66
  170. data/config/locales/id-ID.yml +1 -55
  171. data/config/locales/is-IS.yml +0 -24
  172. data/config/locales/it.yml +0 -67
  173. data/config/locales/ja.yml +51 -71
  174. data/config/locales/lb.yml +1 -153
  175. data/config/locales/lt.yml +39 -65
  176. data/config/locales/lv.yml +1 -59
  177. data/config/locales/nl.yml +0 -67
  178. data/config/locales/no.yml +0 -92
  179. data/config/locales/pl.yml +0 -124
  180. data/config/locales/pt-BR.yml +1 -113
  181. data/config/locales/pt.yml +0 -67
  182. data/config/locales/ro-RO.yml +4 -64
  183. data/config/locales/ru.yml +0 -49
  184. data/config/locales/sk.yml +1 -56
  185. data/config/locales/sl.yml +0 -7
  186. data/config/locales/sr-CS.yml +0 -4
  187. data/config/locales/sv.yml +15 -66
  188. data/config/locales/tr-TR.yml +7 -68
  189. data/config/locales/uk.yml +0 -49
  190. data/config/locales/zh-CN.yml +2 -63
  191. data/config/locales/zh-TW.yml +3 -63
  192. data/db/migrate/20220315100140_change_steps_dates_to_datetime.rb +8 -0
  193. data/lib/decidim/api/participatory_process_step_type.rb +2 -2
  194. data/lib/decidim/participatory_processes/admin_engine.rb +20 -139
  195. data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +278 -0
  196. data/lib/decidim/participatory_processes/engine.rb +13 -103
  197. data/lib/decidim/participatory_processes/menu.rb +190 -0
  198. data/lib/decidim/participatory_processes/participatory_space.rb +7 -204
  199. data/lib/decidim/participatory_processes/query_extensions.rb +2 -2
  200. data/lib/decidim/participatory_processes/seeds.rb +164 -0
  201. data/lib/decidim/participatory_processes/test/factories.rb +58 -66
  202. data/lib/decidim/participatory_processes/version.rb +1 -1
  203. data/lib/tasks/decidim_participatory_processes.rake +8 -0
  204. metadata +62 -67
  205. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb +0 -21
  206. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb +0 -18
  207. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb +0 -6
  208. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb +0 -8
  209. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb +0 -8
  210. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb +0 -60
  211. data/app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb +0 -3
  212. data/app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb +0 -13
  213. data/app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb +0 -28
  214. data/app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb +0 -15
  215. data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +0 -43
  216. data/app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb +0 -64
  217. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +0 -9
  218. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +0 -14
  219. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +0 -48
  220. data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +0 -8
  221. data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +0 -60
  222. data/app/cells/decidim/participatory_processes/process_group_s/image.erb +0 -1
  223. data/app/cells/decidim/participatory_processes/process_group_s/show.erb +0 -8
  224. data/app/cells/decidim/participatory_processes/process_m/data.erb +0 -21
  225. data/app/cells/decidim/participatory_processes/process_m/footer.erb +0 -14
  226. data/app/cells/decidim/participatory_processes/process_m/tags.erb +0 -8
  227. data/app/cells/decidim/participatory_processes/process_m_cell.rb +0 -87
  228. data/app/cells/decidim/participatory_processes/process_s/image.erb +0 -1
  229. data/app/cells/decidim/participatory_processes/process_s/show.erb +0 -14
  230. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +0 -58
  231. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_admin.rb +0 -58
  232. data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +0 -22
  233. data/app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb +0 -40
  234. data/app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb +0 -40
  235. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +0 -56
  236. data/app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb +0 -28
  237. data/app/controllers/decidim/participatory_processes/widgets_controller.rb +0 -37
  238. data/app/packs/src/decidim/participatory_processes/filters.js +0 -28
  239. data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
  240. data/app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb +0 -7
  241. data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +0 -18
  242. data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +0 -10
  243. data/app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb +0 -1
  244. data/app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb +0 -4
  245. data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +0 -39
  246. data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +0 -31
  247. data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -37
  248. data/app/views/layouts/decidim/_process_navigation.html.erb +0 -20
  249. data/config/locales/he-IL.yml +0 -1
  250. data/db/seeds/Exampledocument.pdf +0 -0
  251. data/db/seeds/city.jpeg +0 -0
  252. data/db/seeds/city2.jpeg +0 -0
  253. data/db/seeds/homepage_image.jpg +0 -0
  254. data/decidim-participatory_processes.gemspec +0 -31
@@ -1,137 +1,120 @@
1
1
  <% add_decidim_page_title(t("participatory_processes", scope: "decidim.admin.titles")) %>
2
- <% content_for :sidebar_menu_nav do %>
3
- <%= sidebar_menu(:admin_participatory_processes_menu).render %>
4
- <% end %>
2
+ <%= admin_tabs(:admin_participatory_processes_menu).render %>
5
3
 
6
- <div class="card with-overflow" id="processes">
7
- <div class="card-divider">
8
- <h2 class="card-title">
9
- <%= t("participatory_processes", scope: "decidim.admin.titles") %>
10
-
11
- <% if allowed_to? :create, :process %>
12
- <%= link_to t("actions.new_process", scope: "decidim.admin"),
13
- [:new, :participatory_process],
14
- class: "button tiny button--title" %>
15
- <% end %>
16
-
17
- <% if process_group %>
18
- <span>&lt;</span>
19
- <%= link_to translated_attribute(process_group.title),
20
- edit_participatory_process_group_path(process_group) %>
21
- <% end %>
22
-
23
- <% if allowed_to? :import, :process %>
24
- <%= link_to t("actions.import_process", scope: "decidim.admin"),
25
- new_import_path,
26
- class: "button tiny button--title" %>
27
- <% end %>
28
-
29
- <button data-toggle="process_groups" class="dropdown button tiny button--title">
30
- <%= t("actions.filter.process_groups", scope: "decidim.admin") %>
31
- </button>
32
- <div id="process_groups" class="dropdown-pane" data-position="bottom" data-dropdown data-auto-focus="true">
33
- <ul class="list-reset">
34
- <%= link_to query_params_with(decidim_participatory_process_group_id_eq: nil) do %>
35
- <li><%= t("actions.filter.all_processes", scope: "decidim.admin") %></li>
4
+ <div class="card" id="processes">
5
+ <div class="flex justify-end" data-group-filter>
6
+ <button data-toggle="process_groups" class="button button__sm button__secondary">
7
+ <%= t("actions.filter.process_groups", scope: "decidim.admin") %>
8
+ <%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %>
9
+ </button>
10
+ <div id="process_groups" class="dropdown-pane" data-position="bottom" data-dropdown data-auto-focus="true">
11
+ <ul>
12
+ <%= link_to query_params_with(decidim_participatory_process_group_id_eq: nil) do %>
13
+ <li><%= t("actions.filter.all_processes", scope: "decidim.admin") %></li>
14
+ <% end %>
15
+ <% process_groups_for_select.each do |group_title, group_id| %>
16
+ <%= link_to query_params_with(decidim_participatory_process_group_id_eq: group_id) do %>
17
+ <li><%= group_title %></li>
36
18
  <% end %>
37
- <% process_groups_for_select.each do |group_title, group_id| %>
38
- <%= link_to query_params_with(decidim_participatory_process_group_id_eq: group_id) do %>
39
- <li><%= group_title %></li>
40
- <% end %>
41
- <% end %>
42
- </ul>
43
- </div>
44
- </h2>
19
+ <% end %>
20
+ </ul>
21
+ </div>
45
22
  </div>
23
+ <% if process_group %>
24
+ <div>
25
+ <%= link_to translated_attribute(process_group.title),
26
+ edit_participatory_process_group_path(process_group) %>
27
+ </div>
28
+ <% end %>
29
+ <br>
46
30
  <%= admin_filter_selector %>
47
- <div class="card-section">
48
- <div class="table-scroll">
49
- <table class="table-list">
50
- <thead>
51
- <tr>
52
- <th>
53
- <%= sort_link(query, :title, t("models.participatory_process.fields.title", scope: "decidim.admin")) %>
54
- </th>
55
- <th>
56
- <%= sort_link(query, :created_at, t("models.participatory_process.fields.created_at", scope: "decidim.admin"), default_order: :desc) %>
57
- </th>
58
- <th>
59
- <%= sort_link(query, :private_space, t("models.participatory_process.fields.private", scope: "decidim.admin")) %>
60
- </th>
61
- <th class="table-list__actions">
62
- <%= sort_link(query, :published_at, t("models.participatory_process.fields.published", scope: "decidim.admin")) %>
63
- </th>
64
- <th></th>
65
- </tr>
66
- </thead>
67
- <tbody>
68
- <% @participatory_processes.each do |process| %>
69
- <tr>
70
- <td>
71
- <% if process.promoted? %>
72
- <span data-tooltip class="icon-state icon-highlight" data-disable-hover="false" title="<%= t("models.participatory_process.fields.promoted", scope: "decidim.admin") %>">
73
- <%= icon "star" %>
74
- </span>
75
- <% end %>
76
- <% if allowed_to? :update, :process, process: process %>
77
- <%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %><br>
78
- <% elsif allowed_to? :read, :component, process: process %>
79
- <%= link_to translated_attribute(process.title), components_path(process) %><br>
80
- <% elsif allowed_to? :preview, :process, process: process %>
81
- <%= link_to translated_attribute(process.title), decidim_participatory_processes.participatory_process_path(process) %><br>
82
- <% elsif allowed_to? :read, :moderation, process: process %>
83
- <%= link_to translated_attribute(process.title), moderations_path(process) %><br>
84
- <% else %>
85
- <%= translated_attribute(process.title) %>
86
- <% end %>
87
- </td>
88
- <td>
89
- <%= l process.created_at, format: :short %>
90
- </td>
91
- <td class="table-list__state">
92
- <% if process.private_space? %>
93
- <strong class="text-alert"><%= t("participatory_processes.index.private", scope: "decidim.admin") %></strong>
94
- <% else %>
95
- <strong class="text-success"><%= t("participatory_processes.index.public", scope: "decidim.admin") %></strong>
96
- <% end %>
97
- </td>
98
- <td class="table-list__state">
99
- <% if process.published? %>
100
- <strong class="text-success"><%= t("participatory_processes.index.published", scope: "decidim.admin") %></strong>
101
- <% else %>
102
- <strong class="text-alert"><%= t("participatory_processes.index.not_published", scope: "decidim.admin") %></strong>
103
- <% end %>
104
- </td>
105
- <td class="table-list__actions">
106
- <% if allowed_to? :create, :process, process: process %>
107
- <%= icon_link_to "data-transfer-download", participatory_process_export_path(process), t("actions.export", scope: "decidim.admin"), method: :post, class: "action-icon--export" %>
108
- <% else %>
109
- <span class="action-space icon"></span>
110
- <% end %>
31
+ </div>
32
+ <div class="table-scroll">
33
+ <table class="table-list">
34
+ <thead>
35
+ <tr>
36
+ <th>
37
+ <%= sort_link(query, :title, t("models.participatory_process.fields.title", scope: "decidim.admin")) %>
38
+ </th>
39
+ <th>
40
+ <%= sort_link(query, :created_at, t("models.participatory_process.fields.created_at", scope: "decidim.admin"), default_order: :desc) %>
41
+ </th>
42
+ <th>
43
+ <%= sort_link(query, :private_space, t("models.participatory_process.fields.private", scope: "decidim.admin")) %>
44
+ </th>
45
+ <th class="table-list__actions">
46
+ <%= sort_link(query, :published_at, t("models.participatory_process.fields.published", scope: "decidim.admin")) %>
47
+ </th>
48
+ <th>
49
+ <%= t("models.participatory_process.fields.actions", scope: "decidim.admin") %>
50
+ </th>
51
+ </tr>
52
+ </thead>
53
+ <tbody>
54
+ <% @participatory_processes.each do |process| %>
55
+ <tr>
56
+ <td>
57
+ <% if process.promoted? %>
58
+ <%= icon_with_tooltip "star-s-fill", t("models.assembly.fields.promoted", scope: "decidim.admin") %>
59
+ <% end %>
60
+ <% if allowed_to? :update, :process, process: process %>
61
+ <%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %><br>
62
+ <% else %>
63
+ <%= translated_attribute(process.title) %>
64
+ <% end %>
65
+ </td>
66
+ <td class="table-list__date">
67
+ <%= l process.created_at, format: :short %>
68
+ </td>
69
+ <td class="table-list__state">
70
+ <% if process.private_space? %>
71
+ <span><%= t("participatory_processes.index.private", scope: "decidim.admin") %></span>
72
+ <% else %>
73
+ <span><%= t("participatory_processes.index.public", scope: "decidim.admin") %></span>
74
+ <% end %>
75
+ </td>
76
+ <td class="table-list__state">
77
+ <% if process.published? %>
78
+ <span class="label success !text-sm"><%= t("participatory_processes.index.published", scope: "decidim.admin") %></span>
79
+ <% else %>
80
+ <span class="label alert !text-sm"><%= t("participatory_processes.index.unpublished", scope: "decidim.admin") %></span>
81
+ <% end %>
82
+ </td>
83
+ <td class="table-list__actions">
111
84
 
112
- <% if allowed_to? :create, :process, process: process %>
113
- <%= icon_link_to "clipboard", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
114
- <% else %>
115
- <span class="action-space icon"></span>
116
- <% end %>
85
+ <% if allowed_to? :update, :process, process: process %>
86
+ <%= icon_link_to "pencil-line", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
87
+ <% else %>
88
+ <span class="action-space icon"></span>
89
+ <% end %>
117
90
 
118
- <% if allowed_to? :update, :process, process: process %>
119
- <%= icon_link_to "pencil", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
120
- <% else %>
121
- <span class="action-space icon"></span>
122
- <% end %>
91
+ <% if allowed_to? :create, :process, process: process %>
92
+ <%= icon_link_to "download-line", participatory_process_export_path(process), t("actions.export", scope: "decidim.admin"), method: :post, class: "action-icon--export" %>
93
+ <% else %>
94
+ <span class="action-space icon"></span>
95
+ <% end %>
123
96
 
124
- <% if allowed_to? :preview, :process, process: process %>
125
- <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>
126
- <% else %>
127
- <span class="action-space icon"></span>
128
- <% end %>
129
- </td>
130
- </tr>
131
- <% end %>
132
- </tbody>
133
- </table>
134
- <%= paginate @participatory_processes, theme: "decidim" %>
135
- </div>
136
- </div>
97
+ <% if allowed_to? :create, :process, process: process %>
98
+ <%= icon_link_to "file-copy-line", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
99
+ <% else %>
100
+ <span class="action-space icon"></span>
101
+ <% end %>
102
+
103
+ <% if allowed_to? :preview, :process, process: process %>
104
+ <%= icon_link_to "eye-line", decidim_participatory_processes.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: "_blank", data: { "external-link": false } %>
105
+ <% else %>
106
+ <span class="action-space icon"></span>
107
+ <% end %>
108
+
109
+ <% if allowed_to? :read, :moderation, process: process %>
110
+ <%= icon_link_to "flag-line", moderations_path(process), t("actions.moderate", scope: "decidim.admin"), class: "action-icon--moderate" %>
111
+ <% else %>
112
+ <span class="action-space icon"></span>
113
+ <% end %>
114
+ </td>
115
+ </tr>
116
+ <% end %>
117
+ </tbody>
118
+ </table>
137
119
  </div>
120
+ <%= decidim_paginate @participatory_processes %>
@@ -1,12 +1,19 @@
1
1
  <% add_decidim_page_title(t("participatory_processes.new.title", scope: "decidim.admin")) %>
2
- <h2 class="process-title-summary">
3
- <%= t "participatory_processes.new.title", scope: "decidim.admin" %>
4
- </h2>
2
+ <div class="item_show__header">
3
+ <h2 class="item_show__header-title">
4
+ <%= t("title", scope: "decidim.admin.participatory_processes.new") %>
5
+ </h2>
6
+ </div>
5
7
 
6
- <%= decidim_form_for(@form, html: { class: "form new_participatory_process" }) do |f| %>
7
- <%= render partial: "form", object: f %>
8
-
9
- <div class="button--double form-general-submit">
10
- <%= f.submit t("participatory_processes.new.create", scope: "decidim.admin") %>
8
+ <div class="item__edit item__edit-1col">
9
+ <div class="item__edit-form">
10
+ <%= decidim_form_for(@form, html: { class: "form form-defaults new_participatory_process" }) do |f| %>
11
+ <%= render partial: "form", object: f %>
12
+ <div class="item__edit-sticky">
13
+ <div class="item__edit-sticky-container">
14
+ <%= f.submit t("participatory_processes.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
15
+ </div>
16
+ </div>
17
+ <% end %>
11
18
  </div>
12
- <% end %>
19
+ </div>
@@ -10,15 +10,11 @@
10
10
  )
11
11
  %>
12
12
 
13
- <div class="wrapper">
14
- <div class="row column">
15
- <% Decidim::ContentBlock.published.for_scope(:participatory_process_group_homepage, organization: current_organization).where(scoped_resource_id: group.id).each do |content_block| %>
16
- <% next unless content_block.manifest %>
17
- <%= cell content_block.manifest.cell, content_block %>
18
- <% end %>
19
- </div>
13
+ <div class="participatory-space__container">
14
+ <% active_content_blocks.each do |content_block| %>
15
+ <% next unless content_block.manifest %>
16
+ <%= cell content_block.manifest.cell, content_block %>
17
+ <% end %>
20
18
  </div>
21
19
 
22
- <% content_for :js_content do %>
23
- <%= javascript_pack_tag "decidim_participatory_processes" %>
24
- <% end %>
20
+ <%= append_javascript_pack_tag "decidim_participatory_processes" %>
@@ -0,0 +1,8 @@
1
+ <% date_filter_text = %w(active upcoming past all).include?(params.dig(:filter, :with_date)) ? params.dig(:filter, :with_date) : default_date_filter %>
2
+ <h2 class="h5 md:h3 decorator"><%= t(date_filter_text, scope: "decidim.participatory_processes.participatory_processes.filters.counters", count: collection.total_count) %></h2>
3
+
4
+ <div class="card__grid-grid">
5
+ <%= render(collection) %>
6
+ </div>
7
+
8
+ <%= decidim_paginate collection %>
@@ -1,9 +1,22 @@
1
- <% if current_participatory_space.private_space? %>
2
- <%= render partial: "decidim/shared/private_participatory_space", locals: { text: t("participatory_processes.show.private_space", scope: "decidim") } %>
1
+ <%= render layout:"layouts/decidim/shared/layout_center", locals: { columns: 8 } do %>
2
+ <div class="text-center py-10">
3
+ <h2 class="title-decorator inline-block text-left">
4
+ <%= t("decidim.pages.participatory_space.metrics.headline", name: translated_attribute(current_participatory_space.title)) %>
5
+ </h2>
6
+ </div>
7
+
8
+ <% if current_participatory_space.private_space? %>
9
+ <%= cell("decidim/announcement", t("participatory_processes.show.private_space", scope: "decidim"), callout_class: "alert") %>
10
+ <% end %>
11
+
12
+ <div id="metrics" class="metric__container">
13
+ <%= metrics.params %>
14
+ <%= metrics.render_charts Decidim.metrics_registry.filtered(scope: "participatory_process", sort: true) %>
15
+ </div>
16
+
17
+ <%= link_to participatory_process_path(current_participatory_space), class: "button button__sm button__text-secondary mt-10" do %>
18
+ <%= icon "arrow-left-line" %>
19
+ <span><%= t("back_to_process", scope: "decidim.participatory_processes.participatory_process_steps.index") %></span>
20
+ <% end %>
21
+
3
22
  <% end %>
4
- <div class="section" id="metrics">
5
- <%= metrics.params %>
6
- <%= metrics.medium_stats %>
7
- <%= metrics.big_stats %>
8
- <%= metrics.small_stats %>
9
- </div>
@@ -8,28 +8,30 @@ edit_link(
8
8
  )
9
9
  %>
10
10
 
11
- <%= participatory_space_wrapper do %>
11
+ <%= append_stylesheet_pack_tag "decidim_participatory_processes", media: "all" %>
12
+ <%= append_javascript_pack_tag "decidim_participatory_processes" %>
13
+
14
+ <% content_for :aside do %>
15
+ <h1 class="title-decorator"><%= component_name %></h1>
16
+
17
+ <%= render partial: "decidim/shared/filters", locals: { filter_sections:, skip_to_id: "processes-grid" } %>
18
+ <% end %>
19
+
20
+ <%= render layout:"layouts/decidim/shared/layout_two_col" do %>
21
+
22
+ <%= participatory_space_floating_help %>
23
+
12
24
  <% if promoted_collection.any? %>
13
- <section id="highlighted-processes" class="row section">
14
- <h1 class="section-heading"><%= t("participatory_processes.index.promoted_processes", scope: "layouts.decidim") %></h1>
25
+ <section id="highlighted-processes" class="layout-main__section layout-main__heading">
26
+ <h2 class="h5 md:h3 decorator"><%= t("participatory_processes.index.promoted_processes", scope: "layouts.decidim") %></h2>
27
+
15
28
  <% promoted_collection.each do |promoted_item| %>
16
- <%= render_highlighted_partial_for promoted_item %>
29
+ <%= card_for promoted_item, highlight: true, size: :g %>
17
30
  <% end %>
18
31
  </section>
19
32
  <% end %>
20
33
 
21
- <section id="processes-grid" class="section row collapse">
22
- <div class="processes-grid-order-by">
23
- <%= render partial: "order_by_processes" %>
24
- </div>
25
- <%= render partial: "decidim/shared/participatory_space_filters/show" %>
26
- <p class="loading"><%= t(".loading") %></p>
27
- <div class="row small-up-1 medium-up-2 large-up-3 card-grid">
28
- <%= render(collection) %>
29
- </div>
34
+ <section id="processes-grid" class="layout-main__section layout-main__heading">
35
+ <%= render partial: "collection" %>
30
36
  </section>
31
37
  <% end %>
32
-
33
- <% content_for :js_content do %>
34
- <%= javascript_pack_tag "decidim_participatory_processes" %>
35
- <% end %>
@@ -1,8 +1 @@
1
- var $grid = $('#processes-grid');
2
- var $order_by_filters = $grid.find('.processes-grid-order-by');
3
- var $loading = $grid.find('.loading');
4
-
5
- $grid.find('.card-grid').html('<%= j(render(collection)).strip.html_safe %>');
6
- $order_by_filters.html('<%= j(render(partial: "decidim/participatory_processes/participatory_processes/order_by_processes", locals: { include_filter: true })).strip.html_safe %>');
7
- $order_by_filters.foundation();
8
- $loading.hide();
1
+ $('#processes-grid').html('<%= j(render(partial: "collection")).strip.html_safe %>');
@@ -14,140 +14,26 @@
14
14
  )
15
15
  %>
16
16
 
17
- <%= participatory_space_floating_help %>
18
-
17
+ <%# NOTE: this elements goes outside of the .participatory-space__container block %>
19
18
  <% if current_participatory_space.private_space? %>
20
- <%= render partial: "decidim/shared/private_participatory_space",
21
- locals: { text: t("private_space", scope: "decidim.participatory_processes.show") } %>
19
+ <section class="participatory-space__block-reference alert">
20
+ <%= t("private_space", scope: "decidim.participatory_processes.show") %>
21
+ </section>
22
22
  <% end %>
23
23
 
24
- <%= cell("decidim/announcement", current_participatory_space.announcement) %>
25
-
26
- <div class="row column">
27
- <div class="row">
28
- <div class="columns medium-7 mediumlarge-8">
29
- <div class="section">
30
- <h2 class="show-for-sr"><%= t(".title") %></h2>
31
- <% if participatory_process_group.present? %>
32
- <%= render partial: "participatory_process_group" %>
33
- <% end %>
34
- <div class="lead">
35
- <%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %>
36
- </div>
37
- <%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %>
38
- </div>
39
- <%= attachments_for current_participatory_space %>
40
- <%= render_hook(:participatory_space_highlighted_elements) %>
41
-
42
- <% if related_processes.any? %>
43
- <div class="section row collapse related_processes">
44
- <h4 class="section-heading"><%= t "related_processes", scope: "decidim.participatory_processes.show" %></h4>
45
- <div class="collapsible-list row small-up-1 medium-up-2 card-grid">
46
- <% related_processes.each do |related_process| %>
47
- <%= card_for(related_process) %>
48
- <% end %>
49
- </div>
50
- </div>
51
- <% end %>
52
-
53
- <% if linked_assemblies.any? %>
54
- <div class="section">
55
- <h4 class="section-heading"><%= t("participatory_process.show.related_assemblies", scope: "decidim") %></h4>
56
- <div class="row small-up-1 medium-up-2 card-grid">
57
- <% linked_assemblies.each do |linked_assembly| %>
58
- <%= card_for(linked_assembly) %>
59
- <% end %>
60
- </div>
61
- </div>
62
- <% end %>
63
-
64
- </div>
65
- <div class="section columns medium-5 mediumlarge-4 large-3">
66
- <div class="card extra">
67
- <div class="card__content">
68
- <%= render partial: "decidim/shared/follow_button",
69
- locals: { followable: current_participatory_space, large: false } %>
70
- </div>
71
- </div>
72
- <div class="card extra definition-data">
73
- <% if translated_attribute(current_participatory_space.participatory_scope).present? %>
74
- <div class="definition-data__item participatory_scope">
75
- <span class="definition-data__title"><%= t("participatory_scope", scope: "decidim.participatory_processes.show") %></span>
76
- <%= translated_attribute(current_participatory_space.participatory_scope) %>
77
- </div>
78
- <% end %>
79
-
80
- <% if translated_attribute(current_participatory_space.target).present? %>
81
- <div class="definition-data__item target">
82
- <span class="definition-data__title"><%= t("target", scope: "decidim.participatory_processes.show") %></span>
83
- <%= translated_attribute(current_participatory_space.target) %>
84
- </div>
85
- <% end %>
86
-
87
- <% if translated_attribute(current_participatory_space.participatory_structure).present? %>
88
- <div class="definition-data__item participatory_structure">
89
- <span class="definition-data__title"><%= t("participatory_structure", scope: "decidim.participatory_processes.show") %></span>
90
- <%= translated_attribute(current_participatory_space.participatory_structure) %>
91
- </div>
92
- <% end %>
24
+ <div class="participatory-space__container">
93
25
 
94
- <% area = current_participatory_space.area %>
95
- <% if translated_attribute(area&.name).present? %>
96
- <div class="definition-data__item area">
97
- <span class="definition-data__title"><%= t("area", scope: "decidim.participatory_processes.show") %></span>
98
- <% if translated_attribute(area.area_type&.name).present? %>
99
- <%= translated_attribute(area.area_type.name) %><span>&#45;</span>
100
- <% end %>
101
- <%= translated_attribute(area.name) %>
102
- </div>
103
- <% end %>
26
+ <%= participatory_space_floating_help %>
27
+ <%= cell "decidim/participatory_processes/process_step", current_participatory_space, display_steps: params[:display_steps] %>
104
28
 
105
- <% if translated_attribute(current_participatory_space.meta_scope).present? %>
106
- <div class="definition-data__item scope">
107
- <span class="definition-data__title"><%= t("scope", scope: "decidim.participatory_processes.show") %></span>
108
- <%= translated_attribute(current_participatory_space.meta_scope) %>
109
- </div>
110
- <% end %>
29
+ <% active_content_blocks.each do |content_block| %>
30
+ <% next unless content_block.manifest %>
111
31
 
112
- <% if translated_attribute(current_participatory_space.local_area).present? %>
113
- <div class="definition-data__item local_area">
114
- <span class="definition-data__title"><%= t("local_area", scope: "decidim.participatory_processes.show") %></span>
115
- <%= translated_attribute(current_participatory_space.local_area) %>
116
- </div>
117
- <% end %>
118
-
119
- <% if translated_attribute(current_participatory_space.developer_group).present? %>
120
- <div class="definition-data__item developer-group">
121
- <span class="definition-data__title"><%= t("developer_group", scope: "decidim.participatory_processes.show") %></span>
122
- <%= translated_attribute(current_participatory_space.developer_group) %>
123
- </div>
124
- <% end %>
125
-
126
- <% if current_participatory_space.start_date.present? %>
127
- <div class="definition-data__item start-date">
128
- <span class="definition-data__title"><%= t("start_date", scope: "decidim.participatory_processes.show") %></span>
129
- <%== l(current_participatory_space.start_date, format: :long) %>
130
- </div>
131
- <% end %>
132
-
133
- <% if current_participatory_space.end_date.present? %>
134
- <div class="definition-data__item end-date">
135
- <span class="definition-data__title"><%= t("end_date", scope: "decidim.participatory_processes.show") %></span>
136
- <%== l(current_participatory_space.end_date, format: :long) %>
137
- </div>
138
- <% end %>
139
- </div>
140
- <%= resource_reference(current_participatory_space) %>
141
- <%= render partial: "decidim/shared/share_modal" %>
142
- <%= embed_modal_for participatory_process_widget_url(current_participatory_space, format: :js) %>
143
- </div>
144
- </div>
145
-
146
- <% if current_participatory_space.show_statistics? %>
147
- <%= cell "decidim/statistics", stats.collection %>
32
+ <%= cell content_block.manifest.cell, content_block %>
148
33
  <% end %>
149
34
 
150
- <% if current_participatory_space.show_metrics? %>
151
- <%= render partial: "metrics" %>
152
- <% end %>
153
35
  </div>
36
+
37
+ <section class="participatory-space__block-reference">
38
+ <%= resource_reference(current_participatory_space) %>
39
+ </section>
@@ -1,28 +1,17 @@
1
- <div class="process-header">
2
- <div class="process-header__inner">
3
- <div class="row column process-header__main"
4
- style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');">
5
- </div>
6
- <div class="process-header__container row collapse column">
7
- <div class="columns mediumlarge-8 process-header__info">
8
- <div>
9
- <h1 class="text-highlight heading2">
10
- <%= translated_attribute(current_participatory_space.title) %>
11
- </h1>
12
- </div>
13
- <div>
14
- <p class="text-highlight heading-small">
15
- <% if current_participatory_space.hashtag.present? %>
16
- <span class="process-header__hashtag">
17
- <%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", twitter_hashtag_url(decidim_html_escape(current_participatory_space.hashtag)), target: "_blank" %>
18
- </span>
19
- <% end %>
20
- <%= translated_attribute(current_participatory_space.subtitle) %>
21
- </p>
22
- </div>
23
- </div>
24
- <%= render partial: "layouts/decidim/process_header_steps", locals: { participatory_process: current_participatory_space } %>
1
+ <section style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');">
2
+ <div class="process__hero">
3
+ <div class="process__hero-text">
4
+ <h1 class="h1 text-5xl">
5
+ <%= translated_attribute(current_participatory_space.title) %>
6
+ </h1>
7
+ <p class="process__hero-slogan">
8
+ <% if current_participatory_space.hashtag.present? %>
9
+ <span>
10
+ <%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", twitter_hashtag_url(decidim_html_escape(current_participatory_space.hashtag)), target: "_blank" %>
11
+ </span>
12
+ <% end %>
13
+ <%= translated_attribute(current_participatory_space.subtitle) %>
14
+ </p>
25
15
  </div>
26
16
  </div>
27
- <%= render partial: "layouts/decidim/process_navigation", locals: { participatory_space: current_participatory_space } %>
28
- </div>
17
+ </section>
@@ -0,0 +1,6 @@
1
+ <li>
2
+ <%= link_to item[:url], class: "process__nav-item" do %>
3
+ <%= item[:name] %>
4
+ <%= icon "arrow-right-line" %>
5
+ <% end %>
6
+ </li>