decidim-comments 0.25.1 → 0.25.2

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: 4a5b6c36fa330c80091a3962638dc00b8053bfc94a9eccfbb8ed11074ddb1f63
4
- data.tar.gz: ad533cc203a79d10f506f7181ef65a59eda8a8a666640d5cc54d3ea5d691964f
3
+ metadata.gz: d1e3298db6f46520ee3aec73dfd157903fdd6c2d04df4aecaa2f12adaa7459b8
4
+ data.tar.gz: bed10b00feb2030206840417606cdb319e6c7b22c1a43bd97aaffa5f4b38c285
5
5
  SHA512:
6
- metadata.gz: 817873be527ccc087a0ba059fcee7c47a73607dd8366ec2c10f22ff4fe2df01bb727badfa149c8541056680f0d3284441f6d73f092371f92aa8f60f03e564c64
7
- data.tar.gz: 8be9c7a62a9da1b868a65aa8f38cd0a361ae1bf7095faac98fd9103450e5581498efa77b8ade6d93813279cc5d45a50a1cd4fc5485d841d6856f482ce1edc45e
6
+ metadata.gz: f93e2ace868d629d78f279ff19fae6abe67c9bee71c177dc2cb22b1c96a76b78834722b118f7206f210b9c28ff2f3126b57c68f84a5cb9fe49bd307275edd38f
7
+ data.tar.gz: 609fd4dea72997a20dfea7570d2524a5f9a614521dde027fce2bec1cb696d5458ade26a7bb1e2697fe0bb27029b9a1de459060c00929c10f056a5e6f4719db29
@@ -61,6 +61,8 @@ module Decidim
61
61
  end
62
62
 
63
63
  def commentable_path(params = {})
64
+ return resource_locator(Array(options[:polymorphic]).push(model)).path(params) if options[:polymorphic]
65
+
64
66
  resource_locator(model).path(params)
65
67
  end
66
68
 
@@ -59,7 +59,7 @@ ro:
59
59
  alignment:
60
60
  against: Împotrivă
61
61
  in_favor: Pentru
62
- confirm_destroy: Ești sigur(ă) că vrei să ştergi acest comentariu?
62
+ confirm_destroy: Sigur dorești să ştergi acest comentariu?
63
63
  delete: Șterge
64
64
  deleted_at: Comentariu șters la %{date}
65
65
  deleted_user: Participant șters
@@ -7,11 +7,11 @@ module Decidim
7
7
  # Render commentable comments inside the `expanded` template content.
8
8
  #
9
9
  # resource - A commentable resource
10
- def comments_for(resource)
10
+ def comments_for(resource, options = {})
11
11
  return unless resource.commentable?
12
12
 
13
13
  content_for :expanded do
14
- inline_comments_for(resource)
14
+ inline_comments_for(resource, options)
15
15
  end
16
16
  end
17
17
 
@@ -28,7 +28,8 @@ module Decidim
28
28
  resource,
29
29
  machine_translations: machine_translations_toggled?,
30
30
  single_comment: params.fetch("commentId", nil),
31
- order: options[:order]
31
+ order: options[:order],
32
+ polymorphic: options[:polymorphic]
32
33
  ).to_s
33
34
  end
34
35
  end
@@ -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.25.1"
7
+ "0.25.2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.1
4
+ version: 0.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-11-02 00:00:00.000000000 Z
13
+ date: 2021-11-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.25.1
21
+ version: 0.25.2
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.25.1
28
+ version: 0.25.2
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.25.1
55
+ version: 0.25.2
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.25.1
62
+ version: 0.25.2
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.25.1
69
+ version: 0.25.2
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.25.1
76
+ version: 0.25.2
77
77
  description: Pluggable comments system for some components.
78
78
  email:
79
79
  - josepjaume@gmail.com
@@ -85,7 +85,6 @@ extra_rdoc_files: []
85
85
  files:
86
86
  - README.md
87
87
  - Rakefile
88
- - app/assets/javascripts/decidim/comments/bundle.js.map
89
88
  - app/cells/decidim/comments/comment/actions.erb
90
89
  - app/cells/decidim/comments/comment/alignment_badge.erb
91
90
  - app/cells/decidim/comments/comment/author.erb
@@ -282,7 +281,7 @@ homepage: https://github.com/decidim/decidim
282
281
  licenses:
283
282
  - AGPL-3.0
284
283
  metadata: {}
285
- post_install_message:
284
+ post_install_message:
286
285
  rdoc_options: []
287
286
  require_paths:
288
287
  - lib
@@ -298,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
297
  version: '0'
299
298
  requirements: []
300
299
  rubygems_version: 3.1.2
301
- signing_key:
300
+ signing_key:
302
301
  specification_version: 4
303
302
  summary: Decidim comments module
304
303
  test_files: []