decidim-admin 0.28.4 → 0.29.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -0
  3. data/app/cells/decidim/admin/content_block_cell.rb +0 -1
  4. data/app/cells/decidim/admin/results_per_page/show.erb +2 -2
  5. data/app/cells/decidim/admin/results_per_page_cell.rb +0 -2
  6. data/app/commands/decidim/admin/create_area.rb +4 -32
  7. data/app/commands/decidim/admin/create_area_type.rb +4 -33
  8. data/app/commands/decidim/admin/create_attachment.rb +5 -4
  9. data/app/commands/decidim/admin/create_attachment_collection.rb +3 -3
  10. data/app/commands/decidim/admin/create_category.rb +4 -37
  11. data/app/commands/decidim/admin/create_component.rb +7 -40
  12. data/app/commands/decidim/admin/create_newsletter.rb +11 -29
  13. data/app/commands/decidim/admin/create_participatory_space_private_user.rb +4 -4
  14. data/app/commands/decidim/admin/create_scope.rb +15 -32
  15. data/app/commands/decidim/admin/create_scope_type.rb +3 -32
  16. data/app/commands/decidim/admin/create_static_page.rb +6 -47
  17. data/app/commands/decidim/admin/create_static_page_topic.rb +4 -26
  18. data/app/commands/decidim/admin/deliver_newsletter.rb +4 -5
  19. data/app/commands/decidim/admin/destroy_area.rb +2 -25
  20. data/app/commands/decidim/admin/destroy_category.rb +4 -29
  21. data/app/commands/decidim/admin/destroy_component.rb +5 -43
  22. data/app/commands/decidim/admin/destroy_newsletter.rb +2 -30
  23. data/app/commands/decidim/admin/destroy_participatory_space_private_user.rb +5 -32
  24. data/app/commands/decidim/admin/destroy_scope.rb +6 -33
  25. data/app/commands/decidim/admin/officialize_user.rb +1 -1
  26. data/app/commands/decidim/admin/participatory_space/create_admin.rb +4 -4
  27. data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +5 -4
  28. data/app/commands/decidim/admin/promote_managed_user.rb +4 -5
  29. data/app/commands/decidim/admin/unofficialize_user.rb +1 -1
  30. data/app/commands/decidim/admin/update_area.rb +2 -41
  31. data/app/commands/decidim/admin/update_area_type.rb +2 -42
  32. data/app/commands/decidim/admin/update_attachment.rb +10 -7
  33. data/app/commands/decidim/admin/update_attachment_collection.rb +3 -3
  34. data/app/commands/decidim/admin/update_category.rb +2 -45
  35. data/app/commands/decidim/admin/update_component.rb +4 -5
  36. data/app/commands/decidim/admin/update_component_permissions.rb +3 -3
  37. data/app/commands/decidim/admin/{update_external_domain_whitelist.rb → update_external_domain_allowlist.rb} +6 -5
  38. data/app/commands/decidim/admin/update_help_sections.rb +6 -3
  39. data/app/commands/decidim/admin/update_newsletter.rb +8 -8
  40. data/app/commands/decidim/admin/update_organization.rb +9 -53
  41. data/app/commands/decidim/admin/update_organization_appearance.rb +10 -81
  42. data/app/commands/decidim/admin/update_scope.rb +7 -40
  43. data/app/commands/decidim/admin/update_scope_type.rb +2 -42
  44. data/app/commands/decidim/admin/update_static_page.rb +5 -46
  45. data/app/commands/decidim/admin/update_static_page_topic.rb +2 -43
  46. data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
  47. data/app/controllers/concerns/decidim/admin/content_blocks/landing_page.rb +2 -2
  48. data/app/controllers/concerns/decidim/admin/filterable.rb +79 -4
  49. data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +1 -1
  50. data/app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb +0 -7
  51. data/app/controllers/concerns/decidim/admin/paginable.rb +20 -0
  52. data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +1 -1
  53. data/app/controllers/decidim/admin/application_controller.rb +2 -1
  54. data/app/controllers/decidim/admin/area_types_controller.rb +8 -9
  55. data/app/controllers/decidim/admin/areas_controller.rb +1 -1
  56. data/app/controllers/decidim/admin/authorization_workflows_controller.rb +1 -1
  57. data/app/controllers/decidim/admin/categories_controller.rb +2 -2
  58. data/app/controllers/decidim/admin/component_permissions_controller.rb +1 -1
  59. data/app/controllers/decidim/admin/components_controller.rb +2 -2
  60. data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +2 -2
  61. data/app/controllers/decidim/admin/concerns/has_attachments.rb +2 -2
  62. data/app/controllers/decidim/admin/concerns/has_private_users.rb +1 -1
  63. data/app/controllers/decidim/admin/concerns/has_private_users_csv_import.rb +1 -1
  64. data/app/controllers/decidim/admin/conflicts_controller.rb +5 -13
  65. data/app/controllers/decidim/admin/help_sections_controller.rb +1 -1
  66. data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +1 -1
  67. data/app/controllers/decidim/admin/moderations/reports_controller.rb +4 -4
  68. data/app/controllers/decidim/admin/moderations_controller.rb +7 -7
  69. data/app/controllers/decidim/admin/newsletter_templates_controller.rb +1 -1
  70. data/app/controllers/decidim/admin/newsletters_controller.rb +5 -5
  71. data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -1
  72. data/app/controllers/decidim/admin/organization_controller.rb +1 -1
  73. data/app/controllers/decidim/admin/{organization_external_domain_whitelist_controller.rb → organization_external_domain_allowlist_controller.rb} +7 -7
  74. data/app/controllers/decidim/admin/scope_types_controller.rb +7 -8
  75. data/app/controllers/decidim/admin/scopes_controller.rb +1 -1
  76. data/app/controllers/decidim/admin/share_tokens_controller.rb +1 -1
  77. data/app/controllers/decidim/admin/static_page_topics_controller.rb +2 -2
  78. data/app/controllers/decidim/admin/static_pages_controller.rb +2 -2
  79. data/app/forms/decidim/admin/attachment_form.rb +7 -1
  80. data/app/forms/decidim/admin/organization_appearance_form.rb +0 -3
  81. data/app/forms/decidim/admin/{organization_external_domain_whitelist_form.rb → organization_external_domain_allowlist_form.rb} +3 -3
  82. data/app/forms/decidim/admin/organization_form.rb +2 -2
  83. data/app/forms/decidim/admin/static_page_form.rb +0 -1
  84. data/app/helpers/decidim/admin/application_helper.rb +0 -13
  85. data/app/helpers/decidim/admin/filterable_helper.rb +19 -3
  86. data/app/helpers/decidim/admin/moderations/reports_helper.rb +3 -1
  87. data/app/helpers/decidim/admin/newsletters_helper.rb +3 -3
  88. data/app/helpers/decidim/admin/paginable/per_page_helper.rb +22 -0
  89. data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +2 -2
  90. data/app/packs/entrypoints/decidim_admin.js +4 -1
  91. data/app/packs/src/decidim/admin/application.js +19 -15
  92. data/app/packs/src/decidim/admin/css_preview.js +39 -0
  93. data/app/packs/src/decidim/admin/form.js +18 -1
  94. data/app/packs/src/decidim/admin/participatory_space_search.js +1 -1
  95. data/app/packs/src/decidim/admin/proposal_infinite_edit.js +2 -2
  96. data/app/packs/src/decidim/admin/sync_radio_buttons.js +27 -0
  97. data/app/packs/src/decidim/admin/text_copy.js +19 -0
  98. data/app/packs/stylesheets/decidim/admin/_cards.scss +1 -1
  99. data/app/packs/stylesheets/decidim/admin/_datepicker.scss +62 -0
  100. data/app/packs/stylesheets/decidim/admin/_item_edit.scss +1 -1
  101. data/app/packs/stylesheets/decidim/admin/_item_show.scss +8 -0
  102. data/app/packs/stylesheets/decidim/admin/_proposal_status.scss +5 -0
  103. data/app/packs/stylesheets/decidim/admin/application.scss +2 -0
  104. data/app/permissions/decidim/admin/permissions.rb +2 -2
  105. data/app/queries/decidim/admin/user_filter.rb +4 -4
  106. data/app/queries/decidim/admin/user_groups_evaluation.rb +1 -1
  107. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  108. data/app/views/decidim/admin/attachments/_form.html.erb +21 -2
  109. data/app/views/decidim/admin/attachments/index.html.erb +2 -2
  110. data/app/views/decidim/admin/authorization_workflows/index.html.erb +26 -8
  111. data/app/views/decidim/admin/block_user/new.html.erb +1 -1
  112. data/app/views/decidim/admin/categories/index.html.erb +2 -2
  113. data/app/views/decidim/admin/components/_form.html.erb +1 -1
  114. data/app/views/decidim/admin/components/index.html.erb +1 -5
  115. data/app/views/decidim/admin/conflicts/index.html.erb +6 -29
  116. data/app/views/decidim/admin/dashboard/_pending_moderations.html.erb +1 -1
  117. data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
  118. data/app/views/decidim/admin/exports/_dropdown.html.erb +6 -6
  119. data/app/views/decidim/admin/impersonatable_users/index.html.erb +3 -3
  120. data/app/views/decidim/admin/imports/_dropdown.html.erb +5 -7
  121. data/app/views/decidim/admin/imports/new.html.erb +6 -7
  122. data/app/views/decidim/admin/logs/_filters.html.erb +3 -3
  123. data/app/views/decidim/admin/managed_users/promotions/new.html.erb +1 -1
  124. data/app/views/decidim/admin/moderated_users/index.html.erb +2 -2
  125. data/app/views/decidim/admin/moderations/index.html.erb +5 -5
  126. data/app/views/decidim/admin/moderations/reports/index.html.erb +6 -6
  127. data/app/views/decidim/admin/moderations/reports/show.html.erb +4 -4
  128. data/app/views/decidim/admin/newsletter_templates/index.html.erb +2 -2
  129. data/app/views/decidim/admin/newsletter_templates/show.html.erb +7 -7
  130. data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
  131. data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +6 -7
  132. data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
  133. data/app/views/decidim/admin/organization/_form.html.erb +3 -3
  134. data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +0 -3
  135. data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +5 -5
  136. data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +3 -3
  137. data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_external_domain.html.erb +4 -4
  138. data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_form.html.erb +2 -2
  139. data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/edit.html.erb +2 -2
  140. data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +1 -1
  141. data/app/views/decidim/admin/participatory_space_private_users_csv_imports/new.html.erb +1 -1
  142. data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +1 -1
  143. data/app/views/decidim/admin/shared/_adjacent_navigation.html.erb +30 -0
  144. data/app/views/decidim/admin/shared/_admin_confirm_modal.html.erb +7 -7
  145. data/app/views/decidim/admin/shared/_filters.html.erb +1 -1
  146. data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
  147. data/app/views/decidim/admin/shared/landing_page/_content_blocks.html.erb +2 -2
  148. data/app/views/decidim/admin/static_page_topics/index.html.erb +1 -1
  149. data/app/views/decidim/admin/static_pages/_form.html.erb +0 -4
  150. data/app/views/decidim/admin/users_statistics/_users_count.html.erb +2 -2
  151. data/app/views/layouts/decidim/admin/_admin_timeout_modal.html.erb +2 -2
  152. data/app/views/layouts/decidim/admin/_application.html.erb +4 -4
  153. data/app/views/layouts/decidim/admin/_callouts_full.html.erb +1 -1
  154. data/app/views/layouts/decidim/admin/_js_configuration.html.erb +3 -1
  155. data/app/views/layouts/decidim/admin/_title_bar.html.erb +2 -2
  156. data/app/views/layouts/decidim/admin/_title_bar_responsive.html.erb +2 -2
  157. data/config/locales/ar.yml +0 -7
  158. data/config/locales/bg.yml +15 -12
  159. data/config/locales/ca.yml +18 -15
  160. data/config/locales/cs.yml +15 -17
  161. data/config/locales/de.yml +15 -12
  162. data/config/locales/el.yml +0 -12
  163. data/config/locales/en.yml +16 -13
  164. data/config/locales/es-MX.yml +16 -13
  165. data/config/locales/es-PY.yml +16 -13
  166. data/config/locales/es.yml +18 -15
  167. data/config/locales/eu.yml +16 -13
  168. data/config/locales/fi-plain.yml +15 -12
  169. data/config/locales/fi.yml +19 -16
  170. data/config/locales/fr-CA.yml +14 -11
  171. data/config/locales/fr.yml +13 -10
  172. data/config/locales/ga-IE.yml +0 -3
  173. data/config/locales/gl.yml +0 -5
  174. data/config/locales/hu.yml +9 -10
  175. data/config/locales/id-ID.yml +0 -3
  176. data/config/locales/is-IS.yml +0 -3
  177. data/config/locales/it.yml +0 -8
  178. data/config/locales/ja.yml +18 -15
  179. data/config/locales/kaa.yml +0 -3
  180. data/config/locales/ko.yml +0 -6
  181. data/config/locales/lb.yml +0 -8
  182. data/config/locales/lt.yml +0 -13
  183. data/config/locales/lv.yml +0 -3
  184. data/config/locales/nl.yml +0 -8
  185. data/config/locales/no.yml +0 -8
  186. data/config/locales/pl.yml +14 -9
  187. data/config/locales/pt-BR.yml +8 -13
  188. data/config/locales/pt.yml +0 -8
  189. data/config/locales/ro-RO.yml +3 -21
  190. data/config/locales/ru.yml +0 -3
  191. data/config/locales/sk.yml +0 -3
  192. data/config/locales/sq-AL.yml +0 -3
  193. data/config/locales/sr-CS.yml +0 -3
  194. data/config/locales/sv.yml +207 -355
  195. data/config/locales/th-TH.yml +0 -3
  196. data/config/locales/tr-TR.yml +0 -5
  197. data/config/locales/uk.yml +0 -3
  198. data/config/locales/zh-CN.yml +0 -3
  199. data/config/locales/zh-TW.yml +0 -12
  200. data/config/routes.rb +1 -1
  201. data/decidim-admin.gemspec +1 -1
  202. data/lib/decidim/admin/import/creator.rb +1 -1
  203. data/lib/decidim/admin/import/importer_factory.rb +2 -2
  204. data/lib/decidim/admin/menu.rb +4 -4
  205. data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +3 -2
  206. data/lib/decidim/admin/test/commands/create_category_examples.rb +4 -2
  207. data/lib/decidim/admin/test/commands/update_attachment_collection_examples.rb +3 -2
  208. data/lib/decidim/admin/test/commands/update_category_examples.rb +3 -2
  209. data/lib/decidim/admin/test/filterable_examples.rb +5 -3
  210. data/lib/decidim/admin/test/filters_participatory_space_user_roles_examples.rb +5 -5
  211. data/lib/decidim/admin/test/invite_participatory_space_admins_shared_examples.rb +1 -1
  212. data/lib/decidim/admin/test/invite_participatory_space_users_shared_context.rb +0 -1
  213. data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +12 -12
  214. data/lib/decidim/admin/test/manage_attachments_examples.rb +52 -28
  215. data/lib/decidim/admin/test/manage_categories_examples.rb +13 -13
  216. data/lib/decidim/admin/test/manage_component_permissions_examples.rb +5 -5
  217. data/lib/decidim/admin/test/manage_hide_content_examples.rb +4 -4
  218. data/lib/decidim/admin/test/manage_moderations_examples.rb +21 -21
  219. data/lib/decidim/admin/test/manage_paginated_collection_examples.rb +5 -5
  220. data/lib/decidim/admin/test/manage_participatory_space_publications_examples.rb +2 -2
  221. data/lib/decidim/admin/version.rb +1 -1
  222. data/lib/decidim/admin.rb +15 -0
  223. metadata +27 -24
  224. data/app/commands/decidim/admin/destroy_share_token.rb +0 -46
  225. data/app/commands/decidim/admin/destroy_static_page.rb +0 -40
  226. data/app/commands/decidim/admin/destroy_static_page_topic.rb +0 -40
  227. data/app/controllers/concerns/decidim/admin/verification_conflicts/filterable.rb +0 -31
  228. data/app/views/layouts/decidim/admin/login.html.erb +0 -19
  229. /data/app/packs/src/decidim/admin/{external_domain_whitelist.js → external_domain_allowlist.js} +0 -0
