decidim-meetings 0.29.2 → 0.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/meetings/dates_and_map/show.erb +7 -7
  3. data/app/commands/decidim/meetings/admin/invite_user_to_join_meeting.rb +1 -1
  4. data/app/controllers/decidim/meetings/meetings_controller.rb +2 -3
  5. data/app/models/decidim/meetings/meeting.rb +0 -5
  6. data/app/packs/stylesheets/decidim/meetings/_item.scss +2 -2
  7. data/app/permissions/decidim/meetings/permissions.rb +1 -1
  8. data/app/serializers/decidim/meetings/registration_serializer.rb +2 -0
  9. data/app/views/decidim/meetings/_calendar_modal.html.erb +2 -2
  10. data/app/views/decidim/meetings/meetings/index.html.erb +9 -0
  11. data/app/views/decidim/meetings/meetings/new.html.erb +1 -0
  12. data/app/views/decidim/meetings/shared/_meetings.html.erb +1 -1
  13. data/config/locales/ar.yml +0 -6
  14. data/config/locales/bg.yml +0 -11
  15. data/config/locales/ca-IT.yml +693 -0
  16. data/config/locales/ca.yml +8 -6
  17. data/config/locales/cs.yml +5 -3
  18. data/config/locales/de.yml +52 -50
  19. data/config/locales/el.yml +0 -6
  20. data/config/locales/en.yml +3 -1
  21. data/config/locales/es-MX.yml +12 -10
  22. data/config/locales/es-PY.yml +13 -11
  23. data/config/locales/es.yml +13 -11
  24. data/config/locales/eu.yml +26 -24
  25. data/config/locales/fi-plain.yml +3 -6
  26. data/config/locales/fi.yml +3 -6
  27. data/config/locales/fr-CA.yml +4 -3
  28. data/config/locales/fr.yml +4 -3
  29. data/config/locales/gl.yml +0 -5
  30. data/config/locales/hu.yml +2 -8
  31. data/config/locales/id-ID.yml +0 -5
  32. data/config/locales/is-IS.yml +3 -1
  33. data/config/locales/it.yml +2 -6
  34. data/config/locales/ja.yml +3 -1
  35. data/config/locales/lb.yml +5 -6
  36. data/config/locales/lt.yml +1 -7
  37. data/config/locales/lv.yml +0 -5
  38. data/config/locales/nl.yml +2 -8
  39. data/config/locales/no.yml +0 -5
  40. data/config/locales/pl.yml +1 -12
  41. data/config/locales/pt-BR.yml +1 -7
  42. data/config/locales/pt.yml +0 -6
  43. data/config/locales/ro-RO.yml +3 -3
  44. data/config/locales/ru.yml +0 -5
  45. data/config/locales/sk.yml +1 -6
  46. data/config/locales/sv.yml +53 -53
  47. data/config/locales/tr-TR.yml +0 -6
  48. data/config/locales/uk.yml +3 -6
  49. data/config/locales/zh-CN.yml +0 -6
  50. data/config/locales/zh-TW.yml +0 -6
  51. data/lib/decidim/meetings/engine.rb +6 -1
  52. data/lib/decidim/meetings/version.rb +1 -1
  53. metadata +15 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1914015424af6badd9b0449162f29d9531f45777617c85abf7afc8bcfc7fc439
4
- data.tar.gz: a60c1966bd2920683d25767d342118657da641bbf0332d3b19a4a038602810d6
3
+ metadata.gz: c62bb7e3ede2e0107a2106b921f58139bfb23877893db713d1408032579da53e
4
+ data.tar.gz: 5fe50d58ea182b1889d8fe590c719e4cdf93bed773e6e97b432f814023c4fb90
5
5
  SHA512:
6
- metadata.gz: b299704d14a16389756ded8685c48e5e5e4283640fe8418e7be764a52f8fa837325d8659b3a9686bef37f60467fe8186942251cf9439b954b1353681984f6491
7
- data.tar.gz: ffd91e602170b5a2479c63565c01f990daa13ef2db41561b23c4c5c18319a8a3b51ba921bae5dec70f22c0235a0fa3590eb0dde046676e7da92df2769fce70e2
6
+ metadata.gz: 2ad378367071384cbed6a9294ba913d34b42383bfd820ca7c65a90c38a70182963ed9399dd2f45910f4fd3a37c204bff81a234c0f7991c95c1ebb4254622e2ac
7
+ data.tar.gz: d31b48902817907e446c32dea541317d75346e89934328d1c98d8dbb5a76ab265a525896743102956a1beefeace6d0080df22c9bdb0d892d47a572577c999982
@@ -1,17 +1,17 @@
1
1
  <div class="meeting__calendar-container">
2
2
  <div class="meeting__calendar meeting__calendar__lg">
3
3
  <div class="meeting__calendar-month">
