decidim-blogs 0.27.3 → 0.27.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3e84a353d8de91e79dcb58a62fc4fef6b7fd19230f64ae7a0fa76d48d12dff9
4
- data.tar.gz: ebdbb6c878ee5e294ee0ac6860cd83d8674cf971bef82b72e985c4371aca255e
3
+ metadata.gz: c27ac55b0fb38ea45207eb8da02efb942230dc7640eedc41bbd482911a9327a8
4
+ data.tar.gz: b7bc6736d0da74994d5e42eebdf287a7432d8a01542b29e82d59b8c696f7eda4
5
5
  SHA512:
6
- metadata.gz: 71cd25c8265b30f3be3bb9cb3ffc48967097df10a70954ab6dfb481a74e11cc1374b26feeb9d79a597c0cf797701c9b377d6c289b67736957b3baa029ff53ccd
7
- data.tar.gz: 367eb3ae477cb1a88901842c62983827c1f352e2c6371d449ea9aa71fd80e1cd3bba4e4496d29ceb3a3ef2be54b54ae6ca74ab3c20400d8b94a752132d6c0cc4
6
+ metadata.gz: fef349fd0f2dcf09615a5a325971008a1b407772639dfe16790847302fb6d19fa8363668118c10da1b0f0665938dee0eabb700ba99e13dde859bc034ecdff097
7
+ data.tar.gz: a2ba08550a22b8dfdeebe0ece571e20fe542d598522c4ab3f5ba18ac7384a629ec04225ebe76d52bcfe90a4936eee64febd3dcb05ee5ea086fefe2afe5858c1f
@@ -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
@@ -73,6 +74,21 @@ module Decidim
73
74
  def attachment_context
74
75
  :admin
75
76
  end
77
+
78
+ # Public: Overrides the `reported_content_url` Reportable concern method.
79
+ def reported_content_url
80
+ ResourceLocatorPresenter.new(self).url
81
+ end
82
+
83
+ # Public: Overrides the `reported_attributes` Reportable concern method.
84
+ def reported_attributes
85
+ [:title, :body]
86
+ end
87
+
88
+ # Public: Overrides the `reported_searchable_content_extras` Reportable concern method.
89
+ def reported_searchable_content_extras
90
+ [normalized_author.name]
91
+ end
76
92
  end
77
93
  end
78
94
  end
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <%= decidim_form_for(@form, html: { class: "form edit_post" }) do |f| %>
2
3
  <%= render partial: "form", object: f, locals: { title: t(".title") } %>
3
4
 
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <div class="card">
2
3
  <div class="card-divider">
3
4
  <h2 class="card-title">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <%= decidim_form_for(@form, html: { class: "form new_post" }) do |f| %>
2
3
  <%= render partial: "form", object: f, locals: { title: t(".title") } %>
3
4
 
@@ -59,3 +59,4 @@
59
59
  </div>
60
60
  <%= attachments_for post %>
61
61
  <%= comments_for post %>
62
+ <%= cell("decidim/flag_modal", post) %>
File without changes
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  de:
3
3
  activemodel:
4
+ attributes:
5
+ post:
6
+ body: Haupttext
7
+ decidim_author_id: Autor*in
8
+ published_at: Veröffentlicht am
9
+ title: Titel
4
10
  models:
5
11
  decidim/blogs/create_post_event: Neuer Blogeintrag
6
12
  activerecord:
@@ -52,6 +58,7 @@ de:
52
58
  body: Haupttext
53
59
  created_at: Hergestellt in
54
60
  official_blog_post: Offizieller Post
61
+ title: Titel
55
62
  posts:
56
63
  show:
57
64
  back: Zurück zur Liste
@@ -64,8 +71,10 @@ de:
64
71
  components:
65
72
  blogs:
66
73
  actions:
74
+ comment: Kommentieren
67
75
  create: Erstellen
68
76
  destroy: Löschen
77
+ endorse: Unterstützen
69
78
  update: Aktualisieren
70
79
  name: Blog
71
80
  settings:
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  el:
3
3
  activemodel:
4
+ attributes:
5
+ post:
6
+ body: Σώμα
7
+ decidim_author_id: Συντάκτης
8
+ published_at: Ώρα δημοσίευσης
9
+ title: Τίτλος
4
10
  models:
5
11
  decidim/blogs/create_post_event: Νέα ανάρτηση ιστολογίου
6
12
  activerecord:
@@ -38,6 +44,11 @@ el:
38
44
  update:
39
45
  invalid: Υπήρξε ένα πρόβλημα κατά την αποθήκευση της ανάρτησης.
40
46
  success: Η ανάρτηση αποθηκεύτηκε με επιτυχία
47
+ admin_log:
48
+ post:
49
+ create: "Ο/Η %{user_name} δημιούργησε την ανάρτηση %{resource_name} στο %{space_name}"
50
+ delete: "Ο/Η %{user_name} διέγραψε την ανάρτηση %{resource_name} στο %{space_name}"
51
+ update: "Ο/Η %{user_name} ενημέρωση την ανάρτηση %{resource_name} στο %{space_name}"
41
52
  last_activity:
42
53
  new_post_at_html: "<span>Νέα ανάρτηση στις %{link}</span>"
43
54
  models:
@@ -46,6 +57,8 @@ el:
46
57
  author: Συντάκτης
47
58
  body: Σώμα
