decidim-blogs 0.31.5 → 0.32.0.rc1
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/README.md +4 -14
- data/app/controllers/decidim/blogs/admin/posts_controller.rb +2 -2
- data/app/controllers/decidim/blogs/posts_controller.rb +16 -9
- data/app/forms/decidim/blogs/post_form.rb +1 -1
- data/app/views/decidim/blogs/posts/index.html.erb +1 -1
- data/app/views/decidim/blogs/posts/show.html.erb +1 -1
- data/config/locales/ar.yml +0 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca-IT.yml +1 -1
- data/config/locales/ca.yml +1 -1
- data/config/locales/cs.yml +1 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +1 -0
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +6 -6
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/fi.yml +1 -1
- data/config/locales/fr-CA.yml +1 -1
- data/config/locales/fr.yml +1 -1
- data/config/locales/ga-IE.yml +0 -1
- data/config/locales/gl.yml +0 -1
- data/config/locales/hu.yml +0 -1
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/is-IS.yml +1 -2
- data/config/locales/it.yml +0 -1
- data/config/locales/ja.yml +1 -1
- data/config/locales/kaa.yml +0 -1
- data/config/locales/ko.yml +0 -1
- data/config/locales/lb.yml +0 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +1 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk.yml +0 -118
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/sv.yml +1 -1
- data/config/locales/tr-TR.yml +0 -1
- data/config/locales/uk.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +0 -1
- data/db/migrate/20260208201400_remove_user_group_blogs.rb +13 -0
- data/decidim-blogs.gemspec +10 -13
- data/lib/decidim/api/post_type.rb +0 -2
- data/lib/decidim/blogs/component.rb +1 -5
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +19 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3c96f0c988e6ae20067891b3f91669de5cc4336eb23c2319b618a857e08831a
|
|
4
|
+
data.tar.gz: ea98eef313286de5bd4c28f6cf6af6716bc1a5278f0a20b8a6eefdd2a5e1ed77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 833699c0cf242ee0b27c9c629975c6e995d6ea65f6054df0be88574d8d858d5118664cd62a92a851eb790fcd62a1ca7c2bbcc319ee8ee4dc0c651d59dbfdc314
|
|
7
|
+
data.tar.gz: a4842d3aa2c43236d47c544c30bee78dbf76ed09afe119588c89f3927659daada7da355fc8c2e485e3bef9851c0ffdc504ddb951077114d185a278b9eac52b76
|
data/README.md
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
# decidim-blogs
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
to the admin and public view scoped inside the participatory
|
|
3
|
+
The Blogs module adds posts to any participatory space. It adds a CRUD engine
|
|
4
|
+
to the admin and public view scoped inside the participatory space.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Blogs will be available as a Component for a Participatory Space.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
gem 'decidim-blogs'
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
And then execute:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
bundle
|
|
22
|
-
```
|
|
12
|
+
This is on the default Decidim installation so you should not change anything to use this component.
|
|
23
13
|
|
|
24
14
|
## Contributing
|
|
25
15
|
|
|
@@ -26,7 +26,7 @@ module Decidim
|
|
|
26
26
|
|
|
27
27
|
on(:invalid) do
|
|
28
28
|
flash.now[:alert] = I18n.t("posts.create.invalid", scope: "decidim.blogs.admin")
|
|
29
|
-
render action: "new", status: :
|
|
29
|
+
render action: "new", status: :unprocessable_content
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
|
@@ -48,7 +48,7 @@ module Decidim
|
|
|
48
48
|
|
|
49
49
|
on(:invalid) do
|
|
50
50
|
flash.now[:alert] = I18n.t("posts.update.invalid", scope: "decidim.blogs.admin")
|
|
51
|
-
render action: "edit", status: :
|
|
51
|
+
render action: "edit", status: :unprocessable_content
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
end
|
|
@@ -26,7 +26,7 @@ module Decidim
|
|
|
26
26
|
|
|
27
27
|
def create
|
|
28
28
|
enforce_permission_to :create, :blogpost
|
|
29
|
-
@form = form(Decidim::Blogs::PostForm).from_params(params, current_component:
|
|
29
|
+
@form = form(Decidim::Blogs::PostForm).from_params(params, current_component:)
|
|
30
30
|
|
|
31
31
|
CreatePost.call(@form) do
|
|
32
32
|
on(:ok) do |new_post|
|
|
@@ -36,7 +36,7 @@ module Decidim
|
|
|
36
36
|
|
|
37
37
|
on(:invalid) do
|
|
38
38
|
flash.now[:alert] = I18n.t("posts.create.invalid", scope: "decidim.blogs.admin")
|
|
39
|
-
render action: "new", status: :
|
|
39
|
+
render action: "new", status: :unprocessable_content
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
end
|
|
@@ -48,7 +48,7 @@ module Decidim
|
|
|
48
48
|
|
|
49
49
|
def update
|
|
50
50
|
enforce_permission_to :update, :blogpost, blogpost: post
|
|
51
|
-
@form = form(PostForm).from_params(params, current_component:
|
|
51
|
+
@form = form(PostForm).from_params(params, current_component:)
|
|
52
52
|
|
|
53
53
|
UpdatePost.call(@form, post) do
|
|
54
54
|
on(:ok) do |post|
|
|
@@ -58,7 +58,7 @@ module Decidim
|
|
|
58
58
|
|
|
59
59
|
on(:invalid) do
|
|
60
60
|
flash.now[:alert] = I18n.t("posts.update.invalid", scope: "decidim.blogs.admin")
|
|
61
|
-
render action: "edit", status: :
|
|
61
|
+
render action: "edit", status: :unprocessable_content
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
end
|
|
@@ -82,7 +82,7 @@ module Decidim
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
def post
|
|
85
|
-
@post ||= posts.
|
|
85
|
+
@post ||= posts.find_by(id: params[:id])
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def post_presenter
|
|
@@ -97,11 +97,18 @@ module Decidim
|
|
|
97
97
|
end
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
# PROVISIONAL if we implement counter cache
|
|
101
100
|
def posts_most_commented
|
|
102
|
-
@posts_most_commented ||= posts.
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
@posts_most_commented ||= posts.order(comments_count: :desc).published_at_desc.limit(7)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def add_breadcrumb_item
|
|
105
|
+
return {} if post.blank?
|
|
106
|
+
|
|
107
|
+
{
|
|
108
|
+
label: translated_attribute(post.title),
|
|
109
|
+
url: Decidim::EngineRouter.main_proxy(current_component).post_path(post),
|
|
110
|
+
active: false
|
|
111
|
+
}
|
|
105
112
|
end
|
|
106
113
|
end
|
|
107
114
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<% add_decidim_meta_tags(
|
|
2
2
|
description: translated_attribute(current_component.participatory_space.try(:description)),
|
|
3
3
|
title: t("decidim.components.pagination.page_title",
|
|
4
|
-
component_name
|
|
4
|
+
component_name:,
|
|
5
5
|
current_page: paginate_posts.current_page,
|
|
6
6
|
total_pages: paginate_posts.total_pages ),
|
|
7
7
|
url: posts_url,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<%= cell "decidim/author", post_presenter.author, from: post, context_actions: [:date], layout: :compact %>
|
|
40
40
|
</div>
|
|
41
41
|
<%= render "decidim/shared/resource_actions", resource: post do %>
|
|
42
|
-
<%= render "decidim/blogs/posts/menu_actions", post:
|
|
42
|
+
<%= render "decidim/blogs/posts/menu_actions", post: %>
|
|
43
43
|
<% end %>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
data/config/locales/ar.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/ca-IT.yml
CHANGED
data/config/locales/ca.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/eu.yml
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
---
|
|
2
1
|
eu:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
5
4
|
post:
|
|
6
|
-
body:
|
|
5
|
+
body: Testua
|
|
7
6
|
decidim_author_id: Egilea
|
|
8
7
|
published_at: Argitaratze-data
|
|
9
8
|
title: Izenburua
|
|
@@ -60,7 +59,7 @@ eu:
|
|
|
60
59
|
update: "%{user_name} parte-hartzailekak %{resource_name} blogeko argitalpena eguneratu egin da %{space_name} espazioan"
|
|
61
60
|
content_blocks:
|
|
62
61
|
highlighted_posts:
|
|
63
|
-
last_published: Azken
|
|
62
|
+
last_published: Azken argitarapena
|
|
64
63
|
name: Argitalpenak
|
|
65
64
|
see_all: Ikusi argitalpen guztiak
|
|
66
65
|
last_activity:
|
|
@@ -69,7 +68,7 @@ eu:
|
|
|
69
68
|
post:
|
|
70
69
|
fields:
|
|
71
70
|
author: Egilea
|
|
72
|
-
body:
|
|
71
|
+
body: Testua
|
|
73
72
|
official_blog_post: Argitalpen ofiziala
|
|
74
73
|
published_at: Argitaratze-data
|
|
75
74
|
taxonomies: Taxonomiak
|
|
@@ -88,7 +87,7 @@ eu:
|
|
|
88
87
|
title: Izenburua
|
|
89
88
|
index:
|
|
90
89
|
count:
|
|
91
|
-
one: "%{count}
|
|
90
|
+
one: "Argitalpen %{count}"
|
|
92
91
|
other: "%{count} argitalpen"
|
|
93
92
|
empty: Oraindik ez dago argitalpenik.
|
|
94
93
|
new_post: Beste sarrera bat
|
|
@@ -108,6 +107,7 @@ eu:
|
|
|
108
107
|
destroy: Ezabatu
|
|
109
108
|
like: Atsegin dut
|
|
110
109
|
update: Eguneratu
|
|
110
|
+
vote_comment: Bozkatu iruzkina
|
|
111
111
|
name: Bloga
|
|
112
112
|
settings:
|
|
113
113
|
global:
|
|
@@ -130,7 +130,7 @@ eu:
|
|
|
130
130
|
post_created:
|
|
131
131
|
email_intro: '"%{resource_title}" argitalpena jarraitzen ari zaren "%{participatory_space_title}" espazioan argitaratu da.'
|
|
132
132
|
email_outro: Jakinarazpen hau jaso duzu "%{participatory_space_title}" jarraitzen ari zarelako. Aurreko estekan sartu jarraitzeari uzteko.
|
|
133
|
-
email_subject:
|
|
133
|
+
email_subject: Argitalpen berria %{participatory_space_title} espazioan
|
|
134
134
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> sarrera %{participatory_space_title} argitaratu da
|
|
135
135
|
open_data:
|
|
136
136
|
help:
|
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/ga-IE.yml
CHANGED
data/config/locales/gl.yml
CHANGED
data/config/locales/hu.yml
CHANGED
data/config/locales/id-ID.yml
CHANGED
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/kaa.yml
CHANGED
data/config/locales/ko.yml
CHANGED
data/config/locales/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/config/locales/sk.yml
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
---
|
|
2
1
|
sk:
|
|
3
2
|
activemodel:
|
|
4
|
-
attributes:
|
|
5
|
-
post:
|
|
6
|
-
body: Obsah
|
|
7
|
-
decidim_author_id: Autor
|
|
8
|
-
published_at: Čas publikovania
|
|
9
|
-
title: Názov
|
|
10
3
|
models:
|
|
11
4
|
decidim/blogs/create_post_event: Nový príspevok na blogu
|
|
12
5
|
activerecord:
|
|
@@ -17,118 +10,37 @@ sk:
|
|
|
17
10
|
many: Príspevky
|
|
18
11
|
other: Príspevky
|
|
19
12
|
decidim:
|
|
20
|
-
admin:
|
|
21
|
-
admin_log:
|
|
22
|
-
changeset:
|
|
23
|
-
posts: Príspevky
|
|
24
|
-
tooltips:
|
|
25
|
-
deleted_posts_info: Tento príspevok nie je možné odstrániť
|
|
26
13
|
blogs:
|
|
27
14
|
actions:
|
|
28
|
-
author_id: Vytvoriť príspevok ako
|
|
29
|
-
confirm_delete_post: Naozaj chcete odstrániť tento príspevok?
|
|
30
|
-
deleted_posts_info: Odstránené príspevky je možné obnoviť z koša.
|
|
31
15
|
edit: Upraviť
|
|
32
16
|
new: Nový príspevok
|
|
33
17
|
title: Akcie
|
|
34
|
-
view_deleted_posts: Zobraziť odstránené príspevky
|
|
35
18
|
admin:
|
|
36
19
|
posts:
|
|
37
|
-
create:
|
|
38
|
-
invalid: Pri vytváraní tohto príspevku sa vyskytol problém.
|
|
39
|
-
success: Príspevok bol úspešne vytvorený.
|
|
40
|
-
destroy:
|
|
41
|
-
success: Príspevok bol úspešne odstránený.
|
|
42
20
|
edit:
|
|
43
21
|
save: Aktualizovať
|
|
44
|
-
title: Upraviť príspevok
|
|
45
22
|
index:
|
|
46
|
-
not_published_yet: Zatiaľ nepublikované.
|
|
47
23
|
title: Príspevky
|
|
48
|
-
manage_trash:
|
|
49
|
-
title: Odstránené príspevky
|
|
50
24
|
new:
|
|
51
25
|
create: Vytvoriť
|
|
52
26
|
title: Vytvort príspevok
|
|
53
27
|
update:
|
|
54
28
|
invalid: Vyskytol sa problém s ukladaním príspevku.
|
|
55
|
-
success: Príspevok bol úspešne uložený.
|
|
56
|
-
admin_log:
|
|
57
|
-
post:
|
|
58
|
-
create: "%{user_name} vytvoril/a blogový príspevok %{resource_name} v priestore %{space_name}"
|
|
59
|
-
delete: "%{user_name} odstránil/a blogový príspevok %{resource_name} z priestoru %{space_name}"
|
|
60
|
-
restore: "%{user_name} obnovil/a blogový príspevok %{resource_name} v priestore %{space_name}"
|
|
61
|
-
soft_delete: "%{user_name} presunul/a blogový príspevok %{resource_name} v priestore %{space_name} do koša"
|
|
62
|
-
update: "%{user_name} aktualizoval/a blogový príspevok %{resource_name} v priestore %{space_name}"
|
|
63
|
-
content_blocks:
|
|
64
|
-
highlighted_posts:
|
|
65
|
-
last_published: Naposledy publikované
|
|
66
|
-
name: Príspevky
|
|
67
|
-
see_all: Zobraziť všetky príspevky
|
|
68
|
-
last_activity:
|
|
69
|
-
new_post: 'Nový príspevok:'
|
|
70
29
|
models:
|
|
71
30
|
post:
|
|
72
31
|
fields:
|
|
73
32
|
author: Autor
|
|
74
33
|
body: Telo textu
|
|
75
|
-
official_blog_post: Oficiálny príspevok
|
|
76
|
-
published_at: Čas publikovania
|
|
77
|
-
taxonomies: Taxonómie
|
|
78
|
-
title: Názov
|
|
79
|
-
posts:
|
|
80
|
-
edit:
|
|
81
|
-
add_attachments: Pridať prílohy
|
|
82
|
-
attachment_legend: Pridať dokument alebo obrázok
|
|
83
|
-
back: Späť na príspevok
|
|
84
|
-
button: Aktualizovať
|
|
85
|
-
edit_attachments: Upraviť prílohy
|
|
86
|
-
title: Upraviť príspevok
|
|
87
|
-
form:
|
|
88
|
-
author_id: Autor
|
|
89
|
-
body: Obsah
|
|
90
|
-
title: Názov
|
|
91
|
-
index:
|
|
92
|
-
count:
|
|
93
|
-
one: "%{count} príspevok"
|
|
94
|
-
few: "%{count} príspevky"
|
|
95
|
-
many: "%{count} príspevkov"
|
|
96
|
-
other: "%{count} príspevkov"
|
|
97
|
-
empty: Zatiaľ tu nie sú žiadne príspevky.
|
|
98
|
-
new_post: Nový príspevok
|
|
99
|
-
menu_actions:
|
|
100
|
-
button_destroy: Odstrániť príspevok
|
|
101
|
-
button_destroy_confirm: Naozaj chcete odstrániť tento príspevok?
|
|
102
|
-
button_edit: Upraviť príspevok
|
|
103
|
-
new:
|
|
104
|
-
back: Späť na príspevky
|
|
105
|
-
button: Vytvoriť
|
|
106
|
-
title: Vytvoriť nový príspevok
|
|
107
34
|
components:
|
|
108
35
|
blogs:
|
|
109
|
-
actions:
|
|
110
|
-
comment: Komentovať
|
|
111
|
-
create: Vytvoriť
|
|
112
|
-
destroy: Odstrániť
|
|
113
|
-
like: Páči sa mi to
|
|
114
|
-
update: Aktualizovať
|
|
115
36
|
name: Blog
|
|
116
37
|
settings:
|
|
117
38
|
global:
|
|
118
39
|
announcement: Oznámenie
|
|
119
|
-
attachments_allowed: Povoliť prílohy
|
|
120
40
|
comments_enabled: Komentáre povolené
|
|
121
|
-
comments_max_length: Maximálna dĺžka komentárov (Ponechajte 0 pre predvolenú hodnotu)
|
|
122
|
-
creation_enabled_for_participants: Účastníci môžu vytvárať príspevky
|
|
123
|
-
define_taxonomy_filters: Pred použitím tohto nastavenia definujte nejaké filtre pre tento participatívny priestor.
|
|
124
|
-
no_taxonomy_filters_found: Nenašli sa žiadne filtre taxonómie.
|
|
125
|
-
taxonomy_filters: Vyberte filtre pre komponent
|
|
126
|
-
taxonomy_filters_add: Pridať filter
|
|
127
41
|
step:
|
|
128
42
|
announcement: Oznámenie
|
|
129
43
|
comments_blocked: Zablokované komentáre
|
|
130
|
-
likes_blocked: Páči sa mi to zablokované
|
|
131
|
-
likes_enabled: Páči sa mi to povolené
|
|
132
44
|
events:
|
|
133
45
|
blogs:
|
|
134
46
|
post_created:
|
|
@@ -136,33 +48,3 @@ sk:
|
|
|
136
48
|
email_outro: Túto notifikáciu ste dostali, pretože sledujete priestor "%{participatory_space_title}". Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
|
|
137
49
|
email_subject: Nový príspevok publikovaný v %{participatory_space_title}
|
|
138
50
|
notification_title: Príspevok <a href="%{resource_path}">%{resource_title}</a> bol publikovaný v %{participatory_space_title}
|
|
139
|
-
open_data:
|
|
140
|
-
help:
|
|
141
|
-
post_comments:
|
|
142
|
-
alignment: Či bol tento komentár za, proti alebo neutrálny
|
|
143
|
-
author: Meno účastníka, ktorý pridal tento komentár
|
|
144
|
-
body: Samotný komentár
|
|
145
|
-
commentable_id: Jedinečné ID komentovaného objektu
|
|
146
|
-
commentable_type: Typ komentovaného objektu (či to bol výsledok, návrh atď.)
|
|
147
|
-
created_at: Dátum vytvorenia tohto komentára
|
|
148
|
-
depth: Miesto, kde sa tento komentár nachádza v strome komentárov (či ide o odpoveď alebo odpoveď na odpoveď)
|
|
149
|
-
id: ID tohto komentára
|
|
150
|
-
locale: Jazyk, ktorý mal účastník nastavený pri zanechaní tohto komentára
|
|
151
|
-
root_commentable_url: URL adresa zdroja, ktorý sa viaže k tomuto komentáru
|
|
152
|
-
posts:
|
|
153
|
-
author: Informácie o autorovi
|
|
154
|
-
body: Obsah príspevku
|
|
155
|
-
comments_count: Počet komentárov k tomuto príspevku
|
|
156
|
-
component: Komponent, do ktorého príspevok patrí
|
|
157
|
-
created_at: Dátum vytvorenia tohto príspevku
|
|
158
|
-
follows_count: Počet sledovaní tohto príspevku
|
|
159
|
-
id: Jedinečný identifikátor tohto príspevku
|
|
160
|
-
likes_count: Počet označení páči sa mi tohto príspevku
|
|
161
|
-
participatory_space: Do ktorého priestoru (napr. participatívny proces alebo zhromaždenie) tento príspevok patrí
|
|
162
|
-
published_at: Dátum zverejnenia tohto príspevku
|
|
163
|
-
title: Názov príspevku
|
|
164
|
-
updated_at: Dátum poslednej aktualizácie tohto príspevku
|
|
165
|
-
url: URL adresa tohto príspevku
|
|
166
|
-
statistics:
|
|
167
|
-
posts_count: Príspevky
|
|
168
|
-
posts_count_tooltip: Počet zverejnených aktualizácií alebo príspevkov na blogu.
|
data/config/locales/sq-AL.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class RemoveUserGroupBlogs < ActiveRecord::Migration[7.0]
|
|
4
|
+
def up
|
|
5
|
+
remove_index :decidim_blogs_posts, :decidim_user_group_id
|
|
6
|
+
remove_column :decidim_blogs_posts, :decidim_user_group_id
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def down
|
|
10
|
+
add_column :decidim_blogs_posts, :decidim_user_group_id, :integer
|
|
11
|
+
add_index :decidim_blogs_posts, :decidim_user_group_id
|
|
12
|
+
end
|
|
13
|
+
end
|
data/decidim-blogs.gemspec
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
|
4
4
|
|
|
5
|
-
# Maintain your gem's version:
|
|
6
|
-
require "decidim/blogs/version"
|
|
7
|
-
|
|
8
|
-
# Describe your gem and declare its dependencies:
|
|
9
5
|
Gem::Specification.new do |s|
|
|
10
|
-
|
|
6
|
+
version = "0.32.0.rc1"
|
|
7
|
+
s.version = version
|
|
11
8
|
s.authors = ["Isaac Massot Gil"]
|
|
12
9
|
s.email = ["isaac.mg@coditramuntana.com"]
|
|
13
10
|
s.license = "AGPL-3.0-or-later"
|
|
@@ -19,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
19
16
|
"homepage_uri" => "https://decidim.org",
|
|
20
17
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
|
21
18
|
}
|
|
22
|
-
s.required_ruby_version = "~> 3.
|
|
19
|
+
s.required_ruby_version = "~> 3.4.0"
|
|
23
20
|
|
|
24
21
|
s.name = "decidim-blogs"
|
|
25
22
|
s.summary = "Decidim blogs module"
|
|
@@ -32,12 +29,12 @@ Gem::Specification.new do |s|
|
|
|
32
29
|
end
|
|
33
30
|
end
|
|
34
31
|
|
|
35
|
-
s.add_dependency "decidim-admin",
|
|
36
|
-
s.add_dependency "decidim-comments",
|
|
37
|
-
s.add_dependency "decidim-core",
|
|
32
|
+
s.add_dependency "decidim-admin", version
|
|
33
|
+
s.add_dependency "decidim-comments", version
|
|
34
|
+
s.add_dependency "decidim-core", version
|
|
38
35
|
|
|
39
|
-
s.add_development_dependency "decidim-admin",
|
|
40
|
-
s.add_development_dependency "decidim-assemblies",
|
|
41
|
-
s.add_development_dependency "decidim-dev",
|
|
42
|
-
s.add_development_dependency "decidim-participatory_processes",
|
|
36
|
+
s.add_development_dependency "decidim-admin", version
|
|
37
|
+
s.add_development_dependency "decidim-assemblies", version
|
|
38
|
+
s.add_development_dependency "decidim-dev", version
|
|
39
|
+
s.add_development_dependency "decidim-participatory_processes", version
|
|
43
40
|
end
|
|
@@ -9,10 +9,6 @@ Decidim.register_component(:blogs) do |component|
|
|
|
9
9
|
|
|
10
10
|
component.query_type = "Decidim::Blogs::BlogsType"
|
|
11
11
|
|
|
12
|
-
component.on(:before_destroy) do |instance|
|
|
13
|
-
raise StandardError, "Cannot remove this component" if Decidim::Blogs::Post.where(component: instance).any?
|
|
14
|
-
end
|
|
15
|
-
|
|
16
12
|
component.on(:publish) do |instance|
|
|
17
13
|
Decidim::Blogs::Post.where(component: instance).find_in_batches(batch_size: 100) do |batch|
|
|
18
14
|
Decidim::UpdateSearchIndexesJob.perform_later(batch)
|
|
@@ -62,7 +58,7 @@ Decidim.register_component(:blogs) do |component|
|
|
|
62
58
|
component.register_resource(:blogpost) do |resource|
|
|
63
59
|
resource.model_class_name = "Decidim::Blogs::Post"
|
|
64
60
|
resource.card = "decidim/blogs/post"
|
|
65
|
-
resource.actions = %w(like comment)
|
|
61
|
+
resource.actions = %w(like comment vote_comment)
|
|
66
62
|
resource.searchable = true
|
|
67
63
|
end
|
|
68
64
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-blogs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.32.0.rc1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Isaac Massot Gil
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: decidim-admin
|
|
@@ -16,98 +15,98 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - '='
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
18
|
+
version: 0.32.0.rc1
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - '='
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
25
|
+
version: 0.32.0.rc1
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: decidim-comments
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - '='
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
32
|
+
version: 0.32.0.rc1
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - '='
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
39
|
+
version: 0.32.0.rc1
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: decidim-core
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - '='
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
46
|
+
version: 0.32.0.rc1
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - '='
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
53
|
+
version: 0.32.0.rc1
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: decidim-admin
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - '='
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.
|
|
60
|
+
version: 0.32.0.rc1
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - '='
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.
|
|
67
|
+
version: 0.32.0.rc1
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: decidim-assemblies
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - '='
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
74
|
+
version: 0.32.0.rc1
|
|
76
75
|
type: :development
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
79
|
- - '='
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.
|
|
81
|
+
version: 0.32.0.rc1
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
83
|
name: decidim-dev
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
86
|
- - '='
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.
|
|
88
|
+
version: 0.32.0.rc1
|
|
90
89
|
type: :development
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
93
|
- - '='
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.
|
|
95
|
+
version: 0.32.0.rc1
|
|
97
96
|
- !ruby/object:Gem::Dependency
|
|
98
97
|
name: decidim-participatory_processes
|
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
|
100
99
|
requirements:
|
|
101
100
|
- - '='
|
|
102
101
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.
|
|
102
|
+
version: 0.32.0.rc1
|
|
104
103
|
type: :development
|
|
105
104
|
prerelease: false
|
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
106
|
requirements:
|
|
108
107
|
- - '='
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.
|
|
109
|
+
version: 0.32.0.rc1
|
|
111
110
|
description: A Blog component for decidim's participatory spaces.
|
|
112
111
|
email:
|
|
113
112
|
- isaac.mg@coditramuntana.com
|
|
@@ -266,6 +265,7 @@ files:
|
|
|
266
265
|
- db/migrate/20220812122940_add_published_at_to_decidim_blogs_posts.rb
|
|
267
266
|
- db/migrate/20240828103324_add_deleted_at_to_decidim_blogs_posts.rb
|
|
268
267
|
- db/migrate/20250515133229_rename_blog_posts_endorsements_count_to_likes.rb
|
|
268
|
+
- db/migrate/20260208201400_remove_user_group_blogs.rb
|
|
269
269
|
- decidim-blogs.gemspec
|
|
270
270
|
- lib/decidim/api/blogs_type.rb
|
|
271
271
|
- lib/decidim/api/post_input_filter.rb
|
|
@@ -291,7 +291,6 @@ metadata:
|
|
|
291
291
|
funding_uri: https://opencollective.com/decidim
|
|
292
292
|
homepage_uri: https://decidim.org
|
|
293
293
|
source_code_uri: https://github.com/decidim/decidim
|
|
294
|
-
post_install_message:
|
|
295
294
|
rdoc_options: []
|
|
296
295
|
require_paths:
|
|
297
296
|
- lib
|
|
@@ -299,15 +298,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
299
298
|
requirements:
|
|
300
299
|
- - "~>"
|
|
301
300
|
- !ruby/object:Gem::Version
|
|
302
|
-
version: 3.
|
|
301
|
+
version: 3.4.0
|
|
303
302
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
303
|
requirements:
|
|
305
304
|
- - ">="
|
|
306
305
|
- !ruby/object:Gem::Version
|
|
307
306
|
version: '0'
|
|
308
307
|
requirements: []
|
|
309
|
-
rubygems_version: 3.
|
|
310
|
-
signing_key:
|
|
308
|
+
rubygems_version: 3.6.9
|
|
311
309
|
specification_version: 4
|
|
312
310
|
summary: Decidim blogs module
|
|
313
311
|
test_files: []
|