@@ -22,14 +22,14 @@
22
22
  <div class="card-section">
23
23
  <div class="row column">
24
24
  <% if current_user.admin? %>
25
- <div class="grid-x grid-padding-x">
25
+ <div class="grid-x">
26
26
  <div class="cell small-12" id="send_newsletter_to_all_users">
27
27
  <%= f.check_box :send_to_all_users, help_text: t(".all_users_help") %>
28
28
  </div>
29
29
  </div>
30
- <hr class="mt-s mb-s">
30
+ <hr>
31
31
  <% end %>
32
- <div class="grid-x grid-padding-x">
32
+ <div class="grid-x">
33
33
  <div class="cell small-12 medium-6" id="send_newsletter_to_followers">
34
34
  <%= f.check_box :send_to_participants, help_text: t(".participants_help") %>
35
35
  </div>
@@ -54,14 +54,13 @@
54
54
  </div>
55
55
 
56
56
  <% if current_user.admin? %>
57
- <div class="card mb-2">
57
+ <div class="card">
58
58
  <div class="card-divider">
59
59
  <h2 class="card-title"><%= t ".select_scopes" %></h2>
60
60
  </div>
61
61
  <div class="card-section">
62
- <div class="cell small-12 medium-6 m-4">
63
- <%= scopes_select_field f, :scope_ids, options: { include_blank: false }, html_options: { class: "chosen-select", multiple: true, size: 5 } %>
64
- <span class="help-text"> <%= t(".scopes_help") %> </span>
62
+ <div class="row column">
63
+ <%= scopes_picker_filter f, :scope_ids, help_text: t(".scopes_help") %>
65
64
  </div>
66
65
  </div>
67
66
  </div>
@@ -21,7 +21,7 @@
21
21
  <dt class="font-bold"><%= t("models.newsletter.fields.sent_to", scope: "decidim.admin") %></dt>
22
22
  <dd><%= selective_newsletter_to newsletter %></dd>
23
23
  </dl>
24
- <iframe src="<%= preview_newsletter_path(@newsletter) %>" class="email-preview w-full h-[60lvh]">
24
+ <iframe src="<%= preview_newsletter_path(@newsletter) %>" class="w-full h-[60lvh]" data-email-preview>
25
25
  </iframe>
26
26
  </div>
27
27
  </div>
@@ -3,7 +3,7 @@
3
3
  <div class="card-section">
4
4
  <div class="row column">
5
5
  <div class="columns">
6
- <%= form.text_field :name %>
6
+ <%= form.translated :text_field, :name %>
7
7
  </div>
8
8
 
9
9
  <div class="columns">
@@ -14,7 +14,7 @@
14
14
  <ul class="tabs tabs--lang" data-tabs id="organization_social_handlers">
15
15
  <% first_handler = Decidim::Organization::SOCIAL_HANDLERS.first %>
16
16
  <% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
17
- <li class="tabs-title <% if handler == first_handler %> is-active <% end %>">
17
+ <li class="tabs-title <%= " is-active" if handler == first_handler %>">
18
18
  <a href="#<%= handler %>" <% if handler == first_handler %> aria-selected="true" <% end %>>
