decidim-meetings 0.28.2 → 0.28.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b39a9cc837cdf7ceb50a11600d77bf52bc43b826f59904a547ded94bd4ff4748
4
- data.tar.gz: 87830a9f87a179d747f8fd14749abe9774f124778b5ba6bdc98591bc42f39c5f
3
+ metadata.gz: d0085a8f2f8df80b300246b11a3248dc8b9891e11699a49ec6beb81e65bf2e93
4
+ data.tar.gz: 4d5b5be680be38f726f4f12a19bba8c0da23feba1e2bb878d68015791770fded
5
5
  SHA512:
6
- metadata.gz: f9376c59d4176d0df307fa963890ed3c35dd5bf3b4469087e6972348cdd08d78f2f705e820ee19cba564cc70566f6cc999e80cb65dd8fcbbd49cbdad405d283d
7
- data.tar.gz: 1bffbca3121562dcb32af901f743817e004ab5dff16ec2f5dba433910cfb130d87947db7fd4f2cef00c9f0825d0e57111cca66e41a7bbb3745c10124b6586b1f
6
+ metadata.gz: d9639caeb5db1426d878a2243a06a8a3e7b999d96cc491aedf76a3b60d45ddbf5362bb4fdc18d46e245d6658e360eac3b6b46e27761fc5555d7008d20ee19c8d
7
+ data.tar.gz: e84aa50842bb51384579aea8438e00a1872efffd830791601ead617503dbb19592450407447b98b6c146695e285254c247ea03f8cdbe57d821a7f90e67aa13ca
@@ -11,10 +11,6 @@ module Decidim
11
11
 
12
12
  alias meeting model
13
13
 
14
- def has_image?
15
- true
16
- end
17
-
18
14
  def extra_class
19
15
  "card__calendar-list__reset"
20
16
  end
@@ -59,7 +59,11 @@ module Decidim
59
59
 
60
60
  # If the content is safe, HTML tags are sanitized, otherwise, they are stripped.
61
61
  def render_meeting_body(meeting)
62
- sanitized = render_sanitized_content(meeting, :description)
62
+ render_meeting_sanitize_field(meeting, :description)
63
+ end
64
+
65
+ def render_meeting_sanitize_field(meeting, field)
66
+ sanitized = render_sanitized_content(meeting, field)
63
67
  if safe_content?
64
68
  Decidim::ContentProcessor.render_without_format(sanitized).html_safe
65
69
  else
@@ -64,13 +64,10 @@ module Decidim
64
64
  end
65
65
  end
66
66
 
67
- def closing_report(links: false, all_locales: false)
67
+ def closing_report(links: false, extras: false, strip_tags: false, all_locales: false)
68
68
  return unless meeting
69
69
 
70
- handle_locales(meeting.closing_report, all_locales) do |content|
71
- renderer = Decidim::ContentRenderers::HashtagRenderer.new(sanitized(content))
72
- renderer.render(links:).html_safe
73
- end
70
+ content_handle_locale(meeting.closing_report, all_locales, extras, links, strip_tags)
74
71
  end
75
72
 
76
73
  def registration_email_custom_content(links: false, all_locales: false)
@@ -12,7 +12,9 @@
12
12
  <div class="dropdown-pane" id="export-dropdown" data-dropdown data-auto-focus="true" data-close-on-click="true">
13
13
  <ul class="vertical menu add-components">
14
14
  <% %w(CSV JSON Excel).each do |format| %>
15
- <li class="exports--format--<%= format.downcase %> exports--registrations"><%= link_to t("decidim.admin.exports.export_as", name: t("decidim.#{current_component.manifest.name}.admin.exports.registrations"), export_format: format), export_meeting_registrations_path(meeting_id: meeting, format:) %></li>
15
+ <%= link_to export_meeting_registrations_path(meeting_id: meeting, format:) do %>
16
+ <li class="exports--format--<%= format.downcase %> exports--registrations"><%= t("decidim.admin.exports.export_as", name: t("decidim.#{current_component.manifest.name}.admin.exports.registrations"), export_format: format) %></li>
17
+ <% end %>
16
18
  <% end %>
17
19
  </ul>
18
20
  </div>
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
 
7
7
  <div class="meeting__agenda-item">
8
- <div class="meeting__agenda-item__description editor-content mb-4"><%= decidim_sanitize_editor translated_attribute meeting.closing_report %></div>
8
+ <div class="meeting__agenda-item__description editor-content mb-4"><%= render_meeting_sanitize_field(meeting, :closing_report) %></div>
9
9
 
10
10
  <% if meeting.video_url.presence %>
11
11
  <div class="flex items-center gap-2 mt-2">
@@ -449,6 +449,7 @@ cs:
449
449
  new_meeting: 'Nová schůze:'
450
450
  layouts:
451
451
  live_event:
452
+ administrate: Spravovat
452
453
  close: zavřít
453
454
  questions: Otázky
454
455
  mailer:
@@ -83,7 +83,7 @@ sv:
83
83
  'false': Tidigare
84
84
  'true': Kommande
85
85
  scope_id_eq:
86
- label: Omfång
86
+ label: Indelning
87
87
  with_any_origin:
88
88
  label: Ursprung
89
89
  values:
@@ -120,8 +120,8 @@ sv:
120
120
  maps_enabled: Karta aktiverad
121
121
  registration_code_enabled: Registreringskod aktiverad
122
122
  resources_permissions_enabled: Åtgärdsbehörigheter kan ställas in för varje möte
123
- scope_id: Omfång
124
- scopes_enabled: Omfång aktiverade
123
+ scope_id: Indelning
124
+ scopes_enabled: Aktivera indelningar
125
125
  terms_and_conditions_url_for_meeting_creators: Adress till användarvillkor för mötesförfattare
126
126
  step:
127
127
  announcement: Meddelande
@@ -544,6 +544,8 @@ sv:
544
544
  private_meeting: Privat möte
545
545
  transparent: Transparent
546
546
  withdraw: Tillbakadragna
547
+ withdraw:
548
+ error: Ett fel uppstod när mötet skulle tas bort.
547
549
  metrics:
548
550
  meetings:
549
551
  description: Antal skapade möten
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-meetings version.
5
5
  module Meetings
6
6
  def self.version
7
- "0.28.2"
7
+ "0.28.3"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-meetings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.2
4
+ version: 0.28.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-07-16 00:00:00.000000000 Z
13
+ date: 2024-09-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.28.2
21
+ version: 0.28.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.28.2
28
+ version: 0.28.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-forms
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.2
35
+ version: 0.28.3
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.28.2
42
+ version: 0.28.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: icalendar
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,56 +60,56 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.28.2
63
+ version: 0.28.3
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.28.2
70
+ version: 0.28.3
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-assemblies
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.28.2
77
+ version: 0.28.3
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.28.2
84
+ version: 0.28.3
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.28.2
91
+ version: 0.28.3
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.28.2
98
+ version: 0.28.3
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-participatory_processes
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.28.2
105
+ version: 0.28.3
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.28.2
112
+ version: 0.28.3
113
113
  description: A meetings component for decidim's participatory spaces.
114
114
  email:
115
115
  - josepjaume@gmail.com