decidim-blogs 0.26.5 → 0.26.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/decidim/blogs/post.rb +16 -0
- data/app/views/decidim/blogs/admin/posts/_form.html.erb +1 -1
- data/app/views/decidim/blogs/admin/posts/edit.html.erb +1 -0
- data/app/views/decidim/blogs/admin/posts/index.html.erb +1 -0
- data/app/views/decidim/blogs/admin/posts/new.html.erb +1 -0
- data/app/views/decidim/blogs/posts/show.html.erb +2 -1
- data/config/environment.rb +0 -0
- data/config/locales/ar.yml +9 -0
- data/config/locales/de.yml +9 -0
- data/config/locales/el.yml +13 -0
- data/config/locales/fa-IR.yml +1 -0
- data/config/locales/hu.yml +9 -0
- data/config/locales/kaa.yml +23 -0
- data/config/locales/pt-BR.yml +11 -0
- data/config/locales/tr-TR.yml +6 -0
- data/config/locales/zh-TW.yml +89 -0
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +19 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0d1caa91870d55a12dd8b07b1f617be7ef213118695441afd080d8a971aba19
|
4
|
+
data.tar.gz: b81b05b0ca02a6363701515becdad6d68a66a07b7370b39850a3abd905918609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c58a58cb86cbd2012ab675a4204687d90c2d8276239db97aba7fc1ac5f222fd4a6dc3053e6c22f22c8dabf9cb3be27cefec6adce62e859223dc320ab5154c465
|
7
|
+
data.tar.gz: 75b6988062ffe1486d75a0515e611d393d74ecd01b63ef89d027bd108c48f502e2c7743eb9476e872a03bc6f5bcfbcfd61ff8173be6d9cc8312aebdb11d7ea5b
|
@@ -14,6 +14,7 @@ module Decidim
|
|
14
14
|
include Decidim::Searchable
|
15
15
|
include Decidim::Endorsable
|
16
16
|
include Decidim::Followable
|
17
|
+
include Decidim::Reportable
|
17
18
|
include Decidim::TranslatableResource
|
18
19
|
include Traceable
|
19
20
|
include Loggable
|
@@ -65,6 +66,21 @@ module Decidim
|
|
65
66
|
def attachment_context
|
66
67
|
:admin
|
67
68
|
end
|
69
|
+
|
70
|
+
# Public: Overrides the `reported_content_url` Reportable concern method.
|
71
|
+
def reported_content_url
|
72
|
+
ResourceLocatorPresenter.new(self).url
|
73
|
+
end
|
74
|
+
|
75
|
+
# Public: Overrides the `reported_attributes` Reportable concern method.
|
76
|
+
def reported_attributes
|
77
|
+
[:title, :body]
|
78
|
+
end
|
79
|
+
|
80
|
+
# Public: Overrides the `reported_searchable_content_extras` Reportable concern method.
|
81
|
+
def reported_searchable_content_extras
|
82
|
+
[normalized_author.name]
|
83
|
+
end
|
68
84
|
end
|
69
85
|
end
|
70
86
|
end
|
@@ -50,10 +50,11 @@
|
|
50
50
|
<% end %>
|
51
51
|
<div class="columns mediumlarge-8 <%= "mediumlarge-pull-4" if show_endorsements_card? %>">
|
52
52
|
<div class="section">
|
53
|
-
<%=
|
53
|
+
<%= decidim_sanitize_editor_admin translated_attribute post.body %>
|
54
54
|
</div>
|
55
55
|
<%= cell "decidim/endorsers_list", post %>
|
56
56
|
</div>
|
57
57
|
</div>
|
58
58
|
<%= attachments_for post %>
|
59
59
|
<%= comments_for post %>
|
60
|
+
<%= cell("decidim/flag_modal", post) %>
|
File without changes
|
data/config/locales/ar.yml
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
ar:
|
2
2
|
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: النص
|
6
|
+
decidim_author_id: المؤلف
|
7
|
+
published_at: موعد النشر
|
8
|
+
title: العنوان
|
3
9
|
models:
|
4
10
|
decidim/blogs/create_post_event: بلوق وظيفة جديدة
|
5
11
|
activerecord:
|
@@ -49,6 +55,7 @@ ar:
|
|
49
55
|
author: مؤلف
|
50
56
|
body: الجسم
|
51
57
|
created_at: أنشئت في
|
58
|
+
title: العنوان
|
52
59
|
posts:
|
53
60
|
show:
|
54
61
|
back: العودة إلى القائمة
|
@@ -61,8 +68,10 @@ ar:
|
|
61
68
|
components:
|
62
69
|
blogs:
|
63
70
|
actions:
|
71
|
+
comment: التعليق
|
64
72
|
create: إنشاء
|
65
73
|
destroy: حذف
|
74
|
+
endorse: تأييد
|
66
75
|
update: تحديث
|
67
76
|
name: مدونة
|
68
77
|
settings:
|
data/config/locales/de.yml
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
de:
|
2
2
|
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: Haupttext
|
6
|
+
decidim_author_id: Autor*in
|
7
|
+
published_at: Veröffentlicht am
|
8
|
+
title: Titel
|
3
9
|
models:
|
4
10
|
decidim/blogs/create_post_event: Neuer Blogeintrag
|
5
11
|
activerecord:
|
@@ -45,6 +51,7 @@ de:
|
|
45
51
|
author: Autor
|
46
52
|
body: Haupttext
|
47
53
|
created_at: Hergestellt in
|
54
|
+
title: Titel
|
48
55
|
posts:
|
49
56
|
show:
|
50
57
|
back: Zurück zur Liste
|
@@ -57,8 +64,10 @@ de:
|
|
57
64
|
components:
|
58
65
|
blogs:
|
59
66
|
actions:
|
67
|
+
comment: Kommentieren
|
60
68
|
create: Erstellen
|
61
69
|
destroy: Löschen
|
70
|
+
endorse: Unterstützen
|
62
71
|
update: Aktualisieren
|
63
72
|
name: Blog
|
64
73
|
settings:
|
data/config/locales/el.yml
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
el:
|
2
2
|
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: Σώμα
|
6
|
+
decidim_author_id: Συντάκτης
|
7
|
+
published_at: Ώρα δημοσίευσης
|
8
|
+
title: Τίτλος
|
3
9
|
models:
|
4
10
|
decidim/blogs/create_post_event: Νέα ανάρτηση ιστολογίου
|
5
11
|
activerecord:
|
@@ -45,6 +51,7 @@ el:
|
|
45
51
|
author: Συντάκτης
|
46
52
|
body: Σώμα
|
47
53
|
created_at: Δημιουργήθηκε στις
|
54
|
+
title: Τίτλος
|
48
55
|
posts:
|
49
56
|
show:
|
50
57
|
back: Επιστροφή στη λίστα
|
@@ -56,6 +63,12 @@ el:
|
|
56
63
|
read_more: Διαβάστε περισσότερα
|
57
64
|
components:
|
58
65
|
blogs:
|
66
|
+
actions:
|
67
|
+
comment: Σχόλιο
|
68
|
+
create: Δημιουργία
|
69
|
+
destroy: Διαγραφή
|
70
|
+
endorse: Επιδοκιμασία
|
71
|
+
update: Ενημέρωση
|
59
72
|
name: Ιστολόγιο
|
60
73
|
settings:
|
61
74
|
global:
|
@@ -0,0 +1 @@
|
|
1
|
+
fa:
|
data/config/locales/hu.yml
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
hu:
|
2
2
|
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: Törzs
|
6
|
+
decidim_author_id: Szerző
|
7
|
+
published_at: Közzététel időpontja
|
8
|
+
title: Cím
|
3
9
|
models:
|
4
10
|
decidim/blogs/create_post_event: Új blogbejegyzés
|
5
11
|
activerecord:
|
@@ -45,6 +51,7 @@ hu:
|
|
45
51
|
author: Szerző
|
46
52
|
body: Szöveg
|
47
53
|
created_at: 'Létrehozva:'
|
54
|
+
title: Cím
|
48
55
|
posts:
|
49
56
|
show:
|
50
57
|
back: Vissza a listához
|
@@ -57,8 +64,10 @@ hu:
|
|
57
64
|
components:
|
58
65
|
blogs:
|
59
66
|
actions:
|
67
|
+
comment: Hozzászólás
|
60
68
|
create: Létrehozás
|
61
69
|
destroy: Törlés
|
70
|
+
endorse: Helyesel/Jóváhagy
|
62
71
|
update: Frissítés
|
63
72
|
name: Blog
|
64
73
|
settings:
|
@@ -0,0 +1,23 @@
|
|
1
|
+
kaa:
|
2
|
+
decidim:
|
3
|
+
blogs:
|
4
|
+
actions:
|
5
|
+
destroy: Óshiriw
|
6
|
+
edit: Ózgeris kirgiziw
|
7
|
+
title: Háreketler
|
8
|
+
admin:
|
9
|
+
posts:
|
10
|
+
edit:
|
11
|
+
save: Jańalaw
|
12
|
+
new:
|
13
|
+
create: Jaratıw
|
14
|
+
models:
|
15
|
+
post:
|
16
|
+
fields:
|
17
|
+
author: Avtor
|
18
|
+
components:
|
19
|
+
blogs:
|
20
|
+
actions:
|
21
|
+
create: Jaratıw
|
22
|
+
destroy: Óshiriw
|
23
|
+
update: Jańalaw
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
pt-BR:
|
2
2
|
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: Corpo
|
6
|
+
decidim_author_id: Autor
|
7
|
+
published_at: Horário da publicação
|
8
|
+
title: Título
|
3
9
|
models:
|
4
10
|
decidim/blogs/create_post_event: Nova postagem no blog
|
5
11
|
activerecord:
|
@@ -45,6 +51,7 @@ pt-BR:
|
|
45
51
|
author: Autor
|
46
52
|
body: Corpo
|
47
53
|
created_at: Criado em
|
54
|
+
title: Título
|
48
55
|
posts:
|
49
56
|
show:
|
50
57
|
back: Voltar para a lista
|
@@ -56,6 +63,10 @@ pt-BR:
|
|
56
63
|
read_more: Saiba mais
|
57
64
|
components:
|
58
65
|
blogs:
|
66
|
+
actions:
|
67
|
+
comment: Comentário
|
68
|
+
create: Criar
|
69
|
+
destroy: Excluir
|
59
70
|
name: Blog
|
60
71
|
settings:
|
61
72
|
global:
|
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -1 +1,90 @@
|
|
1
1
|
zh-TW:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
post:
|
5
|
+
body: 正文
|
6
|
+
decidim_author_id: 作者
|
7
|
+
published_at: 發布時間
|
8
|
+
title: 標題
|
9
|
+
models:
|
10
|
+
decidim/blogs/create_post_event: 新增部落格文章
|
11
|
+
activerecord:
|
12
|
+
models:
|
13
|
+
decidim/blogs/post:
|
14
|
+
other: 文章
|
15
|
+
decidim:
|
16
|
+
blogs:
|
17
|
+
actions:
|
18
|
+
confirm_destroy: 您確定要刪除此文章嗎?
|
19
|
+
destroy: 刪除
|
20
|
+
edit: 編輯
|
21
|
+
new: 新貼文
|
22
|
+
title: 操作
|
23
|
+
user_group_id: 發佈文章
|
24
|
+
admin:
|
25
|
+
models:
|
26
|
+
post:
|
27
|
+
name: 文章
|
28
|
+
posts:
|
29
|
+
create:
|
30
|
+
invalid: 建立此文章時出現問題
|
31
|
+
success: 文章已成功建立
|
32
|
+
destroy:
|
33
|
+
success: 文章已成功刪除
|
34
|
+
edit:
|
35
|
+
save: 更新
|
36
|
+
title: 编辑文章
|
37
|
+
index:
|
38
|
+
title: 貼文
|
39
|
+
new:
|
40
|
+
create: 建立
|
41
|
+
title: 建立文章
|
42
|
+
update:
|
43
|
+
invalid: 儲存文章時發生問題
|
44
|
+
success: 文章已成功儲存
|
45
|
+
last_activity:
|
46
|
+
new_post_at_html: "<span>在 %{link} 上有新貼文</span>"
|
47
|
+
models:
|
48
|
+
post:
|
49
|
+
fields:
|
50
|
+
author: 作者
|
51
|
+
body: 正文
|
52
|
+
created_at: 建立於
|
53
|
+
title: 標題
|
54
|
+
posts:
|
55
|
+
show:
|
56
|
+
back: 返回列表
|
57
|
+
comments: 評論
|
58
|
+
view: 檢視
|
59
|
+
sidebar_blog:
|
60
|
+
comments: 評論
|
61
|
+
most_commented_posts: 最多留言的帖子
|
62
|
+
read_more: 閱讀變多
|
63
|
+
components:
|
64
|
+
blogs:
|
65
|
+
actions:
|
66
|
+
comment: 評論
|
67
|
+
create: 建立
|
68
|
+
destroy: 刪除
|
69
|
+
endorse: 支持
|
70
|
+
update: 更新
|
71
|
+
name: 部落格
|
72
|
+
settings:
|
73
|
+
global:
|
74
|
+
announcement: 公告
|
75
|
+
comments_enabled: 啟用評論功能
|
76
|
+
comments_max_length: 評論字數最大長度(若要使用預設值請輸入0)
|
77
|
+
step:
|
78
|
+
announcement: 公告
|
79
|
+
comments_blocked: 留言已封鎖
|
80
|
+
endorsements_blocked: 背書已封鎖
|
81
|
+
endorsements_enabled: 背書已啟用
|
82
|
+
events:
|
83
|
+
blogs:
|
84
|
+
post_created:
|
85
|
+
email_intro: 您追蹤的參與空間 "%{participatory_space_title}" 中有新文章發佈了,標題為 "%{resource_title}"。
|
86
|
+
email_outro: 您收到了此通知,是因為您正在關注 "%{participatory_space_title}"。您可以通過前面的鏈接取消關注它。
|
87
|
+
email_subject: 在 %{participatory_space_title} 中發布了新的文章
|
88
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> 的帖子已經在 %{participatory_space_title} 發布。
|
89
|
+
statistics:
|
90
|
+
posts_count: 文章
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-blogs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Massot Gil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,98 +16,98 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.26.
|
19
|
+
version: 0.26.8
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.26.
|
26
|
+
version: 0.26.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-comments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.26.
|
33
|
+
version: 0.26.8
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.26.
|
40
|
+
version: 0.26.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.26.
|
47
|
+
version: 0.26.8
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.26.
|
54
|
+
version: 0.26.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-admin
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.26.
|
61
|
+
version: 0.26.8
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.26.
|
68
|
+
version: 0.26.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: decidim-assemblies
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.26.
|
75
|
+
version: 0.26.8
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.26.
|
82
|
+
version: 0.26.8
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: decidim-dev
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.26.
|
89
|
+
version: 0.26.8
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.26.
|
96
|
+
version: 0.26.8
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: decidim-participatory_processes
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.26.
|
103
|
+
version: 0.26.8
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.26.
|
110
|
+
version: 0.26.8
|
111
111
|
description: A Blog component for decidim's participatory spaces.
|
112
112
|
email:
|
113
113
|
- isaac.mg@coditramuntana.com
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- app/views/decidim/blogs/posts/index.html.erb
|
151
151
|
- app/views/decidim/blogs/posts/show.html.erb
|
152
152
|
- config/assets.rb
|
153
|
+
- config/environment.rb
|
153
154
|
- config/locales/am-ET.yml
|
154
155
|
- config/locales/ar-SA.yml
|
155
156
|
- config/locales/ar.yml
|
@@ -172,6 +173,7 @@ files:
|
|
172
173
|
- config/locales/et-EE.yml
|
173
174
|
- config/locales/et.yml
|
174
175
|
- config/locales/eu.yml
|
176
|
+
- config/locales/fa-IR.yml
|
175
177
|
- config/locales/fi-pl.yml
|
176
178
|
- config/locales/fi-plain.yml
|
177
179
|
- config/locales/fi.yml
|
@@ -190,6 +192,7 @@ files:
|
|
190
192
|
- config/locales/it.yml
|
191
193
|
- config/locales/ja.yml
|
192
194
|
- config/locales/ka-GE.yml
|
195
|
+
- config/locales/kaa.yml
|
193
196
|
- config/locales/ko-KR.yml
|
194
197
|
- config/locales/ko.yml
|
195
198
|
- config/locales/lb-LU.yml
|