19
19
  <%= t(".#{handler}") %>
20
20
  </a>
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  <div class="tabs-content" data-tabs-content="organization_social_handlers">
26
26
  <% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
27
- <div class="tabs-panel <% if handler == first_handler %> is-active <% end %>" id="<%= handler %>"
27
+ <div class="tabs-panel <%= " is-active" if handler == first_handler %>" id="<%= handler %>"
28
28
  aria-hidden="<% if handler == first_handler %>false<% else %>true<% end %>">
29
29
  <%= form.text_field "#{handler}_handler", label: false %>
30
30
  </div>
@@ -60,9 +60,6 @@
60
60
  <%= form.color_field :primary_color, value: current_organization.colors["primary"] %>
61
61
  <%= form.color_field :secondary_color, value: current_organization.colors["secondary"] %>
62
62
  <%= form.color_field :tertiary_color, value: current_organization.colors["tertiary"] %>
63
- <%= form.color_field :success_color, value: current_organization.colors["success"] %>
64
- <%= form.color_field :warning_color, value: current_organization.colors["warning"] %>
65
- <%= form.color_field :alert_color, value: current_organization.colors["alert"] %>
66
63
  </div>
67
64
  </div>
68
65
  </div>
@@ -10,13 +10,13 @@
10
10
 
11
11
  <div id="panel-layout_appearance_title" class="card-section">
12
12
  <div class="row column">
13
- <div class="minimap">
13
+ <div>
14
14
  <label for="minimap"><%= t(".preview") %></label>
15
15
  <%= render "decidim/admin/organization_appearance/form/minimap" %>
16
16
  </div>
17
17
 
18
- <div class="organization-images mt-8 grid grid-cols-1 md:grid-cols-2 gap-8">
19
- <div class="preview">
18
+ <div class="mt-8 grid grid-cols-1 md:grid-cols-2 gap-8">
19
+ <div>
20
20
  <%= form.upload(
21
21
  :favicon,
22
22
  dimensions_info: current_organization.attached_uploader(:favicon).dimensions_info,
@@ -26,7 +26,7 @@
26
26
  ) %>
27
27
  </div>
28
28
 
29
- <div class="preview">
29
+ <div>
30
30
  <%= form.upload(
31
31
  :logo,
32
32
  dimensions_info: current_organization.attached_uploader(:logo).dimensions_info,
@@ -35,7 +35,7 @@
35
35
  ) %>
36
36
  </div>
37
37
 
