decidim-debates 0.19.1 → 0.20.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f3e56d600d28b210ec4965b7650b99cbcadd78c19cb8a06fa74fb5bbe7bfbb
|
4
|
+
data.tar.gz: 715de68b629702a0d54813789d4fa2b843b786e6ca5187277e32590d560db6f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ab1daabf99f418d07d8916ae98542d796e0da42def31297fb8d381e5f3b4e2ecf8d7f77446b8238c33a52b448680873ae076d5c042671056fd382d5de33da7
|
7
|
+
data.tar.gz: 3367054d0a3e02ed831720d90085f4e47facc810362184a0170e5912bbd4f934e1350f17350450216f624333fd1193aaf12be1b6726d265137d5b6408576690f
|
@@ -19,11 +19,21 @@ module Decidim
|
|
19
19
|
include Decidim::Loggable
|
20
20
|
include Decidim::DataPortability
|
21
21
|
include Decidim::NewsletterParticipant
|
22
|
+
include Decidim::Searchable
|
22
23
|
|
23
24
|
component_manifest_name "debates"
|
24
25
|
|
25
26
|
validates :title, presence: true
|
26
27
|
|
28
|
+
searchable_fields({
|
29
|
+
participatory_space: { component: :participatory_space },
|
30
|
+
A: :title,
|
31
|
+
D: :description,
|
32
|
+
datetime: :start_time
|
33
|
+
},
|
34
|
+
index_on_create: ->(debate) { debate.visible? },
|
35
|
+
index_on_update: ->(debate) { debate.visible? })
|
36
|
+
|
27
37
|
def self.log_presenter_class_for(_log)
|
28
38
|
Decidim::Debates::AdminLog::DebatePresenter
|
29
39
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= render partial: "count" %>
|
7
7
|
</h2>
|
8
8
|
<% if current_settings.creation_enabled? && current_component.participatory_space.can_participate?(current_user) %>
|
9
|
-
<%= action_authorized_link_to :create, new_debate_path, class: "title-action__action button small
|
9
|
+
<%= action_authorized_link_to :create, new_debate_path, class: "title-action__action button small", data: { "redirect_url" => new_debate_path } do %>
|
10
10
|
<%= t(".new_debate") %>
|
11
11
|
<%= icon "plus" %>
|
12
12
|
<% end %>
|
@@ -34,6 +34,7 @@ Decidim.register_component(:debates) do |component|
|
|
34
34
|
component.register_resource(:debate) do |resource|
|
35
35
|
resource.model_class_name = "Decidim::Debates::Debate"
|
36
36
|
resource.card = "decidim/debates/debate"
|
37
|
+
resource.searchable = true
|
37
38
|
end
|
38
39
|
|
39
40
|
component.actions = %w(create)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-debates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-comments
|
@@ -19,28 +19,28 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.20.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: decidim-core
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - '='
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.20.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - '='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
43
|
+
version: 0.20.0
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: kaminari
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,28 +75,28 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - '='
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.
|
78
|
+
version: 0.20.0
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - '='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.20.0
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: decidim-dev
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - '='
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.
|
92
|
+
version: 0.20.0
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - '='
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 0.20.0
|
100
100
|
description: A debates component for decidim's participatory spaces.
|
101
101
|
email:
|
102
102
|
- josepjaume@gmail.com
|