decidim-blogs 0.32.1 → 0.32.2
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/blogs/content_blocks/highlighted_posts_cell.rb +1 -1
- data/app/controllers/decidim/blogs/admin/application_controller.rb +1 -1
- data/app/controllers/decidim/blogs/admin/attachment_collections_controller.rb +2 -0
- data/app/controllers/decidim/blogs/admin/attachments_controller.rb +2 -0
- data/app/controllers/decidim/blogs/posts_controller.rb +5 -1
- data/app/models/decidim/blogs/post.rb +1 -1
- data/config/locales/de.yml +2 -1
- data/config/locales/gl.yml +107 -0
- data/config/locales/sv.yml +1 -0
- data/decidim-blogs.gemspec +1 -1
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1ea9a3d07414b7791aa56dedb78ca765007db25b3b60a38fa2b1922fe509aa6
|
|
4
|
+
data.tar.gz: dd8d3a8f3b0c6282b1f137c53ba304331130a4c3325f44017dc0d0f0204428e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69ee7a363cb9a0298c01f04ce9a14cce166011cdc3d0962eff2ee5457c34c7a3021ceeb9fbdfd53cc864be63f30030d345938ab2f897e310269cb64c96deace6
|
|
7
|
+
data.tar.gz: '043827b0391d16db0f7e5b5f8d7a8ed569978cff0039f564f8d08937f470c01d6ae9caa48884356bf551a156cb6a98b7644fa925145550b9c59307ec2bb1e398'
|
|
@@ -11,7 +11,7 @@ module Decidim
|
|
|
11
11
|
private
|
|
12
12
|
|
|
13
13
|
def posts
|
|
14
|
-
@posts ||= Decidim::Blogs::Post.published.where(component: published_components).
|
|
14
|
+
@posts ||= Decidim::Blogs::Post.published.where(component: published_components).published_at_desc
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def decidim_blogs
|
|
@@ -10,7 +10,7 @@ module Decidim
|
|
|
10
10
|
helper_method :posts, :post
|
|
11
11
|
|
|
12
12
|
def posts
|
|
13
|
-
@posts ||= Post.where(component: current_component).page(params[:page]).per(15)
|
|
13
|
+
@posts ||= Post.where(component: current_component).published_at_desc.created_at_desc.page(params[:page]).per(15)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def post
|
|
@@ -8,6 +8,8 @@ module Decidim
|
|
|
8
8
|
class AttachmentCollectionsController < Admin::ApplicationController
|
|
9
9
|
include Decidim::Admin::Concerns::HasAttachmentCollections
|
|
10
10
|
|
|
11
|
+
protected
|
|
12
|
+
|
|
11
13
|
def after_destroy_path
|
|
12
14
|
post_attachment_collections_path(post, post.component, current_participatory_space)
|
|
13
15
|
end
|
|
@@ -14,9 +14,13 @@ module Decidim
|
|
|
14
14
|
helper_method :posts, :post, :post_presenter, :paginate_posts, :posts_most_commented, :tabs, :panels
|
|
15
15
|
before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
|
|
16
16
|
|
|
17
|
-
def index
|
|
17
|
+
def index
|
|
18
|
+
enforce_permission_to :read, :blogpost
|
|
19
|
+
end
|
|
18
20
|
|
|
19
21
|
def show
|
|
22
|
+
enforce_permission_to :read, :blogpost, blogpost: post
|
|
23
|
+
|
|
20
24
|
raise ActionController::RoutingError, "Not Found" unless post
|
|
21
25
|
end
|
|
22
26
|
|
|
@@ -29,7 +29,7 @@ module Decidim
|
|
|
29
29
|
validates :title, presence: true
|
|
30
30
|
|
|
31
31
|
scope :created_at_desc, -> { order(arel_table[:created_at].desc) }
|
|
32
|
-
scope :published_at_desc, -> { order(arel_table[:published_at].desc) }
|
|
32
|
+
scope :published_at_desc, -> { order(arel_table[:published_at].desc.nulls_last) }
|
|
33
33
|
scope :published, -> { where(published_at: ..Time.current) }
|
|
34
34
|
|
|
35
35
|
searchable_fields({
|
data/config/locales/de.yml
CHANGED
|
@@ -115,6 +115,7 @@ de:
|
|
|
115
115
|
announcement: Ankündigung
|
|
116
116
|
attachments_allowed: Anhänge zulassen
|
|
117
117
|
comments_enabled: Kommentare aktiviert
|
|
118
|
+
comments_max_length: Maximale Zeichenanzahl pro Kommentar (0 für Standardwert)
|
|
118
119
|
creation_enabled_for_participants: Teilnehmende können Beiträge erstellen
|
|
119
120
|
define_taxonomy_filters: Bitte definieren Sie einige Filter für diesen partizipativen Bereich, bevor Sie diese Einstellung verwenden.
|
|
120
121
|
no_taxonomy_filters_found: Keine Klassifizierungsfilter gefunden.
|
|
@@ -154,7 +155,7 @@ de:
|
|
|
154
155
|
follows_count: Die Anzahl Folgende dieses Beitrags
|
|
155
156
|
id: Die eindeutige Bezeichnung des Beitrags
|
|
156
157
|
likes_count: Die Anzahl Likes dieses Beitrags
|
|
157
|
-
participatory_space: Zu welchem Bereich dieser Beitrag gehört (z.B. Partizipationsprozesse oder
|
|
158
|
+
participatory_space: Zu welchem Bereich dieser Beitrag gehört (z.B. Partizipationsprozesse oder Versammlungen)
|
|
158
159
|
published_at: Veröffentlichungsdatum des Beitrags
|
|
159
160
|
title: Der Titel des Beitrags
|
|
160
161
|
updated_at: Letztes Aktualisierungsdatum dieses Beitrags
|
data/config/locales/gl.yml
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
gl:
|
|
3
3
|
activemodel:
|
|
4
|
+
attributes:
|
|
5
|
+
post:
|
|
6
|
+
body: Corpo
|
|
7
|
+
decidim_author_id: Autoría
|
|
8
|
+
published_at: Data de publicación
|
|
9
|
+
title: Título
|
|
4
10
|
models:
|
|
5
11
|
decidim/blogs/create_post_event: Nova publicación no blog
|
|
6
12
|
activerecord:
|
|
@@ -9,43 +15,116 @@ gl:
|
|
|
9
15
|
one: Publicación
|
|
10
16
|
other: Publicacións
|
|
11
17
|
decidim:
|
|
18
|
+
admin:
|
|
19
|
+
admin_log:
|
|
20
|
+
changeset:
|
|
21
|
+
posts: Publicacións
|
|
22
|
+
tooltips:
|
|
23
|
+
deleted_posts_info: Non se pode eliminar esta publicación
|
|
12
24
|
blogs:
|
|
13
25
|
actions:
|
|
14
26
|
author_id: Crear publicación como
|
|
27
|
+
confirm_delete_post: Seguro que queres eliminar esta publicación?
|
|
28
|
+
deleted_posts_info: As publicacións eliminadas pódense restaurar desde a papeleira.
|
|
15
29
|
edit: Editar
|
|
16
30
|
new: Nova publicación
|
|
17
31
|
title: Accións
|
|
32
|
+
view_deleted_posts: Ver as publicacións eliminadas
|
|
18
33
|
admin:
|
|
19
34
|
posts:
|
|
35
|
+
create:
|
|
36
|
+
invalid: Produciuse un problema ao crear esta publicación.
|
|
37
|
+
success: A publicación creouse correctamente.
|
|
38
|
+
destroy:
|
|
39
|
+
success: A publicación eliminouse correctamente.
|
|
20
40
|
edit:
|
|
21
41
|
save: Actualizar
|
|
22
42
|
title: Editar publicación
|
|
23
43
|
index:
|
|
44
|
+
not_published_yet: Aínda non se publicou.
|
|
24
45
|
title: Publicacións
|
|
46
|
+
manage_trash:
|
|
47
|
+
title: Publicacións eliminadas
|
|
25
48
|
new:
|
|
26
49
|
create: Crear
|
|
27
50
|
title: Crear unha publicación
|
|
28
51
|
update:
|
|
29
52
|
invalid: Produciuse un erro ao gardar a publicación.
|
|
53
|
+
success: A publicación gardouse correctamente.
|
|
54
|
+
admin_log:
|
|
55
|
+
post:
|
|
56
|
+
create: "%{user_name} creou a publicación de blog %{resource_name} en %{space_name}"
|
|
57
|
+
delete: "%{user_name} eliminou a publicación de blog %{resource_name} de %{space_name}"
|
|
58
|
+
restore: "%{user_name} restaurou a publicación de blog %{resource_name} en %{space_name}"
|
|
59
|
+
soft_delete: "%{user_name} moveu a publicación de blog %{resource_name} de %{space_name} á papeleira"
|
|
60
|
+
update: "%{user_name} actualizou a publicación de blog %{resource_name} en %{space_name}"
|
|
61
|
+
content_blocks:
|
|
62
|
+
highlighted_posts:
|
|
63
|
+
last_published: Últimas publicacións
|
|
64
|
+
name: Publicacións
|
|
65
|
+
see_all: Ver todas as publicacións
|
|
66
|
+
last_activity:
|
|
67
|
+
new_post: 'Nova publicación:'
|
|
30
68
|
models:
|
|
31
69
|
post:
|
|
32
70
|
fields:
|
|
33
71
|
author: Autor
|
|
34
72
|
body: Corpo
|
|
73
|
+
official_blog_post: Publicación oficial
|
|
74
|
+
published_at: Data de publicación
|
|
75
|
+
taxonomies: Taxonomías
|
|
76
|
+
title: Título
|
|
77
|
+
posts:
|
|
78
|
+
edit:
|
|
79
|
+
add_attachments: Engadir anexos
|
|
80
|
+
back: Volver á publicación
|
|
81
|
+
button: Actualizar
|
|
82
|
+
edit_attachments: Editar anexos
|
|
83
|
+
title: Editar publicación
|
|
84
|
+
form:
|
|
85
|
+
author_id: Autoría
|
|
86
|
+
body: Corpo
|
|
87
|
+
title: Título
|
|
88
|
+
index:
|
|
89
|
+
count:
|
|
90
|
+
one: "%{count} publicación"
|
|
91
|
+
other: "%{count} publicacións"
|
|
92
|
+
empty: Aínda non hai publicacións.
|
|
93
|
+
new_post: Nova publicación
|
|
94
|
+
menu_actions:
|
|
95
|
+
button_destroy: Eliminar publicación
|
|
96
|
+
button_destroy_confirm: Seguro que queres eliminar esta publicación?
|
|
97
|
+
button_edit: Editar publicación
|
|
98
|
+
new:
|
|
99
|
+
back: Volver ás publicacións
|
|
100
|
+
button: Crear
|
|
101
|
+
title: Crear unha nova publicación
|
|
35
102
|
components:
|
|
36
103
|
blogs:
|
|
37
104
|
actions:
|
|
105
|
+
comment: Comentar
|
|
38
106
|
create: Crear
|
|
39
107
|
destroy: Eliminar
|
|
108
|
+
like: Gústame
|
|
40
109
|
update: Actualizar
|
|
110
|
+
vote_comment: Valorar comentario
|
|
41
111
|
name: Blog
|
|
42
112
|
settings:
|
|
43
113
|
global:
|
|
44
114
|
announcement: Anuncio
|
|
115
|
+
attachments_allowed: Permitir anexos
|
|
45
116
|
comments_enabled: Comentarios habilitados
|
|
117
|
+
comments_max_length: Máximo de caracteres por comentario (deixa 0 para usar o valor predeterminado)
|
|
118
|
+
creation_enabled_for_participants: As persoas participantes poden crear publicacións
|
|
119
|
+
define_taxonomy_filters: Define algúns filtros para este espazo participativo antes de usar esta configuración.
|
|
120
|
+
no_taxonomy_filters_found: Non se atoparon filtros de taxonomía.
|
|
121
|
+
taxonomy_filters: Seleccionar filtros para o compoñente
|
|
122
|
+
taxonomy_filters_add: Engadir filtro
|
|
46
123
|
step:
|
|
47
124
|
announcement: Anuncio
|
|
48
125
|
comments_blocked: Comentarios bloqueados
|
|
126
|
+
likes_blocked: Gústame bloqueados
|
|
127
|
+
likes_enabled: Gústame activados
|
|
49
128
|
events:
|
|
50
129
|
blogs:
|
|
51
130
|
post_created:
|
|
@@ -53,5 +132,33 @@ gl:
|
|
|
53
132
|
email_outro: Recibiches esta notificación porque estás seguindo "%{participatory_space_title}". Podes deixar de seguir dende a ligazón anterior.
|
|
54
133
|
email_subject: Nova publicación publicada en %{participatory_space_title}
|
|
55
134
|
notification_title: A publicación <a href="%{resource_path}">%{resource_title}</a> publicouse en %{participatory_space_title}
|
|
135
|
+
open_data:
|
|
136
|
+
help:
|
|
137
|
+
post_comments:
|
|
138
|
+
alignment: Se este comentario foi a favor, en contra ou neutral
|
|
139
|
+
author: O nome da persoa participante que fixo este comentario
|
|
140
|
+
body: O propio comentario
|
|
141
|
+
commentable_id: O identificador único do recurso comentable
|
|
142
|
+
commentable_type: O tipo de recurso comentable (se era un resultado, unha proposta etc.)
|
|
143
|
+
created_at: A data na que se creou este comentario
|
|
144
|
+
depth: A posición deste comentario na árbore de comentarios (se é unha resposta ou unha resposta a outra resposta)
|
|
145
|
+
id: O identificador deste comentario
|
|
146
|
+
locale: A configuración rexional (idioma) da persoa participante cando deixou este comentario
|
|
147
|
+
root_commentable_url: O URL do recurso ao que está vinculado este comentario
|
|
148
|
+
posts:
|
|
149
|
+
author: A información da autoría
|
|
150
|
+
body: O corpo da publicación
|
|
151
|
+
comments_count: O número de comentarios desta publicación
|
|
152
|
+
component: O compoñente ao que pertence a publicación
|
|
153
|
+
created_at: A data na que se creou esta publicación
|
|
154
|
+
follows_count: O número de seguimentos desta publicación
|
|
155
|
+
id: O identificador único desta publicación
|
|
156
|
+
likes_count: O número de «Gústame» desta publicación
|
|
157
|
+
participatory_space: O espazo ao que pertence esta publicación (por exemplo, un proceso participativo ou unha asemblea)
|
|
158
|
+
published_at: A data na que se publicou esta publicación
|
|
159
|
+
title: O título da publicación
|
|
160
|
+
updated_at: A última data na que se actualizou esta publicación
|
|
161
|
+
url: O URL desta publicación
|
|
56
162
|
statistics:
|
|
57
163
|
posts_count: Publicacións
|
|
164
|
+
posts_count_tooltip: O número de actualizacións ou publicacións de blog publicadas.
|
data/config/locales/sv.yml
CHANGED
|
@@ -115,6 +115,7 @@ sv:
|
|
|
115
115
|
announcement: Meddelande
|
|
116
116
|
attachments_allowed: Tillåt bilagor
|
|
117
117
|
comments_enabled: Aktivera kommentarer
|
|
118
|
+
comments_max_length: Max antal tecken per kommentar (ange 0 för standardvärdet)
|
|
118
119
|
creation_enabled_for_participants: Deltagarna kan skapa inlägg
|
|
119
120
|
define_taxonomy_filters: Ställ in filter innan du använder den här inställningen.
|
|
120
121
|
no_taxonomy_filters_found: Inga filter för kategorier hittades.
|
data/decidim-blogs.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-blogs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.32.
|
|
4
|
+
version: 0.32.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Isaac Massot Gil
|
|
@@ -15,98 +15,98 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.32.
|
|
18
|
+
version: 0.32.2
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.32.
|
|
25
|
+
version: 0.32.2
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: decidim-comments
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.32.
|
|
32
|
+
version: 0.32.2
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.32.
|
|
39
|
+
version: 0.32.2
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: decidim-core
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.32.
|
|
46
|
+
version: 0.32.2
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.32.
|
|
53
|
+
version: 0.32.2
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: decidim-admin
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 0.32.
|
|
60
|
+
version: 0.32.2
|
|
61
61
|
type: :development
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 0.32.
|
|
67
|
+
version: 0.32.2
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: decidim-assemblies
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - '='
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 0.32.
|
|
74
|
+
version: 0.32.2
|
|
75
75
|
type: :development
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - '='
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 0.32.
|
|
81
|
+
version: 0.32.2
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: decidim-dev
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - '='
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: 0.32.
|
|
88
|
+
version: 0.32.2
|
|
89
89
|
type: :development
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - '='
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 0.32.
|
|
95
|
+
version: 0.32.2
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: decidim-participatory_processes
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - '='
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 0.32.
|
|
102
|
+
version: 0.32.2
|
|
103
103
|
type: :development
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - '='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: 0.32.
|
|
109
|
+
version: 0.32.2
|
|
110
110
|
description: A Blog component for decidim's participatory spaces.
|
|
111
111
|
email:
|
|
112
112
|
- isaac.mg@coditramuntana.com
|