48
59
  created_at: Δημιουργήθηκε στις
60
+ official_blog_post: Επίσημη ανάρτηση
61
+ title: Τίτλος
49
62
  posts:
50
63
  show:
51
64
  back: Επιστροφή στη λίστα
@@ -57,6 +70,12 @@ el:
57
70
  read_more: Διαβάστε περισσότερα
58
71
  components:
59
72
  blogs:
73
+ actions:
74
+ comment: Σχόλιο
75
+ create: Δημιουργία
76
+ destroy: Διαγραφή
77
+ endorse: Επιδοκιμασία
78
+ update: Ενημέρωση
60
79
  name: Ιστολόγιο
61
80
  settings:
62
81
  global:
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  hu:
3
3
  activemodel:
4
+ attributes:
5
+ post:
6
+ body: Törzs
7
+ decidim_author_id: Szerző
8
+ published_at: Közzététel időpontja
9
+ title: Cím
4
10
  models:
5
11
  decidim/blogs/create_post_event: Új blogbejegyzés
6
12
  activerecord:
@@ -52,6 +58,7 @@ hu:
52
58
  body: Szöveg
53
59
  created_at: 'Létrehozva:'
54
60
  official_blog_post: Hivatalos bejegyzés
61
+ title: Cím
55
62
  posts:
56
63
  show:
57
64
  back: Vissza a listához
@@ -64,8 +71,10 @@ hu:
64
71
  components:
65
72
  blogs:
66
73
  actions:
74
+ comment: Hozzászólás
67
75
  create: Létrehozás
68
76
  destroy: Törlés
77
+ endorse: Helyesel/Jóváhagy
69
78
  update: Frissítés
70
79
  name: Blog
71
80
  settings:
@@ -1 +1,24 @@
1
+ ---
1
2
  kaa:
3
+ decidim:
4
+ blogs:
5
+ actions:
6
+ destroy: Óshiriw
7
+ edit: Ózgeris kirgiziw
8
+ title: Háreketler
9
+ admin:
10
+ posts:
11
+ edit:
12
+ save: Jańalaw
13
+ new:
14
+ create: Jaratıw
15
+ models:
16
+ post:
17
+ fields:
18
+ author: Avtor
19
+ components:
20
+ blogs:
21
+ actions:
22
+ create: Jaratıw
23
+ destroy: Óshiriw
24
+ update: Jańalaw
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  pt-BR:
3
3
  activemodel:
4
+ attributes:
5
+ post:
6
+ body: Corpo
7
+ decidim_author_id: Autor
8
+ published_at: Horário da publicação
9
+ title: Título
4
10
  models:
5
11
  decidim/blogs/create_post_event: Nova postagem no blog
6
12
  activerecord:
@@ -46,6 +52,8 @@ pt-BR:
46
52
  author: Autor
47
53
  body: Corpo
48
54
  created_at: Criado em
55
+ official_blog_post: Publicação oficial
56
+ title: Título
49
57
  posts:
50
58
  show:
51
59
  back: Voltar para a lista
@@ -57,6 +65,10 @@ pt-BR:
57
65
  read_more: Saiba mais
58
66
  components:
59
67
  blogs:
68
+ actions:
69
+ comment: Comentário
70
+ create: Criar
71
+ destroy: Excluir
60
72
  name: Blog
61
73
  settings:
62
74
  global:
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-pages version.
5
5
  module Blogs
6
6
  def self.version
7
- "0.27.3"
7
+ "0.27.4"
8
8
  end
9
9
  end
10
10
  end
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.27.3
4
+ version: 0.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
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.27.3
19
+ version: 0.27.4
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.27.3
26
+ version: 0.27.4
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.27.3
33
+ version: 0.27.4
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.27.3
40
+ version: 0.27.4
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.27.3
47
+ version: 0.27.4
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.27.3
54
+ version: 0.27.4
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.27.3
61
+ version: 0.27.4
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.27.3
68
+ version: 0.27.4
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.27.3
75
+ version: 0.27.4
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.27.3
82
+ version: 0.27.4
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.27.3
89
+ version: 0.27.4
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.27.3
96
+ version: 0.27.4
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.27.3
103
+ version: 0.27.4
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.27.3
110
+ version: 0.27.4
111
111
  description: A Blog component for decidim's participatory spaces.
112
112
  email:
113
113
  - isaac.mg@coditramuntana.com
@@ -152,6 +152,7 @@ files:
152
152
  - app/views/decidim/blogs/posts/index.html.erb
153
153
  - app/views/decidim/blogs/posts/show.html.erb
154
154
  - config/assets.rb
155
+ - config/environment.rb
155
156
  - config/locales/am-ET.yml
156
157
  - config/locales/ar-SA.yml
157
158
  - config/locales/ar.yml
@@ -253,7 +254,7 @@ homepage: https://github.com/decidim/decidim
253
254
  licenses:
254
255
  - AGPL-3.0
255
256
  metadata: {}
256
- post_install_message:
257
+ post_install_message:
257
258
  rdoc_options: []
258
259
  require_paths:
259
260
  - lib
@@ -269,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
270
  version: '0'
270
271
  requirements: []
271
272
  rubygems_version: 3.2.22
272
- signing_key:
273
+ signing_key:
273
274
  specification_version: 4
274
275
  summary: Decidim blogs module
275
276
  test_files: []