4
- <span><%= l(start_time, format: !same_month? ? "%b" : "%B") %></span>
5
- <span class="meeting__calendar-separator"><%= "-" if !same_month? %></span>
6
- <span><%= l(end_time, format: "%b") if !same_month? %></span>
4
+ <p><%= l(start_time, format: !same_month? ? "%b" : "%B") %></p>
5
+ <p class="meeting__calendar-separator"><%= "-" if !same_month? %></p>
6
+ <p><%= l(end_time, format: "%b") if !same_month? %></p>
7
7
  </div>
8
8
  <div class="meeting__calendar-day">
9
- <span><%= l(start_time, format: "%d") %></span>
10
- <span class="meeting__calendar-separator"><%= "-" if !same_day? || !same_month? %></span>
11
- <span><%= l(end_time, format: "%d") if !same_day? || !same_month? %></span>
9
+ <p><%= l(start_time, format: "%d") %></p>
10
+ <p class="meeting__calendar-separator"><%= "-" if !same_day? || !same_month? %></p>
11
+ <p><%= l(end_time, format: "%d") if !same_day? || !same_month? %></p>
12
12
  </div>
13
13
  <div class="meeting__calendar-year">
14
- <span><%= year %></span>
14
+ <p><%= year %></p>
15
15
  </div>
16
16
  </div>
17
17
 
@@ -79,7 +79,7 @@ module Decidim
79
79
  end
80
80
  else
81
81
  user.name = form.name
82
- user.nickname = User.nicknamize(user.name, organization: user.organization)
82
+ user.nickname = User.nicknamize(user.name, user.decidim_organization_id)
83
83
  invite_user_to_sign_up
84
84
  create_invitation!
85
85
  end
@@ -59,10 +59,9 @@ module Decidim
59
59
  def show
60
60
  raise ActionController::RoutingError, "Not Found" unless meeting
61
61
 
62
- return if meeting.current_user_can_visit_meeting?(current_user)
62
+ enforce_permission_to(:read, :meeting, meeting:)
63
63
 
64
- flash[:alert] = I18n.t("meeting.not_allowed", scope: "decidim.meetings")
65
- redirect_to(ResourceLocatorPresenter.new(meeting).index)
64
+ return if meeting.current_user_can_visit_meeting?(current_user)
66
65
  end
67
66
 
68
67
  def edit
@@ -317,11 +317,6 @@ module Decidim
317
317
  )
318
318
  end
319
319
 
320
- # Public: Overrides the `reported_content_url` Reportable concern method.
321
- def reported_content_url
322
- ResourceLocatorPresenter.new(self).url
323
- end
324
-
325
320
  # Public: Overrides the `reported_attributes` Reportable concern method.
326
321
  def reported_attributes
327
322
  [:description]
@@ -35,7 +35,7 @@
35
35
  &-month,
36
36
  &-day,
37
37
  &-year {
38
- @apply inline-flex items-center justify-evenly empty:[&>span]:hidden;
38
+ @apply inline-flex items-center justify-evenly empty:[&>p]:hidden;
39
39
  }
40
40
 
