decidim-comments 0.26.0 → 0.26.1

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: 9903736806a3d7efe85f3d373935800106918e251e43cf8ec24cc7e9ec8f8797
4
- data.tar.gz: 3a2649ef1b67bdc602b203de100b7ef51b8ff9751cd399244170690082880e2f
3
+ metadata.gz: 544b42507ac1c9af18e8c4d27773b626d5f7730fdcdfd8915d1d10908aa7e144
4
+ data.tar.gz: f6df72a1c91e7abae34050a002dce9a00bb405e3db9b9ae4c35e7a6aa42786eb
5
5
  SHA512:
6
- metadata.gz: 50a349c6acd1b0e54e2d94e7fa98304e90ac052485058e78e9b1e67b647a9cacecb679f2843bfaf31db1e9bf6186bf07b2fc359bf7058eae035791196012c924
7
- data.tar.gz: 3d2f9498c1ebecafd97f386fc2fdbfc2d8033959880148be737e2187a0cb53640d2345234e21c9568c5685de6bbcc11b4f19f66fb71599ef1932ffd33fc001da
6
+ metadata.gz: 84555f2d8fb3c8cb4454fff5d29dff6c2968743db1f995cdd12e9e74ea8658fe865e93e1d94b021ad8a9721deb3d5bd81c6a5d38aec2602d09cf8fbcfa63f37b
7
+ data.tar.gz: f868fcf2a600b51870c1daa659f6a0f9a637ad4898d5e78b3c9f36fb7cb6c142ac4030696dc00d35babbe0ed409f33b4e008218f2aa11aaf67d1e4593f791ccc
@@ -34,7 +34,7 @@ module Decidim
34
34
  end
35
35
 
36
36
  def perform_caching?
37
- super && has_replies_in_children? == false
37
+ super && has_replies_in_children? == false && current_user.blank?
38
38
  end
39
39
 
40
40
  private
@@ -134,7 +134,7 @@ module Decidim
134
134
  end
135
135
 
136
136
  def commentable_path(params = {})
137
- if root_commentable.is_a?(Decidim::Budgets::Project)
137
+ if defined?(Decidim::Budgets) && root_commentable.is_a?(Decidim::Budgets::Project)
138
138
  resource_locator([root_commentable.budget, root_commentable]).path(params)
139
139
  else
140
140
  resource_locator(root_commentable).path(params)
@@ -1,5 +1,5 @@
1
1
  <div class="add-comment">
2
- <h5 class="section-heading"><%= t("decidim.components.add_comment_form.title") %></h5>
2
+ <h4 class="section-heading"><%= t("decidim.components.add_comment_form.title") %></h4>
3
3
 
4
4
  <% if user_signed_in? %>
5
5
  <% if alignment_enabled? %>
@@ -2,7 +2,7 @@
2
2
  <div class="columns large-9 comments-container" id="comments">
3
3
  <div class="comments">
4
4
  <div class="row collapse order-by">
5
- <h4 class="order-by__text section-heading">
5
+ <h3 class="order-by__text section-heading">
6
6
  <% if single_comment? %>
7
7
  <%= t("decidim.components.comments.comment_details_title") %>
8
8
  <% else %>
@@ -10,7 +10,7 @@
10
10
  <%= t("decidim.components.comments.title", count: comments_count) %>
11
11
  </span>
12
12
  <% end %>
13
- </h4>
13
+ </h3>
14
14
  <%= render :order_control %>
15
15
  </div>
16
16
  <%= single_comment_warning %>
@@ -24,6 +24,7 @@ ar:
24
24
  other: الأصوات
25
25
  decidim:
26
26
  comments:
27
+ comments_title: التعليقات
27
28
  last_activity:
28
29
  new_comment_at_html: "<span>تعليق جديد على %{link}</span>"
29
30
  votes:
@@ -49,7 +50,9 @@ ar:
49
50
  alignment:
50
51
  against: ضد
51
52
  in_favor: لصالح
53
+ delete: حذف
52
54
  deleted_user: مشارك محذوف
55
+ edit: تعديل
53
56
  hide_replies: إخفاء الردود
54
57
  reply: الرد
55
58
  report:
@@ -74,6 +74,7 @@ cs:
74
74
  edit: Upravit
75
75
  edited: Upraveno
76
76
  hide_replies: Skrýt odpovědi
77
+ moderated_at: Komentář moderován dne %{date}
77
78
  reply: Odpověď
78
79
  report:
79
80
  action: Zpráva
@@ -70,6 +70,7 @@ fi-pl:
70
70
  edit: Muokkaa
71
71
  edited: Muokattu
72
72
  hide_replies: Piilota vastaukset
73
+ moderated_at: Kommentti moderoitu %{date}
73
74
  reply: Vastaa
74
75
  report:
75
76
  action: Tee ilmoitus
@@ -70,6 +70,7 @@ fi:
70
70
  edit: Muokkaa
71
71
  edited: Muokattu
72
72
  hide_replies: Piilota vastaukset
73
+ moderated_at: Kommentti moderoitu %{date}
73
74
  reply: Vastaa
74
75
  report:
75
76
  action: Tee ilmoitus
@@ -70,6 +70,7 @@ gl:
70
70
  edit: Editar
71
71
  edited: Editado
72
72
  hide_replies: Ocultar respostas
73
+ moderated_at: Comentario moderado o %{date}
73
74
  reply: Responder
74
75
  report:
75
76
  action: Informe
@@ -43,7 +43,7 @@ pl:
43
43
  label: Komentarz
44
44
  placeholder: Co o tym myślisz?
45
45
  form_error: 'Tekst jest wymagany. Maksymalna liczba znaków to: %{length}.'
46
- submit: Wyślij
46
+ submit: Skomentuj
47
47
  user_group_id:
48
48
  label: Komentuj jako
49
49
  opinion:
@@ -111,7 +111,7 @@ pl:
111
111
  body:
112
112
  label: Komentarz
113
113
  placeholder: Co o tym myślisz?
114
- submit: Wyślij
114
+ submit: Skomentuj
115
115
  title: Edytuj swój komentarz
116
116
  up_vote_button:
117
117
  text: Zgadzam się z tym komentarzem
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.26.0"
7
+ "0.26.1"
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-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.26.1
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: 2022-02-22 00:00:00.000000000 Z
13
+ date: 2022-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.26.0
21
+ version: 0.26.1
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.26.0
28
+ version: 0.26.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: redcarpet
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -52,28 +52,28 @@ dependencies:
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.26.0
55
+ version: 0.26.1
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.26.0
62
+ version: 0.26.1
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: decidim-dev
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.26.0
69
+ version: 0.26.1
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 0.26.0
76
+ version: 0.26.1
77
77
  description: Pluggable comments system for some components.
78
78
  email:
79
79
  - josepjaume@gmail.com