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 +4 -4
- data/app/cells/decidim/comments/comment_cell.rb +2 -2
- data/app/cells/decidim/comments/comments/add_comment.erb +1 -1
- data/app/cells/decidim/comments/comments/show.erb +2 -2
- data/config/locales/ar.yml +3 -0
- data/config/locales/cs.yml +1 -0
- data/config/locales/fi-plain.yml +1 -0
- data/config/locales/fi.yml +1 -0
- data/config/locales/gl.yml +1 -0
- data/config/locales/pl.yml +2 -2
- data/lib/decidim/comments/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544b42507ac1c9af18e8c4d27773b626d5f7730fdcdfd8915d1d10908aa7e144
|
4
|
+
data.tar.gz: f6df72a1c91e7abae34050a002dce9a00bb405e3db9b9ae4c35e7a6aa42786eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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
|
-
<
|
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
|
-
</
|
13
|
+
</h3>
|
14
14
|
<%= render :order_control %>
|
15
15
|
</div>
|
16
16
|
<%= single_comment_warning %>
|
data/config/locales/ar.yml
CHANGED
@@ -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:
|
data/config/locales/cs.yml
CHANGED
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/gl.yml
CHANGED
data/config/locales/pl.yml
CHANGED
@@ -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:
|
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:
|
114
|
+
submit: Skomentuj
|
115
115
|
title: Edytuj swój komentarz
|
116
116
|
up_vote_button:
|
117
117
|
text: Zgadzam się z tym komentarzem
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
76
|
+
version: 0.26.1
|
77
77
|
description: Pluggable comments system for some components.
|
78
78
|
email:
|
79
79
|
- josepjaume@gmail.com
|