41
41
  &-separator {
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  &__grid {
67
- @apply grid grid-cols-4 gap-x-12 gap-y-4;
67
+ @apply grid grid-cols-2 gap-x-12 gap-y-4 md:grid-cols-4;
68
68
  }
69
69
 
70
70
  &__online {
@@ -9,7 +9,7 @@ module Decidim
9
9
  return permission_action if permission_action.scope != :public
10
10
 
11
11
  if permission_action.subject == :meeting && permission_action.action == :read
12
- toggle_allow(!meeting&.hidden? && meeting&.current_user_can_visit_meeting?(user))
12
+ toggle_allow(user_has_any_role?(user, meeting.participatory_space, broad_check: true) || (!meeting&.hidden? && meeting&.current_user_can_visit_meeting?(user)))
13
13
  return permission_action
14
14
  end
15
15
 
@@ -21,6 +21,8 @@ module Decidim
21
21
  private
22
22
 
23
23
  def serialize_answers
24
+ return [] unless resource.meeting.questionnaire
25
+
24
26
  Decidim::Forms::UserAnswersSerializer.new(
25
27
  resource.meeting.questionnaire.answers.where(user: resource.user)
26
28
  ).serialize
@@ -9,8 +9,8 @@
9
9
  <div class="space-y-8">
10
10
  <h3 id="dialog-title-calendarShare" class="h3"><%= t(".calendar_url") %></h3>
11
11
 
12
- <div id="dialog-desc-calendarShare" class="meeting-list__modal-text"><%= t(".copy_calendar_url_description") %></div>
13
- <div class="meeting-list__modal-text"><%= t(".copy_calendar_url_explanation") %></div>
12
+ <p id="dialog-desc-calendarShare" class="meeting-list__modal-text"><%= t(".copy_calendar_url_description") %></p>
13
+ <p class="meeting-list__modal-text"><%= t(".copy_calendar_url_explanation") %></p>
14
14
 
15
15
  <div class="meeting-list__modal-input">
16
16
  <input id="urlCalendarUrl" type="text" title="<%= t(".calendar_url") %>" value="<%= "#{path}" %>" readonly>
@@ -1,3 +1,12 @@
1
+ <% add_decidim_meta_tags(
2
+ description: translated_attribute(current_component.participatory_space.try(:description)),
3
+ title: t("decidim.components.pagination.page_title",
4
+ component_name: translated_attribute(current_component.name),
5
+ current_page: meetings.current_page,
6
+ total_pages: meetings.total_pages ),
7
+ url: meetings_url,
8
+ resource: current_component) %>
9
+
1
10
  <%= render partial: "decidim/meetings/shared/index", locals: {
2
11
  display_map: Decidim::Map.available?(:geocoding, :dynamic) && current_component.settings.maps_enabled? && search.result.not_online.exists?,
3
12
  display_announcement: true,
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t("title", scope: "decidim.meetings.meetings.new")) %>
1
2
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
2
3
  <div class="text-center py-10">
3
4
  <h1 class="title-decorator inline-block text-left">
@@ -11,7 +11,7 @@
11
11
  <% if meetings.length.zero? %>
12
12
  <%= cell("decidim/announcement", t("decidim.meetings.meetings.meetings.no_meetings_warning"), callout_class: "warning" ) %>
13
13
  <% else %>
14
- <h2 class="h5 md:h3 decorator"><%= t("meetings_count", scope: "decidim.meetings.meetings.count", count: meetings.total_count) %></h2>
14
+ <h2 class="h5 md:h3 decorator" aria-live="polite" aria-atomic="true"><%= t("meetings_count", scope: "decidim.meetings.meetings.count", count: meetings.total_count) %></h2>
15
15
 
16
16
  <%= cell("decidim/announcement", t("decidim.meetings.meetings.meetings.upcoming_meetings_warning"), callout_class: "warning" ) if @forced_past_meetings %>
17
17
 
@@ -310,8 +310,6 @@ ar:
310
310
  registrations:
311
311
  edit:
312
312
  save: حفظ
313
- validate: التحقق من صحة
314
- validate_registration_code: التحقق من صحة رمز التسجيل
315
313
  form:
316
314
  available_slots_help: اتركه إلى 0 إذا كان لديك فتحات غير محدودة المتاحة.
317
315
  invites: دعوات
@@ -330,9 +328,6 @@ ar:
330
328
  update:
331
329
  invalid: حدثت مشكلة أثناء حفظ إعدادات التسجيل.
332
330
  success: تم حفظ إعدادات تسجيل الاجتماع بنجاح.
333
- validate_registration_code:
334
- invalid: رمز التسجيل هذا غير صالح.
335
- success: تم التحقق من صحة رمز التسجيل بنجاح.
336
331
  admin_log:
337
332
  invite:
338
333
  create: "%{user_name} دعا %{attendee_name} للانضمام إلى اجتماع %{resource_name} في الفضاء %{space_name}"
@@ -472,7 +467,6 @@ ar:
472
467
  new:
473
468
  back: العودة
474
469
  create: إنشاء
475
- title: إنشاء اجتماعك
476
470
  registration_confirm:
477
471
  cancel: إلغاء
478
472
  confirm: تؤكد
@@ -373,8 +373,6 @@ bg:
373
373
  registrations:
374
374
  edit:
375
375
  save: Запази
376
- validate: Потвърди
377
- validate_registration_code: Валидиране на регистрационния код
378
376
  form:
379
377
  available_slots_help: Оставете 0, ако разполагате с неограничен брой места.
380
378
  invites: Покани
@@ -390,9 +388,6 @@ bg:
390
388
  update:
391
389
  invalid: Възникна проблем при запазването на настройките за регистрация.
392
390
  success: Настройките за регистрация бяха запазени успешно.
393
- validate_registration_code:
394
- invalid: Регистрационният код е невалиден.
395
- success: Регистрационният код беше валидиран успешно.
396
391
  admin_log:
397
392
  invite:
398
393
  create: "%{user_name} покани %{attendee_name} да се присъедини към срещата %{resource_name} в пространството %{space_name}"
@@ -544,7 +539,6 @@ bg:
544
539
  new:
545
540
  back: Назад
546
541
  create: Създаване
547
- title: Създайте среща
548
542
  registration_confirm:
549
543
  cancel: Отказ
550
544
  confirm: Потвърждаване
@@ -597,12 +591,7 @@ bg:
597
591
  title: Заглавие
598
592
  polls:
599
593
  answers:
600
- index:
601
- administrate: Администриране
602
- title: Анкета
603
594
  index_admin:
604
- back_to_meeting: Назад към срещата
605
- title: Администриране на анкета
606
595
  view_poll: Вижте анкетата
607
596
  questions:
608
597
  closed_question: