decidim-debates 0.29.2 → 0.30.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/debates/content_blocks/highlighted_debates/content.erb +16 -0
- data/app/cells/decidim/debates/content_blocks/highlighted_debates_cell.rb +49 -0
- data/app/cells/decidim/debates/debate_card_metadata_cell.rb +2 -11
- data/app/cells/decidim/debates/debate_g/show.erb +12 -0
- data/app/cells/decidim/debates/debate_g_cell.rb +23 -0
- data/app/cells/decidim/debates/debate_metadata_g_cell.rb +14 -0
- data/app/commands/decidim/debates/admin/create_debate.rb +25 -2
- data/app/commands/decidim/debates/admin/update_debate.rb +34 -5
- data/app/commands/decidim/debates/create_debate.rb +22 -1
- data/app/commands/decidim/debates/update_debate.rb +26 -2
- data/app/controllers/decidim/debates/admin/debates_controller.rb +17 -14
- data/app/controllers/decidim/debates/debates_controller.rb +8 -4
- data/app/forms/decidim/debates/admin/debate_form.rb +34 -26
- data/app/forms/decidim/debates/debate_form.rb +12 -29
- data/app/helpers/decidim/debates/application_helper.rb +8 -8
- data/app/models/decidim/debates/debate.rb +23 -1
- data/app/permissions/decidim/debates/admin/permissions.rb +5 -5
- data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +1 -1
- data/app/presenters/decidim/debates/debate_presenter.rb +1 -1
- data/app/queries/decidim/debates/metrics/debate_followers_metric_measure.rb +2 -2
- data/app/queries/decidim/debates/metrics/debate_participants_metric_measure.rb +2 -2
- data/app/queries/decidim/debates/metrics/debates_metric_manage.rb +6 -6
- data/app/serializers/decidim/debates/download_your_data_debate_serializer.rb +6 -13
- data/app/views/decidim/debates/admin/debates/_actions.html.erb +27 -0
- data/app/views/decidim/debates/admin/debates/_debate-tr.html.erb +25 -0
- data/app/views/decidim/debates/admin/debates/_debates-thead.html.erb +9 -0
- data/app/views/decidim/debates/admin/debates/_form.html.erb +27 -6
- data/app/views/decidim/debates/admin/debates/index.html.erb +17 -55
- data/app/views/decidim/debates/admin/debates/manage_trash.html.erb +19 -0
- data/app/views/decidim/debates/debates/_debate_actions.html.erb +33 -0
- data/app/views/decidim/debates/debates/_form.html.erb +19 -6
- data/app/views/decidim/debates/debates/index.html.erb +10 -1
- data/app/views/decidim/debates/debates/show.html.erb +31 -44
- data/config/locales/ar.yml +9 -12
- data/config/locales/bg.yml +1 -15
- data/config/locales/ca.yml +79 -16
- data/config/locales/cs.yml +79 -16
- data/config/locales/de.yml +79 -16
- data/config/locales/el.yml +1 -15
- data/config/locales/en.yml +78 -15
- data/config/locales/es-MX.yml +79 -16
- data/config/locales/es-PY.yml +79 -16
- data/config/locales/es.yml +79 -16
- data/config/locales/eu.yml +79 -16
- data/config/locales/fi-plain.yml +79 -16
- data/config/locales/fi.yml +79 -16
- data/config/locales/fr-CA.yml +41 -16
- data/config/locales/fr.yml +41 -16
- data/config/locales/ga-IE.yml +0 -10
- data/config/locales/gl.yml +1 -13
- data/config/locales/hu.yml +1 -15
- data/config/locales/id-ID.yml +1 -13
- data/config/locales/is-IS.yml +0 -10
- data/config/locales/it.yml +1 -15
- data/config/locales/ja.yml +79 -16
- data/config/locales/lb.yml +0 -6
- data/config/locales/lt.yml +1 -15
- data/config/locales/lv.yml +1 -11
- data/config/locales/nl.yml +1 -14
- data/config/locales/no.yml +1 -15
- data/config/locales/pl.yml +1 -15
- data/config/locales/pt-BR.yml +1 -15
- data/config/locales/pt.yml +1 -15
- data/config/locales/ro-RO.yml +32 -46
- data/config/locales/ru.yml +0 -12
- data/config/locales/sk.yml +1 -13
- data/config/locales/sl.yml +0 -2
- data/config/locales/sv.yml +1 -15
- data/config/locales/tr-TR.yml +1 -15
- data/config/locales/uk.yml +0 -12
- data/config/locales/zh-CN.yml +1 -13
- data/config/locales/zh-TW.yml +1 -15
- data/db/migrate/20200827154116_add_commentable_counter_cache_to_debates.rb +1 -1
- data/db/migrate/20200902133452_add_cached_comment_metadata_to_debates.rb +1 -1
- data/db/migrate/20210310120652_add_followable_counter_cache_to_debates.rb +1 -1
- data/db/migrate/20240828103648_add_deleted_at_to_decidim_debates_debates.rb +8 -0
- data/db/migrate/20241017153555_add_comments_layout_to_debates.rb +7 -0
- data/decidim-debates.gemspec +1 -1
- data/lib/decidim/api/debate_type.rb +6 -8
- data/lib/decidim/api/debates_type.rb +4 -5
- data/lib/decidim/debates/admin_engine.rb +7 -0
- data/lib/decidim/debates/component.rb +19 -4
- data/lib/decidim/debates/debate_serializer.rb +83 -0
- data/lib/decidim/debates/seeds.rb +1 -8
- data/lib/decidim/debates/test/factories.rb +2 -0
- data/lib/decidim/debates/version.rb +1 -1
- data/lib/decidim/debates.rb +1 -0
- metadata +27 -15
- data/app/helpers/decidim/debates/admin/application_helper.rb +0 -13
data/config/locales/zh-TW.yml
CHANGED
@@ -3,15 +3,12 @@ zh-TW:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
debate:
|
6
|
-
category_id: 類別
|
7
6
|
closed_at: 關閉於
|
8
7
|
conclusions: 結論
|
9
|
-
decidim_category_id: 類別
|
10
8
|
description: 說明
|
11
9
|
end_time: 結束於
|
12
10
|
information_updates: 資訊更新
|
13
11
|
instructions: 參加指南
|
14
|
-
scope_id: 範圍
|
15
12
|
start_time: 開始於
|
16
13
|
title: 標題
|
17
14
|
user_group_id: 建立辯論為
|
@@ -29,7 +26,6 @@ zh-TW:
|
|
29
26
|
debates:
|
30
27
|
actions:
|
31
28
|
comment: 留言
|
32
|
-
create: 建立
|
33
29
|
endorse: 連署
|
34
30
|
name: 辯論
|
35
31
|
settings:
|
@@ -37,8 +33,6 @@ zh-TW:
|
|
37
33
|
announcement: 公告
|
38
34
|
comments_enabled: 啟用評論功能
|
39
35
|
comments_max_length: 評論字數最大長度(若要使用預設值請輸入0)
|
40
|
-
scope_id: 範圍
|
41
|
-
scopes_enabled: 啟用範圍
|
42
36
|
step:
|
43
37
|
announcement: 公告
|
44
38
|
comments_blocked: 留言已封鎖
|
@@ -48,8 +42,6 @@ zh-TW:
|
|
48
42
|
debates:
|
49
43
|
actions:
|
50
44
|
close: 關閉
|
51
|
-
confirm_destroy: 您確定嗎?
|
52
|
-
destroy: 刪除
|
53
45
|
edit: 編輯
|
54
46
|
title: 操作
|
55
47
|
admin:
|
@@ -61,8 +53,6 @@ zh-TW:
|
|
61
53
|
create:
|
62
54
|
invalid: 建立辯論時出現問題。
|
63
55
|
success: 辯論建立成功。
|
64
|
-
destroy:
|
65
|
-
success: 辯論已成功刪除。
|
66
56
|
edit:
|
67
57
|
title: 編輯辯論
|
68
58
|
update: 更新辯論
|
@@ -117,8 +107,6 @@ zh-TW:
|
|
117
107
|
state_values:
|
118
108
|
closed: 關閉
|
119
109
|
open: 開啟
|
120
|
-
form:
|
121
|
-
select_a_category: 請選擇一個類別
|
122
110
|
index:
|
123
111
|
new_debate: 新辯論
|
124
112
|
new:
|
@@ -132,11 +120,9 @@ zh-TW:
|
|
132
120
|
recent: 最近
|
133
121
|
updated: 最近更新
|
134
122
|
show:
|
135
|
-
close_debate: 關閉辯論
|
136
123
|
debate_closed: 關閉
|
137
124
|
debate_conclusions_are: '此辯論已於 %{date} 結束,以下是總結結論:'
|
138
125
|
edit_conclusions: 修改結論
|
139
|
-
edit_debate: 編輯辯論
|
140
126
|
groups_count: 群組
|
141
127
|
open: 開放性辯論
|
142
128
|
participants_count: 參與者
|
@@ -188,7 +174,7 @@ zh-TW:
|
|
188
174
|
badges:
|
189
175
|
commented_debates:
|
190
176
|
conditions:
|
191
|
-
|
177
|
+
- 選擇一個開放辯論加入
|
192
178
|
description: 當你在不同辯論中發表評論時,會被授予此徽章。
|
193
179
|
description_another: 此參與者已參與了 %{score} 個辯論。
|
194
180
|
description_own: 您已經參與了 %{score} 場辯論
|
@@ -6,7 +6,7 @@ class AddCommentableCounterCacheToDebates < ActiveRecord::Migration[5.2]
|
|
6
6
|
Decidim::Debates::Debate.reset_column_information
|
7
7
|
|
8
8
|
# rubocop:disable Rails/SkipsModelValidations
|
9
|
-
Decidim::Debates::Debate.includes(:comments).find_each do |debate|
|
9
|
+
Decidim::Debates::Debate.unscoped.includes(:comments).find_each do |debate|
|
10
10
|
debate.update_columns(comments_count: debate.comments.not_hidden.count)
|
11
11
|
end
|
12
12
|
# rubocop:enable Rails/SkipsModelValidations
|
@@ -8,7 +8,7 @@ class AddCachedCommentMetadataToDebates < ActiveRecord::Migration[5.2]
|
|
8
8
|
|
9
9
|
# rubocop:disable Rails/SkipsModelValidations
|
10
10
|
Decidim::Debates::Debate.reset_column_information
|
11
|
-
Decidim::Debates::Debate.includes(comments: [:author, :user_group]).find_each do |debate|
|
11
|
+
Decidim::Debates::Debate.unscoped.includes(comments: [:author, :user_group]).find_each do |debate|
|
12
12
|
last_comment = debate.comments.order("created_at DESC").first
|
13
13
|
next unless last_comment
|
14
14
|
|
@@ -7,7 +7,7 @@ class AddFollowableCounterCacheToDebates < ActiveRecord::Migration[5.2]
|
|
7
7
|
reversible do |dir|
|
8
8
|
dir.up do
|
9
9
|
Decidim::Debates::Debate.reset_column_information
|
10
|
-
Decidim::Debates::Debate.find_each do |record|
|
10
|
+
Decidim::Debates::Debate.unscoped.find_each do |record|
|
11
11
|
record.class.reset_counters(record.id, :follows)
|
12
12
|
end
|
13
13
|
end
|
data/decidim-debates.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
"homepage_uri" => "https://decidim.org",
|
19
19
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
20
20
|
}
|
21
|
-
s.required_ruby_version = "~> 3.
|
21
|
+
s.required_ruby_version = "~> 3.3.0"
|
22
22
|
|
23
23
|
s.name = "decidim-debates"
|
24
24
|
s.summary = "Decidim debates module"
|
@@ -3,24 +3,22 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Debates
|
5
5
|
class DebateType < Decidim::Api::Types::BaseObject
|
6
|
-
implements Decidim::Core::
|
6
|
+
implements Decidim::Core::TaxonomizableInterface
|
7
7
|
implements Decidim::Comments::CommentableInterface
|
8
8
|
implements Decidim::Core::AuthorableInterface
|
9
|
-
implements Decidim::Core::
|
9
|
+
implements Decidim::Core::TimestampsInterface
|
10
10
|
|
11
11
|
description "A debate"
|
12
12
|
|
13
|
-
field :id, GraphQL::Types::ID, "The internal ID for this debate", null: false
|
14
|
-
field :title, Decidim::Core::TranslatedFieldType, "The title for this debate", null: true
|
15
13
|
field :description, Decidim::Core::TranslatedFieldType, "The description for this debate", null: true
|
16
|
-
field :instructions, Decidim::Core::TranslatedFieldType, "The instructions for this debate", null: true
|
17
|
-
field :start_time, Decidim::Core::DateTimeType, "The start time for this debate", null: true
|
18
14
|
field :end_time, Decidim::Core::DateTimeType, "The end time for this debate", null: true
|
15
|
+
field :id, GraphQL::Types::ID, "The internal ID for this debate", null: false
|
19
16
|
field :image, GraphQL::Types::String, "The image of this debate", null: true
|
20
|
-
field :created_at, Decidim::Core::DateTimeType, "When this debate was created", null: true
|
21
|
-
field :updated_at, Decidim::Core::DateTimeType, "When this debate was updated", null: true
|
22
17
|
field :information_updates, Decidim::Core::TranslatedFieldType, "The information updates for this debate", null: true
|
18
|
+
field :instructions, Decidim::Core::TranslatedFieldType, "The instructions for this debate", null: true
|
23
19
|
field :reference, GraphQL::Types::String, "The reference for this debate", null: true
|
20
|
+
field :start_time, Decidim::Core::DateTimeType, "The start time for this debate", null: true
|
21
|
+
field :title, Decidim::Core::TranslatedFieldType, "The title for this debate", null: true
|
24
22
|
|
25
23
|
def self.authorized?(object, context)
|
26
24
|
context[:debate] = object
|
@@ -6,16 +6,15 @@ module Decidim
|
|
6
6
|
graphql_name "Debates"
|
7
7
|
description "A debates component of a participatory space."
|
8
8
|
|
9
|
-
field :
|
9
|
+
field :debate, Decidim::Debates::DebateType, "A single Debate object", null: true do
|
10
|
+
argument :id, GraphQL::Types::ID, "The id of the Debate requested", required: true
|
11
|
+
end
|
12
|
+
field :debates, Decidim::Debates::DebateType.connection_type, "A collection of Debates", null: true, connection: true
|
10
13
|
|
11
14
|
def debates
|
12
15
|
Debate.where(component: object).includes(:component)
|
13
16
|
end
|
14
17
|
|
15
|
-
field :debate, Decidim::Debates::DebateType, null: true do
|
16
|
-
argument :id, GraphQL::Types::ID, required: true
|
17
|
-
end
|
18
|
-
|
19
18
|
def debate(**args)
|
20
19
|
Debate.where(component: object).find_by(id: args[:id])
|
21
20
|
end
|
@@ -14,6 +14,13 @@ module Decidim
|
|
14
14
|
routes do
|
15
15
|
resources :debates do
|
16
16
|
resources :debate_closes, only: [:edit, :update]
|
17
|
+
|
18
|
+
member do
|
19
|
+
patch :soft_delete
|
20
|
+
patch :restore
|
21
|
+
end
|
22
|
+
|
23
|
+
get :manage_trash, on: :collection
|
17
24
|
end
|
18
25
|
root to: "debates#index"
|
19
26
|
end
|
@@ -17,11 +17,11 @@ Decidim.register_component(:debates) do |component|
|
|
17
17
|
end
|
18
18
|
|
19
19
|
component.settings(:global) do |settings|
|
20
|
-
settings.attribute :
|
21
|
-
settings.attribute :scope_id, type: :scope
|
20
|
+
settings.attribute :taxonomy_filters, type: :taxonomy_filters
|
22
21
|
settings.attribute :comments_enabled, type: :boolean, default: true
|
23
22
|
settings.attribute :comments_max_length, type: :integer, required: true
|
24
23
|
settings.attribute :announcement, type: :text, translated: true, editor: true
|
24
|
+
settings.attribute :attachments_allowed, type: :boolean, default: false
|
25
25
|
end
|
26
26
|
|
27
27
|
component.settings(:step) do |settings|
|
@@ -56,13 +56,28 @@ Decidim.register_component(:debates) do |component|
|
|
56
56
|
|
57
57
|
component.actions = %w(create endorse comment)
|
58
58
|
|
59
|
-
component.exports :
|
59
|
+
component.exports :debates do |exports|
|
60
|
+
exports.collection do |component_instance|
|
61
|
+
Decidim::Debates::Debate
|
62
|
+
.not_hidden
|
63
|
+
.where(component: component_instance)
|
64
|
+
.includes(:taxonomies, component: { participatory_space: :organization })
|
65
|
+
end
|
66
|
+
|
67
|
+
exports.include_in_open_data = true
|
68
|
+
|
69
|
+
exports.serializer Decidim::Debates::DebateSerializer
|
70
|
+
end
|
71
|
+
|
72
|
+
component.exports :debate_comments do |exports|
|
60
73
|
exports.collection do |component_instance|
|
61
74
|
Decidim::Comments::Export.comments_for_resource(
|
62
75
|
Decidim::Debates::Debate, component_instance
|
63
|
-
)
|
76
|
+
).includes(:author, :user_group, root_commentable: { component: { participatory_space: :organization } })
|
64
77
|
end
|
65
78
|
|
79
|
+
exports.include_in_open_data = true
|
80
|
+
|
66
81
|
exports.serializer Decidim::Comments::CommentSerializer
|
67
82
|
end
|
68
83
|
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
# This class serializes a Debate so can be exported to CSV, JSON or other
|
6
|
+
# formats.
|
7
|
+
class DebateSerializer < Decidim::Exporters::Serializer
|
8
|
+
include Decidim::ApplicationHelper
|
9
|
+
include Decidim::ResourceHelper
|
10
|
+
|
11
|
+
# Public: Exports a hash with the serialized data for this resource.
|
12
|
+
def serialize
|
13
|
+
{
|
14
|
+
id: resource.id,
|
15
|
+
author: {
|
16
|
+
**author_fields
|
17
|
+
},
|
18
|
+
title: resource.title,
|
19
|
+
description: resource.description,
|
20
|
+
instructions: resource.instructions,
|
21
|
+
start_time: resource.start_time,
|
22
|
+
end_time: resource.end_time,
|
23
|
+
information_updates: resource.information_updates,
|
24
|
+
taxonomies:,
|
25
|
+
participatory_space: {
|
26
|
+
id: resource.participatory_space.id,
|
27
|
+
url: Decidim::ResourceLocatorPresenter.new(resource.participatory_space).url
|
28
|
+
},
|
29
|
+
component: { id: component.id },
|
30
|
+
reference: resource.reference,
|
31
|
+
comments: resource.comments_count,
|
32
|
+
follows_count: resource.follows_count,
|
33
|
+
url: Decidim::ResourceLocatorPresenter.new(resource).url,
|
34
|
+
last_comment_at: resource.last_comment_at,
|
35
|
+
last_comment_by: {
|
36
|
+
**last_comment_by_fields
|
37
|
+
},
|
38
|
+
comments_enabled: resource.comments_enabled,
|
39
|
+
conclusions: resource.conclusions,
|
40
|
+
closed_at: resource.closed_at,
|
41
|
+
created_at: resource.created_at,
|
42
|
+
updated_at: resource.updated_at,
|
43
|
+
endorsements_count: resource.endorsements_count
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def last_comment_by_fields
|
50
|
+
return {} unless resource.last_comment_by
|
51
|
+
return {} if resource.last_comment_by.respond_to?(:deleted?) && resource.last_comment_by.deleted?
|
52
|
+
|
53
|
+
{
|
54
|
+
id: resource.last_comment_by.id,
|
55
|
+
name: user_name(resource.last_comment_by),
|
56
|
+
url: user_url(resource.last_comment_by)
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
def author_fields
|
61
|
+
return {} if resource.author.respond_to?(:deleted?) && resource.author.deleted?
|
62
|
+
|
63
|
+
{
|
64
|
+
id: resource.author.id,
|
65
|
+
name: user_name(resource.author),
|
66
|
+
url: user_url(resource.author)
|
67
|
+
}
|
68
|
+
end
|
69
|
+
|
70
|
+
def user_name(author)
|
71
|
+
translated_attribute(author.name)
|
72
|
+
end
|
73
|
+
|
74
|
+
def user_url(author)
|
75
|
+
if author.respond_to?(:nickname)
|
76
|
+
profile_url(author) # is a Decidim::User or Decidim::UserGroup
|
77
|
+
else
|
78
|
+
root_url # is a Decidim::Organization
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -4,7 +4,7 @@ require "decidim/components/namer"
|
|
4
4
|
|
5
5
|
module Decidim
|
6
6
|
module Debates
|
7
|
-
class Seeds
|
7
|
+
class Seeds < Decidim::Seeds
|
8
8
|
attr_reader :participatory_space
|
9
9
|
|
10
10
|
def initialize(participatory_space:)
|
@@ -12,11 +12,6 @@ module Decidim
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def call
|
15
|
-
admin_user = Decidim::User.find_by(
|
16
|
-
organization: participatory_space.organization,
|
17
|
-
email: "admin@example.org"
|
18
|
-
)
|
19
|
-
|
20
15
|
user = Decidim::User.find_by(
|
21
16
|
organization: participatory_space.organization,
|
22
17
|
email: "user@example.org"
|
@@ -49,7 +44,6 @@ module Decidim
|
|
49
44
|
end
|
50
45
|
params = {
|
51
46
|
component:,
|
52
|
-
category: participatory_space.categories.sample,
|
53
47
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
54
48
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
55
49
|
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
@@ -81,7 +75,6 @@ module Decidim
|
|
81
75
|
|
82
76
|
params = {
|
83
77
|
component:,
|
84
|
-
category: participatory_space.categories.sample,
|
85
78
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
86
79
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
87
80
|
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
@@ -18,6 +18,8 @@ FactoryBot.define do
|
|
18
18
|
instructions { generate_localized_description(:debate_instructions, skip_injection:) }
|
19
19
|
component { build(:debates_component, skip_injection:) }
|
20
20
|
author { component.try(:organization) }
|
21
|
+
comments_layout { "single_column" }
|
22
|
+
deleted_at { nil }
|
21
23
|
|
22
24
|
trait :open_ama do
|
23
25
|
start_time { 1.day.ago }
|
data/lib/decidim/debates.rb
CHANGED
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.30.0.rc2
|
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: 2025-
|
14
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-comments
|
@@ -19,70 +19,70 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.30.0.rc2
|
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.30.0.rc2
|
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.30.0.rc2
|
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.30.0.rc2
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: decidim-admin
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - '='
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.
|
50
|
+
version: 0.30.0.rc2
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - '='
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.
|
57
|
+
version: 0.30.0.rc2
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: decidim-assemblies
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - '='
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
64
|
+
version: 0.30.0.rc2
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - '='
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: 0.
|
71
|
+
version: 0.30.0.rc2
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: decidim-dev
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
76
|
- - '='
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.
|
78
|
+
version: 0.30.0.rc2
|
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.30.0.rc2
|
86
86
|
description: A debates component for decidim's participatory spaces.
|
87
87
|
email:
|
88
88
|
- josepjaume@gmail.com
|
@@ -95,10 +95,15 @@ extra_rdoc_files: []
|
|
95
95
|
files:
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
98
|
+
- app/cells/decidim/debates/content_blocks/highlighted_debates/content.erb
|
99
|
+
- app/cells/decidim/debates/content_blocks/highlighted_debates_cell.rb
|
98
100
|
- app/cells/decidim/debates/debate_activity_cell.rb
|
99
101
|
- app/cells/decidim/debates/debate_card_metadata_cell.rb
|
100
102
|
- app/cells/decidim/debates/debate_cell.rb
|
103
|
+
- app/cells/decidim/debates/debate_g/show.erb
|
104
|
+
- app/cells/decidim/debates/debate_g_cell.rb
|
101
105
|
- app/cells/decidim/debates/debate_l_cell.rb
|
106
|
+
- app/cells/decidim/debates/debate_metadata_g_cell.rb
|
102
107
|
- app/cells/decidim/debates/debate_s_cell.rb
|
103
108
|
- app/cells/decidim/debates/reported_content/show.erb
|
104
109
|
- app/cells/decidim/debates/reported_content_cell.rb
|
@@ -123,7 +128,6 @@ files:
|
|
123
128
|
- app/forms/decidim/debates/admin/debate_form.rb
|
124
129
|
- app/forms/decidim/debates/close_debate_form.rb
|
125
130
|
- app/forms/decidim/debates/debate_form.rb
|
126
|
-
- app/helpers/decidim/debates/admin/application_helper.rb
|
127
131
|
- app/helpers/decidim/debates/application_helper.rb
|
128
132
|
- app/helpers/decidim/debates/debate_cells_helper.rb
|
129
133
|
- app/jobs/decidim/debates/hide_all_created_by_author_job.rb
|
@@ -148,12 +152,17 @@ files:
|
|
148
152
|
- app/services/decidim/debates/debate_search.rb
|
149
153
|
- app/services/decidim/debates/diff_renderer.rb
|
150
154
|
- app/views/decidim/debates/admin/debate_closes/edit.html.erb
|
155
|
+
- app/views/decidim/debates/admin/debates/_actions.html.erb
|
156
|
+
- app/views/decidim/debates/admin/debates/_debate-tr.html.erb
|
157
|
+
- app/views/decidim/debates/admin/debates/_debates-thead.html.erb
|
151
158
|
- app/views/decidim/debates/admin/debates/_form.html.erb
|
152
159
|
- app/views/decidim/debates/admin/debates/edit.html.erb
|
153
160
|
- app/views/decidim/debates/admin/debates/index.html.erb
|
161
|
+
- app/views/decidim/debates/admin/debates/manage_trash.html.erb
|
154
162
|
- app/views/decidim/debates/admin/debates/new.html.erb
|
155
163
|
- app/views/decidim/debates/debates/_close_debate_modal.html.erb
|
156
164
|
- app/views/decidim/debates/debates/_debate.html.erb
|
165
|
+
- app/views/decidim/debates/debates/_debate_actions.html.erb
|
157
166
|
- app/views/decidim/debates/debates/_debates.html.erb
|
158
167
|
- app/views/decidim/debates/debates/_form.html.erb
|
159
168
|
- app/views/decidim/debates/debates/edit.html.erb
|
@@ -266,6 +275,8 @@ files:
|
|
266
275
|
- db/migrate/20210125101735_revert_archive_debates.rb
|
267
276
|
- db/migrate/20210310120652_add_followable_counter_cache_to_debates.rb
|
268
277
|
- db/migrate/20210519201932_add_comments_availability_columns_to_debates_table.rb
|
278
|
+
- db/migrate/20240828103648_add_deleted_at_to_decidim_debates_debates.rb
|
279
|
+
- db/migrate/20241017153555_add_comments_layout_to_debates.rb
|
269
280
|
- decidim-debates.gemspec
|
270
281
|
- lib/decidim/api/debate_type.rb
|
271
282
|
- lib/decidim/api/debates_type.rb
|
@@ -274,6 +285,7 @@ files:
|
|
274
285
|
- lib/decidim/debates/admin_engine.rb
|
275
286
|
- lib/decidim/debates/api.rb
|
276
287
|
- lib/decidim/debates/component.rb
|
288
|
+
- lib/decidim/debates/debate_serializer.rb
|
277
289
|
- lib/decidim/debates/engine.rb
|
278
290
|
- lib/decidim/debates/seeds.rb
|
279
291
|
- lib/decidim/debates/test/factories.rb
|
@@ -295,14 +307,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
295
307
|
requirements:
|
296
308
|
- - "~>"
|
297
309
|
- !ruby/object:Gem::Version
|
298
|
-
version: 3.
|
310
|
+
version: 3.3.0
|
299
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
312
|
requirements:
|
301
313
|
- - ">="
|
302
314
|
- !ruby/object:Gem::Version
|
303
315
|
version: '0'
|
304
316
|
requirements: []
|
305
|
-
rubygems_version: 3.
|
317
|
+
rubygems_version: 3.5.11
|
306
318
|
signing_key:
|
307
319
|
specification_version: 4
|
308
320
|
summary: Decidim debates module
|