decidim-blogs 0.27.5 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/blogs/content_blocks/highlighted_posts/content.erb +17 -0
- data/app/cells/decidim/blogs/content_blocks/highlighted_posts_cell.rb +52 -0
- data/app/cells/decidim/blogs/post_activity_cell.rb +1 -4
- data/app/cells/decidim/blogs/post_cell.rb +9 -2
- data/app/cells/decidim/blogs/post_g_cell.rb +31 -0
- data/app/cells/decidim/blogs/post_l_cell.rb +35 -0
- data/app/cells/decidim/blogs/post_metadata_cell.rb +29 -0
- data/app/cells/decidim/blogs/post_metadata_g_cell.rb +14 -0
- data/app/cells/decidim/blogs/post_s_cell.rb +15 -0
- data/app/commands/decidim/blogs/admin/create_post.rb +1 -0
- data/app/commands/decidim/blogs/admin/update_post.rb +10 -1
- data/app/controllers/decidim/blogs/admin/posts_controller.rb +2 -2
- data/app/controllers/decidim/blogs/posts_controller.rb +16 -4
- data/app/forms/decidim/blogs/admin/post_form.rb +2 -1
- data/app/helpers/decidim/blogs/admin/posts_helper.rb +11 -1
- data/app/helpers/decidim/blogs/application_helper.rb +4 -0
- data/app/helpers/decidim/blogs/posts_helper.rb +2 -4
- data/app/models/decidim/blogs/post.rb +14 -3
- data/app/packs/entrypoints/decidim_blogs.js +3 -0
- data/app/packs/stylesheets/blogs.scss +53 -0
- data/app/presenters/decidim/blogs/admin_log/post_presenter.rb +2 -2
- data/app/views/decidim/blogs/admin/posts/_form.html.erb +19 -13
- data/app/views/decidim/blogs/admin/posts/edit.html.erb +16 -6
- data/app/views/decidim/blogs/admin/posts/index.html.erb +60 -52
- data/app/views/decidim/blogs/admin/posts/new.html.erb +17 -6
- data/app/views/decidim/blogs/posts/_actions.html.erb +18 -0
- data/app/views/decidim/blogs/posts/index.html.erb +22 -9
- data/app/views/decidim/blogs/posts/show.html.erb +37 -47
- data/config/locales/ar.yml +2 -20
- data/config/locales/ca.yml +15 -17
- data/config/locales/cs.yml +17 -17
- data/config/locales/de.yml +15 -17
- data/config/locales/el.yml +7 -18
- data/config/locales/en.yml +15 -17
- data/config/locales/es-MX.yml +15 -17
- data/config/locales/es-PY.yml +15 -17
- data/config/locales/es.yml +15 -17
- data/config/locales/eu.yml +16 -18
- data/config/locales/fi-plain.yml +15 -17
- data/config/locales/fi.yml +15 -17
- data/config/locales/fr-CA.yml +15 -17
- data/config/locales/fr.yml +15 -17
- data/config/locales/ga-IE.yml +0 -9
- data/config/locales/gl.yml +0 -21
- data/config/locales/hu.yml +12 -18
- data/config/locales/id-ID.yml +0 -19
- data/config/locales/is-IS.yml +0 -13
- data/config/locales/it.yml +0 -21
- data/config/locales/ja.yml +14 -17
- data/config/locales/lb.yml +0 -21
- data/config/locales/lt.yml +12 -18
- data/config/locales/lv.yml +0 -21
- data/config/locales/nl.yml +0 -21
- data/config/locales/no.yml +0 -21
- data/config/locales/pl.yml +0 -21
- data/config/locales/pt-BR.yml +12 -26
- data/config/locales/pt.yml +0 -21
- data/config/locales/ro-RO.yml +7 -18
- data/config/locales/ru.yml +12 -18
- data/config/locales/sk.yml +0 -21
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +5 -20
- data/config/locales/tr-TR.yml +0 -21
- data/config/locales/uk.yml +0 -17
- data/config/locales/zh-CN.yml +0 -21
- data/config/locales/zh-TW.yml +3 -14
- data/db/migrate/20220812122940_add_published_at_to_decidim_blogs_posts.rb +17 -0
- data/lib/decidim/api/blogs_type.rb +14 -2
- data/lib/decidim/api/post_type.rb +1 -0
- data/lib/decidim/blogs/admin_engine.rb +2 -2
- data/lib/decidim/blogs/component.rb +4 -60
- data/lib/decidim/blogs/engine.rb +16 -1
- data/lib/decidim/blogs/seeds.rb +76 -0
- data/lib/decidim/blogs/test/factories.rb +2 -1
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +38 -28
- data/app/cells/decidim/blogs/post_m/footer.erb +0 -5
- data/app/cells/decidim/blogs/post_m_cell.rb +0 -21
- data/app/views/decidim/blogs/posts/_datetime.html.erb +0 -1
- data/app/views/decidim/blogs/posts/_posts.html.erb +0 -24
- data/app/views/decidim/blogs/posts/_sidebar_blog.html.erb +0 -21
- data/config/environment.rb +0 -3
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.
|
4
|
+
version: 0.28.0.rc4
|
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-12-
|
11
|
+
date: 2023-12-11 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.
|
19
|
+
version: 0.28.0.rc4
|
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
|
+
version: 0.28.0.rc4
|
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.
|
33
|
+
version: 0.28.0.rc4
|
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.
|
40
|
+
version: 0.28.0.rc4
|
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.
|
47
|
+
version: 0.28.0.rc4
|
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.
|
54
|
+
version: 0.28.0.rc4
|
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.
|
61
|
+
version: 0.28.0.rc4
|
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.
|
68
|
+
version: 0.28.0.rc4
|
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.
|
75
|
+
version: 0.28.0.rc4
|
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.
|
82
|
+
version: 0.28.0.rc4
|
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.
|
89
|
+
version: 0.28.0.rc4
|
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.
|
96
|
+
version: 0.28.0.rc4
|
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.
|
103
|
+
version: 0.28.0.rc4
|
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.
|
110
|
+
version: 0.28.0.rc4
|
111
111
|
description: A Blog component for decidim's participatory spaces.
|
112
112
|
email:
|
113
113
|
- isaac.mg@coditramuntana.com
|
@@ -117,10 +117,15 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- README.md
|
119
119
|
- Rakefile
|
120
|
+
- app/cells/decidim/blogs/content_blocks/highlighted_posts/content.erb
|
121
|
+
- app/cells/decidim/blogs/content_blocks/highlighted_posts_cell.rb
|
120
122
|
- app/cells/decidim/blogs/post_activity_cell.rb
|
121
123
|
- app/cells/decidim/blogs/post_cell.rb
|
122
|
-
- app/cells/decidim/blogs/
|
123
|
-
- app/cells/decidim/blogs/
|
124
|
+
- app/cells/decidim/blogs/post_g_cell.rb
|
125
|
+
- app/cells/decidim/blogs/post_l_cell.rb
|
126
|
+
- app/cells/decidim/blogs/post_metadata_cell.rb
|
127
|
+
- app/cells/decidim/blogs/post_metadata_g_cell.rb
|
128
|
+
- app/cells/decidim/blogs/post_s_cell.rb
|
124
129
|
- app/commands/decidim/blogs/admin/create_post.rb
|
125
130
|
- app/commands/decidim/blogs/admin/update_post.rb
|
126
131
|
- app/controllers/decidim/blogs/admin/application_controller.rb
|
@@ -138,6 +143,7 @@ files:
|
|
138
143
|
- app/models/decidim/blogs/post.rb
|
139
144
|
- app/packs/entrypoints/decidim_blogs.js
|
140
145
|
- app/packs/images/decidim/blogs/decidim_blogs.svg
|
146
|
+
- app/packs/stylesheets/blogs.scss
|
141
147
|
- app/permissions/decidim/blog/permissions.rb
|
142
148
|
- app/presenters/decidim/blogs/admin_log/post_presenter.rb
|
143
149
|
- app/presenters/decidim/blogs/official_author_presenter.rb
|
@@ -146,13 +152,10 @@ files:
|
|
146
152
|
- app/views/decidim/blogs/admin/posts/edit.html.erb
|
147
153
|
- app/views/decidim/blogs/admin/posts/index.html.erb
|
148
154
|
- app/views/decidim/blogs/admin/posts/new.html.erb
|
149
|
-
- app/views/decidim/blogs/posts/
|
150
|
-
- app/views/decidim/blogs/posts/_posts.html.erb
|
151
|
-
- app/views/decidim/blogs/posts/_sidebar_blog.html.erb
|
155
|
+
- app/views/decidim/blogs/posts/_actions.html.erb
|
152
156
|
- app/views/decidim/blogs/posts/index.html.erb
|
153
157
|
- app/views/decidim/blogs/posts/show.html.erb
|
154
158
|
- config/assets.rb
|
155
|
-
- config/environment.rb
|
156
159
|
- config/locales/am-ET.yml
|
157
160
|
- config/locales/ar-SA.yml
|
158
161
|
- config/locales/ar.yml
|
@@ -240,6 +243,7 @@ files:
|
|
240
243
|
- db/migrate/20200320105910_index_foreign_keys_in_decidim_blogs_posts.rb
|
241
244
|
- db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb
|
242
245
|
- db/migrate/20210310120514_add_followable_counter_cache_to_blogs.rb
|
246
|
+
- db/migrate/20220812122940_add_published_at_to_decidim_blogs_posts.rb
|
243
247
|
- lib/decidim/api/blogs_type.rb
|
244
248
|
- lib/decidim/api/post_input_filter.rb
|
245
249
|
- lib/decidim/api/post_input_sort.rb
|
@@ -250,12 +254,18 @@ files:
|
|
250
254
|
- lib/decidim/blogs/api.rb
|
251
255
|
- lib/decidim/blogs/component.rb
|
252
256
|
- lib/decidim/blogs/engine.rb
|
257
|
+
- lib/decidim/blogs/seeds.rb
|
253
258
|
- lib/decidim/blogs/test/factories.rb
|
254
259
|
- lib/decidim/blogs/version.rb
|
255
|
-
homepage: https://
|
260
|
+
homepage: https://decidim.org
|
256
261
|
licenses:
|
257
262
|
- AGPL-3.0
|
258
|
-
metadata:
|
263
|
+
metadata:
|
264
|
+
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
265
|
+
documentation_uri: https://docs.decidim.org/
|
266
|
+
funding_uri: https://opencollective.com/decidim
|
267
|
+
homepage_uri: https://decidim.org
|
268
|
+
source_code_uri: https://github.com/decidim/decidim
|
259
269
|
post_install_message:
|
260
270
|
rdoc_options: []
|
261
271
|
require_paths:
|
@@ -264,14 +274,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
274
|
requirements:
|
265
275
|
- - ">="
|
266
276
|
- !ruby/object:Gem::Version
|
267
|
-
version: '3.
|
277
|
+
version: '3.1'
|
268
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
279
|
requirements:
|
270
|
-
- - "
|
280
|
+
- - ">"
|
271
281
|
- !ruby/object:Gem::Version
|
272
|
-
version:
|
282
|
+
version: 1.3.1
|
273
283
|
requirements: []
|
274
|
-
rubygems_version: 3.4.
|
284
|
+
rubygems_version: 3.4.20
|
275
285
|
signing_key:
|
276
286
|
specification_version: 4
|
277
287
|
summary: Decidim blogs module
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Blogs
|
5
|
-
# This cell renders the Medium (:m) post card
|
6
|
-
# for an given instance of a Post
|
7
|
-
class PostMCell < Decidim::CardMCell
|
8
|
-
private
|
9
|
-
|
10
|
-
def has_actions?
|
11
|
-
false
|
12
|
-
end
|
13
|
-
|
14
|
-
def endorsements_count
|
15
|
-
with_tooltip t("decidim.endorsable.endorsements") do
|
16
|
-
"#{icon("bullhorn", class: "icon--small")} #{model.endorsements_count}"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= l post.created_at, format: "%d/%m/%Y" %>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<div class="row small-12">
|
2
|
-
<% paginate_posts.each do |post| %>
|
3
|
-
<div class="card card--post">
|
4
|
-
<% if post.photo.present? %>
|
5
|
-
<%= image_tag post.photo.url, class: "card__image" %>
|
6
|
-
<% end %>
|
7
|
-
<div class="card__content">
|
8
|
-
<div class="card__header">
|
9
|
-
<%= link_to post, class: "card__link" do %>
|
10
|
-
<h2 class="card__title">
|
11
|
-
<%= translated_attribute post.title %>
|
12
|
-
</h2>
|
13
|
-
<% end %>
|
14
|
-
<div class="card__author">
|
15
|
-
<% post_presenter = Decidim::Blogs::PostPresenter.new(post) %>
|
16
|
-
<%= cell "decidim/author", post_presenter.author, from: post, has_actions: true %>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<%= decidim_sanitize_editor post_description(post) %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<% end %>
|
23
|
-
</div>
|
24
|
-
<%= decidim_paginate paginate_posts %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<% if posts.any? %>
|
2
|
-
<div class="section">
|
3
|
-
<div class="section-heading">
|
4
|
-
<%= t(".most_commented_posts") %>
|
5
|
-
</div>
|
6
|
-
<% posts.each do |post| %>
|
7
|
-
<div class="m-bottom">
|
8
|
-
<strong><%= link_to translated_attribute(post.title), post %></strong>
|
9
|
-
<div class="author-data author-data--nopadding">
|
10
|
-
<%= render partial: "datetime", locals: { post: post } %> ·
|
11
|
-
<%= link_to "#{post_path(post)}#comments", title: t(".comments") do %>
|
12
|
-
<%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %>
|
13
|
-
<%= post.comments_count %>
|
14
|
-
<%= t(".comments") %>
|
15
|
-
<% end %>
|
16
|
-
<a href="#comments" title="<%= t(".comments") %>"></a>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
20
|
-
</div>
|
21
|
-
<% end %>
|
data/config/environment.rb
DELETED