decidim-meetings 0.29.0.rc3 → 0.29.0.rc4

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: e82405544f081827a990203c0a4f3e5122ce30b6aa807d1b35d614b0e5476c18
4
- data.tar.gz: 781af9d33c320ba3046ae84f0b3b1bf9c1068c935109cbaabd3e984ef22ff39f
3
+ metadata.gz: 138d1388379cbfc6a8babe15845b3fe36e41deb27b94a11d6aca614be8f3868d
4
+ data.tar.gz: b05db559a7ce9ee5bd3c076ee073058d9738da7348fa9b028b934d8057a4c412
5
5
  SHA512:
6
- metadata.gz: ed459174d6cd38d81a51aed8243e7adc67bc59505374bd40c414401c27eef1af643a9eec9dac811ca081d255cca8f1186c8e8cb343fceb214b89bd41f6734a32
7
- data.tar.gz: fcca59de2399a8bcc9636bd387f1bd6037a22cbac63dcc28f6b5ef421fecdf51ff9c1f3210be1f3f70bd6bedb85b39649861586bee4ab6eeb7491960a120da6b
6
+ metadata.gz: be00719b4a7f032fa5d23aef1f861b740b9cefb6307fef8a759c3d68b5d886776b9f989362e4516d9daec0a276dc3a0fdd51bbf08f321eb9629012b5b5bfa865
7
+ data.tar.gz: 04b34d704c88bcb2c9e5f04bcf95e9dddc08dc980c76a72f5aa42a287d372c7af24c76f70aecda00d0716f84974d2b4bcba6169ac76e5742f7d9add815c17231
@@ -9,10 +9,6 @@ module Decidim
9
9
  class MeetingLCell < Decidim::CardLCell
10
10
  alias meeting model
11
11
 
12
- def has_image?
13
- true
14
- end
15
-
16
12
  def extra_class
17
13
  "card__calendar-list__reset"
18
14
  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)
@@ -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">
@@ -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.29.0.rc3"
7
+ "0.29.0.rc4"
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.29.0.rc3
4
+ version: 0.29.0.rc4
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-22 00:00:00.000000000 Z
13
+ date: 2024-07-30 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.29.0.rc3
21
+ version: 0.29.0.rc4
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.29.0.rc3
28
+ version: 0.29.0.rc4
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.29.0.rc3
35
+ version: 0.29.0.rc4
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.29.0.rc3
42
+ version: 0.29.0.rc4
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.29.0.rc3
63
+ version: 0.29.0.rc4
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.29.0.rc3
70
+ version: 0.29.0.rc4
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.29.0.rc3
77
+ version: 0.29.0.rc4
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.29.0.rc3
84
+ version: 0.29.0.rc4
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.29.0.rc3
91
+ version: 0.29.0.rc4
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.29.0.rc3
98
+ version: 0.29.0.rc4
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.29.0.rc3
105
+ version: 0.29.0.rc4
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.29.0.rc3
112
+ version: 0.29.0.rc4
113
113
  description: A meetings component for decidim's participatory spaces.
114
114
  email:
115
115
  - josepjaume@gmail.com