38
- <div class="preview">
38
+ <div>
39
39
  <%= form.upload(
40
40
  :official_img_footer,
41
41
  dimensions_info: current_organization.attached_uploader(:official_img_footer).dimensions_info,
@@ -3,7 +3,7 @@
3
3
  <div id="minimap" class="grid grid-cols-1 md:grid-cols-2">
4
4
  <div class="minimap-tab">
5
5
  <% if current_organization.favicon.attached? %>
6
- <%= image_tag current_organization.attached_uploader(:favicon).url, class: "minimap-favicon" %>
6
+ <%= image_tag current_organization.attached_uploader(:favicon).path, class: "minimap-favicon" %>
7
7
  <% else %>
8
8
  <%= content_tag :div, nil, { class: "minimap-favicon placeholder", style: "width: #{image_width(current_organization, :favicon) * size_factor}px; height: #{image_height(current_organization, :favicon) * size_factor}px;" } do %>
9
9
  <span><%= t("favicon", scope: "activemodel.attributes.organization") %></span>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div class="minimap-header">
15
15
  <% if current_organization.logo.present? %>
16
- <%= image_tag current_organization.attached_uploader(:logo).url, class: "minimap-logo" %>
16
+ <%= image_tag current_organization.attached_uploader(:logo).path, class: "minimap-logo" %>
17
17
  <% else %>
18
18
  <%= content_tag :div, nil, { class: "minimap-logo placeholder", style: "width: #{image_width(current_organization, :logo) * size_factor}px; height: #{image_height(current_organization, :logo) * size_factor}px;" } do %>
19
19
  <span><%= t("logo", scope: "activemodel.attributes.organization") %></span>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <div class="minimap-footer">
28
28
  <% if current_organization.official_img_footer.attached? %>
29
- <%= image_tag current_organization.attached_uploader(:official_img_footer).url, class: "minimap-official_img_footer" %>
29
+ <%= image_tag current_organization.attached_uploader(:official_img_footer).path, class: "minimap-official_img_footer" %>
30
30
  <% else %>
31
31
  <%= content_tag :div, nil, { class: "minimap-official_img_footer placeholder", style: "width: #{image_width(current_organization, :official_img_footer) * size_factor}px; height: #{image_height(current_organization, :official_img_footer) * size_factor}px;" } do %>
32
32
  <span><%= t("official_img_footer", scope: "activemodel.attributes.organization") %></span>
@@ -5,15 +5,15 @@
5
5
  <span><%= t(".external_domain") %></span>
6
6
 
7
7
  <div class="flex items-center ml-auto gap-x-4">
8
- <button class="button button__sm button__transparent-secondary small alert hollow move-up-question button--title">
8
+ <button class="button button__sm button__transparent-secondary small alert move-up-question button--title">
9
9
  <%== "#{icon("arrow-up-line")} #{t(".up")}" %>
10
10
  </button>
11
11
 
12
- <button class="button button__sm button__transparent-secondary small alert hollow move-down-question button--title">
12
+ <button class="button button__sm button__transparent-secondary small alert move-down-question button--title">
13
13
  <%== "#{icon("arrow-down-line")} #{t(".down")}" %>
14
14
  </button>
15
15
 
16
- <button class="button button__sm button__transparent-secondary small alert hollow remove-external-domain button--title">
16
+ <button class="button button__sm button__transparent-secondary small alert remove-external-domain button--title">
17
17
  <%= icon("delete-bin-line") %>
18
18
  <%= t(".remove") %>
19
19
  </button>
@@ -23,7 +23,7 @@
23
23
 
24
24
  <div class="card-section">
25
25
  <div class="grid-x">
26
- <div class="cell auto">
26
+ <div class="cell">
27
27
  <div class="row column">
28
28
  <%= form.text_field :value %>
29
29
  </div>
@@ -2,7 +2,7 @@
2
2
  <div class="card">
3
3
  <div class="card-section">
4
4
  <% if form.send(:error?, :external_domains) %>
5
- <div class="input-field">
5
+ <div>
6
6
  <div>&nbsp;</div>
7
7
  <%= form.send(:error_and_help_text, :external_domains) %>
8
8
  </div>
@@ -27,7 +27,7 @@
27
27
  <% end %>
28
28
  </div>
29
29
  <div class="row column">
30
- <button class="button button__sm button__secondary small hollow add-external-domain"><%= t(".add") %></button>
30
+ <button class="button button__sm button__secondary small add-external-domain"><%= t(".add") %></button>
31
31
  </div>
32
32
  </div>
33
33
  </div>
@@ -2,12 +2,12 @@
2
2
 
3
3
  <div class="item_show__header">
4
4
  <h1 class="item_show__header-title">
5
- <%= t("title", scope: "decidim.admin.organization_external_domain_whitelist.form") %>
5
+ <%= t("title", scope: "decidim.admin.organization_external_domain_allowlist.form") %>
6
6
  </h1>
7
7
  </div>
8
8
 
9
9
  <div class="item__edit-form">
10
- <%= decidim_form_for(@form, html: { class: "form-defaults form edit_organization_external_domain_whitelist" }, url: organization_external_domain_whitelist_path, method: :patch) do |f| %>
10
+ <%= decidim_form_for(@form, html: { class: "form-defaults form edit_organization_external_domain_allowlist" }, url: organization_external_domain_allowlist_path, method: :patch) do |f| %>
11
11
  <%= render partial: "form", object: f %>
12
12
  <div class="item__edit-sticky">
13
13
  <div class="item__edit-sticky-container">
@@ -27,7 +27,7 @@
27
27
  <th>
28
28
  <%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc ) %>
29
29
  </th>
30
- <th class="actions"></th>
30
+ <th></th>
31
31
  </tr>
32
32
  </thead>
33
33
  <tbody>
@@ -36,7 +36,7 @@
36
36
  </div>
37
37
  <div class="card-section p-4">
38
38
  <%= decidim_form_for(@form, url: participatory_space_private_users_csv_imports_path, html: { class: "form form-defaults" }) do |form| %>
39
- <div class="mb-s">
39
+ <div>
40
40
  <p><%= t(".explanation") %></p>
41
41
  <p><%= t(".example_file") %></p>
42
42
  <code class="code-block"><%= t(".explanation_example", csv_col_sep: Decidim.default_csv_col_sep) %></code>
@@ -17,7 +17,7 @@
17
17
  <th><%= t("models.share_token.fields.last_used_at", scope: "decidim.admin") %></th>
18
18
  <th><%= t("models.share_token.fields.created_at", scope: "decidim.admin") %></th>
19
19
  <th><%= t("models.share_token.fields.expires_at", scope: "decidim.admin") %></th>
20
- <th class="actions"></th>
20
+ <th></th>
21
21
  </tr>
22
22
  </thead>
23
23
  <tbody>
@@ -0,0 +1,30 @@
1
+ <% adjacent_paths ||= {} %>
2
+ <div class="flex justify-between mb-4">
3
+ <span>
4
+ <% if adjacent_paths["prev_item"].present? %>
5
+ <%= link_to(
6
+ adjacent_paths["prev_item"],
7
+ class: "button button__sm button__text-secondary",
8
+ title: t("previous_title", scope: "decidim.admin.shared.adjacent_navigation"),
9
+ rel: "prev"
10
+ ) do %>
11
+ <%= icon "arrow-left-s-line", class: "fill-current" %>
12
+ <%= t("previous", scope: "decidim.admin.shared.adjacent_navigation") %>
13
+ <% end %>
14
+ <% end %>
15
+ </span>
16
+
17
+ <span>
18
+ <% if adjacent_paths["next_item"].present? %>
19
+ <%= link_to(
20
+ adjacent_paths["next_item"],
21
+ class: "button button__sm button__text-secondary",
22
+ title: t("next_title", scope: "decidim.admin.shared.adjacent_navigation"),
23
+ rel: "next"
24
+ ) do %>
25
+ <%= t("next", scope: "decidim.admin.shared.adjacent_navigation") %>
26
+ <%= icon "arrow-right-s-line", class: "fill-current" %>
27
+ <% end %>
28
+ <% end %>
29
+ </span>
30
+ </div>
@@ -1,18 +1,18 @@
1
- <div class="small reveal confirm-reveal" id="confirm-modal" aria-hidden="true" role="dialog" aria-labelledby="confirm-modal-title" data-reveal data-multiple-opened="true">
2
- <div class="reveal__header">
3
- <h2 class="reveal__title" id="confirm-modal-title"><%= t("title", scope: "decidim.shared.confirm_modal") %></h2>
1
+ <div class="small" id="confirm-modal" aria-hidden="true" role="dialog" aria-labelledby="confirm-modal-title" data-reveal data-multiple-opened="true">
2
+ <div>
3
+ <h2 id="confirm-modal-title"><%= t("title", scope: "decidim.shared.confirm_modal") %></h2>
4
4
  <button class="close-button" data-close aria-label="<%= t("close_modal", scope: "decidim.shared.confirm_modal") %>"
5
5
  type="button">
6
6
  <span aria-hidden="true">&times;</span>
7
7
  </button>
8
8
  </div>
9
- <div class="confirm-content">
9
+ <div>
10
10
  <div class="confirm-modal-content"></div>
11
11
  </div>
12
- <div class="confirm-modal-footer reveal__footer">
13
- <div class="buttons button--double">
12
+ <div class="confirm-modal-footer">
13
+ <div>
14
14
  <a class="button" role="button" href="#" data-confirm-ok aria-label="<%= t("ok", scope: "decidim.shared.confirm_modal") %>"><%= t("ok", scope: "decidim.shared.confirm_modal") %></a>
15
- <a class="button clear" role="button" href="#" data-confirm-cancel aria-label="<%= t("cancel", scope: "decidim.shared.confirm_modal") %>"><%= t("cancel", scope: "decidim.shared.confirm_modal") %></a>
15
+ <a class="button" role="button" href="#" data-confirm-cancel aria-label="<%= t("cancel", scope: "decidim.shared.confirm_modal") %>"><%= t("cancel", scope: "decidim.shared.confirm_modal") %></a>
16
16
  </div>
17
17
  </div>
18
18
  </div>
@@ -31,6 +31,6 @@
31
31
  <% end %>
32
32
  </div>
33
33
  </div>
34
- <div class="fcell grid-x" data-applied-filters-tags>
34
+ <div class="fcell flex items-center gap-2" data-applied-filters-tags>
35
35
  <%= applied_filters_tags(i18n_ctx) %>
36
36
  </div>
@@ -1,4 +1,4 @@
1
- <div class="row column gallery__container mt-4">
1
+ <div class="row column mt-4">
2
2
  <fieldset>
3
3
  <legend><%= t(".gallery_legend") %></legend>
4
4
 
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
 
23
23
  <div class="card-section-draggable-list">
24
- <div class="grid-container full">
24
+ <div class="full">
25
25
  <div class="grid-x grid-margin-x card-grid">
26
26
  <div class="cell">
27
27
  <div class="card">
@@ -40,7 +40,7 @@
40
40
  <div class="card-section">
41
41
  <h5 class="draggable-list-title"><%= inactive_content_blocks_title %></h5>
42
42
 
43
- <ul class="draggable-list js-connect js-list-availables">
43
+ <ul class="draggable-list js-connect js-list-available">
44
44
  <% inactive_blocks.each do |content_block_or_manifest| %>
45
45
  <%= cell resource_content_block_cell, content_block_or_manifest %>
46
46
  <% end %>
@@ -15,7 +15,7 @@
15
15
  <thead>
16
16
  <tr>
17
17
  <th><%= t("activemodel.attributes.static_page_topic.name") %></th>
18
- <th class="actions"></th>
18
+ <th></th>
19
19
  </tr>
20
20
  </thead>
21
21
  <tbody>
@@ -34,10 +34,6 @@
34
34
  <%= form.number_field :weight, label: false %>
35
35
  </div>
36
36
 
37
- <div class="row column">
38
- <%= form.check_box :show_in_footer %>
39
- </div>
40
-
41
37
  <% if form.object.control_public_access? %>
42
38
  <div class="row column">
43
39
  <%= form.check_box :allow_public_access %>
@@ -7,10 +7,10 @@
7
7
  <div class="table-scroll">
8
8
  <% if result.empty? %>
9
9
  <div class="table">
10
- <p class="users_count"><%= t(".no_users_count_statistics_yet") %></p>
10
+ <p><%= t(".no_users_count_statistics_yet") %></p>
11
11
  </div>
12
12
  <% else %>
13
- <table class="table-list users_count">
13
+ <table class="table-list">
14
14
  <thead>
15
15
  <tr>
16
16
  <th></th>
@@ -1,7 +1,7 @@
1
1
  <% if current_user && !current_user.remember_created_at %>
2
2
  <% timeout_time_seconds = Decidim.config.expire_session_after.to_i %>
3
3
  <% prevent_timeout_for = try(:prevent_timeout_seconds) || 0 %>
4
- <div class="reveal" id="timeoutModal" data-close-on-click="false" data-close-on-esc="false"
4
+ <div id="timeoutModal" data-close-on-click="false" data-close-on-esc="false"
5
5
  data-seconds-until-timeout-path="<%= decidim.seconds_until_timeout_path %>"
6
6
  data-heartbeat-path="<%= decidim.heartbeat_path %>"
7
7
  data-session-timeout="<%= timeout_time_seconds %>"
@@ -10,7 +10,7 @@
10
10
  <h2><%= t("title", scope: "layouts.decidim.timeout_modal") %></h2>
11
11
  <p><%= t("body", scope: "layouts.decidim.timeout_modal", minutes: (timeout_time_seconds / 60) - 2) %></p>
12
12
 
13
- <div class="reveal__buttons">
13
+ <div>
14
14
  <%= link_to t("log_out", scope: "layouts.decidim.timeout_modal"), decidim.destroy_user_session_path, method: :delete, class: "button warning" %>
15
15
  <%= link_to "", decidim.destroy_user_session_path(translation_suffix: :timed_out), method: :delete, id: "reveal-hidden-sign-out", class: "hide" %>
16
16
  <%= button_to t("continue_session", scope: "layouts.decidim.timeout_modal"),
@@ -1,7 +1,7 @@
1
1
  <% add_decidim_page_title(t("titles.panel", scope: "decidim.admin")) %>
2
- <% add_decidim_page_title(current_organization.name) %>
2
+ <% add_decidim_page_title(current_organization_name) %>
3
3
  <!doctype html>
4
- <html class="no-js" lang="<%= I18n.locale %>">
4
+ <html class="no-js" lang="<%= I18n.locale %>" dir="<%= rtl_direction %>">
5
5
  <head>
6
6
  <meta charset="utf-8">
7
7
  <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
@@ -21,9 +21,9 @@
21
21
  </div>
22
22
  <div class="relative md:flex grow min-h-max w-full">
23
23
  <div class="layout-nav">
24
- <%= link_to decidim_admin.root_path, class: "logo hidden md:block", data: { "external-link": false }, aria: { label: t("decidim.accessibility.logo", organization: current_organization.name) } do %>
24
+ <%= link_to decidim_admin.root_path, class: "logo hidden md:block", data: { "external-link": false }, aria: { label: t("decidim.accessibility.logo", organization: current_organization_name) } do %>
25
25
  <% if current_organization.logo.present? %>
26
- <%= image_tag current_organization.attached_uploader(:logo).url, alt: current_organization.name %>
26
+ <%= image_tag current_organization.attached_uploader(:logo).path, alt: current_organization_name %>
27
27
  <% else %>
28
28
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134 109">
29
29
  <g fill="#fff">
@@ -1,3 +1,3 @@
1
- <div class="callout-wrapper mb-0 mx-4">
1
+ <div class="mb-0 mx-4" data-callout-wrapper>
2
2
  <%= display_flash_messages %>
3
3
  </div>
@@ -4,7 +4,9 @@ js_configs = {
4
4
  icons_path: Decidim.cors_enabled ? "" : asset_pack_path("media/images/remixicon.symbol.svg"),
5
5
  messages: {
6
6
  "selfxssWarning": t("decidim.security.selfxss_warning"),
7
- editor: t("editor")
7
+ editor: t("editor"),
8
+ date: t("date"),
9
+ time: t("time")
8
10
  }
9
11
  }
10
12
  character_messages = {
@@ -1,7 +1,7 @@
1
1
  <div class="title-bar">
2
2
  <div class="layout-content__container">
3
3
  <span class="font-semibold text-sm">
4
- <%= current_organization.name %>
4
+ <%= current_organization_name %>
5
5
  </span>
6
6
  <div class="tool-bar">
7
7
  <%= link_to decidim.root_path, class: "button__site", target: "_blank", data: { "external-link": false } do %>
@@ -9,7 +9,7 @@
9
9
  <%= t("see_site", scope: "decidim.admin.menu") %>
10
10
  <% end %>
11
11
  <% if available_locales.length > 1 %>
12
- <div class="topbar__dropmenu language-choose relative">
12
+ <div class="language-choose relative">
13
13
  <%= button_tag id: "admin-menu-trigger", data: { component: "dropdown", target: "admin-dropdown-menu-language" }, class: "dropdown__trigger" do %>
14
14
  <%= t("name", scope: "locale") %>
15
15
  <%= icon "arrow-down-s-line" %>
@@ -2,7 +2,7 @@
2
2
  <div class="layout-content__container">
3
3
  <a href="#menu" class="menu-trigger"><%= icon "menu-line", class: "fill-black" %></a>
4
4
  <span class="font-semibold text-sm">
5
- <%= current_organization.name %>
5
+ <%= current_organization_name %>
6
6
  </span>
7
7
  <div class="tool-bar">
8
8
  <%= link_to decidim.root_path, class: "button__site", target: "_blank", data: { "external-link": false } do %>
@@ -10,7 +10,7 @@
10
10
  <%= t("see_site", scope: "decidim.admin.menu") %>
11
11
  <% end %>
12
12
  <% if available_locales.length > 1 %>
13
- <div class="topbar__dropmenu language-choose relative">
13
+ <div class="language-choose relative">
14
14
  <%= button_tag id: "admin-menu-trigger-responsive", data: { component: "dropdown", target: "admin-dropdown-menu-language-responsive" }, class: "dropdown__trigger" do %>
15
15
  <%= t("name", scope: "locale") %>
16
16
  <%= icon "arrow-down-s-line" %>
@@ -289,7 +289,6 @@ ar:
289
289
  title: تضارب التحقق
290
290
  transfer:
291
291
  email: البريد الإلكتروني
292
- error: كانت هناك مشكلة في نقل المشارك الحالي إلى مشارك مُدار.
293
292
  name: الإسم
294
293
  reason: السبب
295
294
  success: قد اكتمل النقل الحالي بنجاح.
@@ -364,7 +363,6 @@ ar:
364
363
  report_count_eq: عدد التقارير يساوى
365
364
  reported_id_string_or_reported_content_cont: البحث عن %{collection} بواسطة رقم-مُعرف أو بالمحتوى.
366
365
  title_cont: البحث عن %{collection} بحسب العنوان.
367
- user_name_or_user_email_cont: البحث عن %{collection} حسب الاسم أو البريد الإلكتروني.
368
366
  user_name_or_user_nickname_or_user_email_cont: البحث عن %{collection} بحسب عنوان البريد الإكتروني أو الإسم أو الإسم المستعار.
369
367
  state_eq:
370
368
  label: الحالة
@@ -670,11 +668,6 @@ ar:
670
668
  layout_appearance_title: تحرير مظهر التخطيط
671
669
  preview: معاينة
672
670
  omnipresent_banner_appearance_title: تحرير لافتة في كل مكان
673
- organization_external_domain_whitelist:
674
- edit:
675
- update: تحديث
676
- form:
677
- add: إضافة إلى القائمة البيضاء
678
671
  participatory_space_private_users:
679
672
  create:
680
673
  error: حدثت مشكلة أثناء إضافة مشارك خاص لهذه المساحة التشاركية.
@@ -351,8 +351,6 @@ bg:
351
351
  conflicts:
352
352
  attempts: Опити
353
353
  'false': 'Не'
354
- index:
355
- text: Търсете по имейл, име или псевдоним на текущия потребител.
356
354
  managed_user_name: Управляван потребител
357
355
  solved: Разрешен случай
358
356
  title: Проверка на конфликти
@@ -381,7 +379,7 @@ bg:
381
379
  update: Актуализация
382
380
  dashboard:
383
381
  pending_moderations:
384
- anouncement:
382
+ announcement:
385
383
  one: Има %{count} чакащи модериране
386
384
  other: Има %{count} чакащи модерации
387
385
  goto_moderation: Отидете на глобалните модерации
@@ -389,12 +387,12 @@ bg:
389
387
  show:
390
388
  dropdown: Падащо меню
391
389
  view_more_logs: Преглед на още регистри
392
- domain_whitelist:
390
+ domain_allowlist:
393
391
  form:
394
392
  domain_too_short: Домейнът е твърде кратък
395
393
  update:
396
- error: Неуспешно актуализиране на белия списък на домейни.
397
- success: Белият списък на домейни е актуализиран успешно.
394
+ error: Неуспешно актуализиране на списъка с разрешени външни домейни
395
+ success: Списъкът с разрешени външни домейни е актуализиран успешно.
398
396
  exports:
399
397
  export_as: "%{name} като %{export_format}"
400
398
  formats:
@@ -453,6 +451,7 @@ bg:
453
451
  values:
454
452
  'false': Публикувано
455
453
  'true': Непубликувано
454
+ remove_all: Премахване на всички
456
455
  scope_id_eq:
457
456
  label: Обхват
458
457
  search_label: Търсене
@@ -461,7 +460,6 @@ bg:
461
460
  report_count_eq: Отчитане на броя
462
461
  reported_id_string_or_reported_content_cont: Търсете в %{collection} по ID или съдържание, което може да бъде отчетено.
463
462
  title_cont: Търсене на %{collection} по заглавие.
464
- user_name_or_user_email_cont: Търси в %{collection} по име или имейл.
465
463
  user_name_or_user_nickname_or_user_email_cont: Търсене на %{collection} по имейл, име или псевдоним.
466
464
  state_eq:
467
465
  label: Състояние
@@ -577,7 +575,7 @@ bg:
577
575
  components: Компоненти
578
576
  configuration: Конфигурация
579
577
  content: Докладвано съдържание
580
- external_domain_whitelist: Лист с позволени външни домейни
578
+ external_domain_allowlist: Лист с позволени външни домейни
581
579
  help_sections: Помощни раздели
582
580
  homepage: Начална страница
583
581
  impersonations: Имитация
@@ -862,7 +860,7 @@ bg:
862
860
  layout_appearance_title: Редактиране външния вид шаблона
863
861
  preview: Преглед
864
862
  omnipresent_banner_appearance_title: Редактиране на присъстващия навсякъде банер
865
- organization_external_domain_whitelist:
863
+ organization_external_domain_allowlist:
866
864
  edit:
867
865
  update: Актуализация
868
866
  external_domain:
@@ -871,8 +869,8 @@ bg:
871
869
  remove: Премахни
872
870
  up: Горе
873
871
  form:
874
- add: Добави към белия списък
875
- title: Бял списък с външни домейни
872
+ add: Добави в листа с позволени
873
+ title: Лист с позволени външни домейни
876
874
  participatory_space_private_users:
877
875
  create:
878
876
  error: Възникна проблем при добавянето на частен участник за това пространство за участие.
@@ -968,6 +966,11 @@ bg:
968
966
  help: Маркерите се използват за публично споделяне на този непубликуван ресурс с всеки потребител. Те ще бъдат скрити, след като ресурсът бъде публикуван. Щракнете върху иконата за споделяне на маркера, за да посетите URL адреса с възможност за споделяне.
969
967
  title: Споделяне на маркери
970
968
  shared:
969
+ adjacent_navigation:
970
+ next: Следващ
971
+ next_title: Следващ елемент
972
+ previous: Предишен
973
+ previous_title: Предишен елемент
971
974
  gallery:
972
975
  add_images: Добави изображения
973
976
  edit_images: Редактиране на изображения
@@ -1020,7 +1023,7 @@ bg:
1020
1023
  areas: Области
1021
1024
  authorization_workflows: Методи за проверка
1022
1025
  dashboard: Контролен панел
1023
- edit_external_domains: Бял списък с външни домейни
1026
+ edit_external_domains: Лист с позволени външни домейни
1024
1027
  edit_landing_page: Съдържание на страницата
1025
1028
  edit_organization_appearance: Редактиране на външния вид на началната страница
1026
1029
  impersonatable_users: Управляеми участници