decidim-blogs 0.31.5 → 0.31.6

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/blogs/update_post.rb +1 -1
  3. data/app/controllers/decidim/blogs/posts_controller.rb +1 -0
  4. data/app/forms/decidim/blogs/post_form.rb +2 -2
  5. data/app/views/decidim/blogs/admin/posts/_actions.html.erb +1 -1
  6. data/app/views/decidim/blogs/posts/_form.html.erb +1 -1
  7. data/app/views/decidim/blogs/posts/_menu_actions.html.erb +4 -3
  8. data/config/locales/ar.yml +0 -1
  9. data/config/locales/bg.yml +0 -1
  10. data/config/locales/ca-IT.yml +1 -1
  11. data/config/locales/ca.yml +1 -1
  12. data/config/locales/cs.yml +0 -1
  13. data/config/locales/de.yml +0 -1
  14. data/config/locales/el.yml +0 -1
  15. data/config/locales/en.yml +1 -1
  16. data/config/locales/es-MX.yml +1 -1
  17. data/config/locales/es-PY.yml +1 -1
  18. data/config/locales/es.yml +1 -1
  19. data/config/locales/eu.yml +2 -2
  20. data/config/locales/fr-CA.yml +12 -1
  21. data/config/locales/fr.yml +12 -1
  22. data/config/locales/gl.yml +0 -1
  23. data/config/locales/hu.yml +0 -1
  24. data/config/locales/it.yml +0 -1
  25. data/config/locales/ja.yml +1 -1
  26. data/config/locales/ko.yml +0 -1
  27. data/config/locales/lb.yml +0 -1
  28. data/config/locales/lt.yml +0 -1
  29. data/config/locales/nl.yml +0 -1
  30. data/config/locales/no.yml +0 -1
  31. data/config/locales/pl.yml +0 -1
  32. data/config/locales/pt-BR.yml +0 -1
  33. data/config/locales/pt.yml +0 -1
  34. data/config/locales/ro-RO.yml +0 -1
  35. data/config/locales/ru.yml +0 -1
  36. data/config/locales/sk.yml +0 -1
  37. data/config/locales/sq-AL.yml +0 -1
  38. data/config/locales/sv.yml +0 -1
  39. data/config/locales/tr-TR.yml +1 -2
  40. data/config/locales/zh-CN.yml +0 -1
  41. data/config/locales/zh-TW.yml +0 -1
  42. data/lib/decidim/blogs/component.rb +1 -1
  43. data/lib/decidim/blogs/version.rb +1 -1
  44. metadata +16 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ee1cf2a8b474f65914c04e915066ab045232d376a0d66b005902f211685ebf4
4
- data.tar.gz: b3f2f960e3ca88cc3cac1e462409d2630c1a37a193b248d10b6215fd0f8dfd7b
3
+ metadata.gz: be25671bca141204d97dd6bbb55f08eedcaeafa6ed8f4cd9bad2f810caa8bb55
4
+ data.tar.gz: 5379e0a9f48713eb55fcb1af5479a9cbd8e249e74a40c58e6d9be405dbe8b358
5
5
  SHA512:
6
- metadata.gz: f31fd00f2bda2e8090ece1b2f6a3d2cd30aa2bbef70762322fb4ad5830e531aca2f1faa22cd928d8b6809ea26db85a998abfd6518723fb4a3c7596bced8f65ed
7
- data.tar.gz: 71c03c3c82afe0e68cbd793c5570b1863faabe5e1893afd354036818385033a80fe8b36cd5c13de9077f1f3a83286843a75555785c2217dfcee2e9d10be9bb76
6
+ metadata.gz: 7b379cb7a419d367036b644956026fb8a1feb0e9ed4bef3295d7a6905ec65162e7e2352893fbf2dad1b7c59ef18b60109f5098abc8bedc7c9d20f31d1e53cd7b
7
+ data.tar.gz: a3f72652649c77b1e3784ab6732c565c6f1e5eb78e499b06860401a0322ab157e161ad60a03f1900e35189c3cfd229b6ab4257e76e54c7bbaae9d37d5d6762f5
@@ -38,7 +38,7 @@ module Decidim
38
38
 
39
39
  def run_after_hooks
40
40
  @attached_to = resource
41
- document_cleanup!(include_all_attachments: true)
41
+ attachment_cleanup!(include_all_attachments: true)
42
42
  create_attachments(first_weight: 1) if process_attachments?
43
43
  end
44
44
  end
@@ -12,6 +12,7 @@ module Decidim
12
12
  include Decidim::FormFactory
13
13
 
14
14
  helper_method :posts, :post, :post_presenter, :paginate_posts, :posts_most_commented, :tabs, :panels
15
+ before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
15
16
 
16
17
  def index; end
17
18
 
@@ -14,7 +14,7 @@ module Decidim
14
14
 
15
15
  attribute :decidim_author_id, Integer
16
16
 
17
- attachments_attribute :documents
17
+ attachments_attribute :attachments
18
18
 
19
19
  validates :body, translatable_presence: true
20
20
  validates :title, translatable_presence: true
@@ -28,7 +28,7 @@ module Decidim
28
28
 
29
29
  self.title = presenter.title
30
30
  self.body = presenter.body
31
- self.documents = model.attachments
31
+ self.attachments = model.attachments
32
32
  end
33
33
 
34
34
  def author
@@ -70,7 +70,7 @@
70
70
 
71
71
  <li class="dropdown__item">
72
72
  <div class="dropdown__button-disabled">
73
- <%= with_tooltip t("tooltips.deleted_posts_info", scope: "decidim.admin") do %>
73
+ <%= with_tooltip t("tooltips.deleted_posts_info", scope: "decidim.admin"), class: :left do %>
74
74
  <%= icon "delete-bin-line", class: "text-gray" %>
75
75
  <span>
76
76
  <%= t("actions.soft_delete", scope: "decidim.admin") %>
@@ -12,7 +12,7 @@
12
12
 
13
13
  <% if component_settings.attachments_allowed? %>
14
14
  <div>
15
- <%= form.attachment :documents,
15
+ <%= form.attachment :attachments,
16
16
  multiple: true,
17
17
  label: t("decidim.blogs.posts.edit.add_attachments"),
18
18
  button_label: t("decidim.blogs.posts.edit.add_attachments"),
@@ -1,7 +1,7 @@
1
1
 
2
2
  <% if allowed_to?(:update, :blogpost, blogpost: post) %>
3
- <li role="menuitem" class="dropdown__item">
4
- <%= link_to edit_post_path(post), class: "dropdown__button" do %>
3
+ <li role="presentation" class="dropdown__item">
4
+ <%= link_to edit_post_path(post), class: "dropdown__button", role: "menuitem" do %>
5
5
  <span><%= t("button_edit", scope: "decidim.blogs.posts.menu_actions") %></span>
6
6
  <%= icon "pencil-line" %>
7
7
  <% end %>
@@ -9,10 +9,11 @@
9
9
  <% end %>
10
10
 
11
11
  <% if allowed_to?(:destroy, :blogpost, blogpost: post) %>
12
- <li role="menuitem" class="dropdown__item">
12
+ <li role="presentation" class="dropdown__item">
13
13
  <%= link_to post_path(post),
14
14
  method: :delete,
15
15
  class: "dropdown__button",
16
+ role: "menuitem",
16
17
  data: { confirm: t("button_destroy_confirm", scope: "decidim.blogs.posts.menu_actions") } do %>
17
18
  <span><%= t("button_destroy", scope: "decidim.blogs.posts.menu_actions") %></span>
18
19
  <%= icon "delete-bin-line" %>
@@ -67,7 +67,6 @@ ar:
67
67
  global:
68
68
  announcement: إعلان
69
69
  comments_enabled: تم تمكين التعليقات
70
- comments_max_length: الحد الأقصى لطول التعليقات (اترك 0 للقيمة الافتراضية)
71
70
  step:
72
71
  announcement: إعلان
73
72
  comments_blocked: تم حظر التعليقات
@@ -76,7 +76,6 @@ bg:
76
76
  global:
77
77
  announcement: Обявление
78
78
  comments_enabled: Коментарите са разрешени
79
- comments_max_length: Максимална дължина на коментарите (Оставете 0 за стойност по подразбиране)
80
79
  step:
81
80
  announcement: Обявление
82
81
  comments_blocked: Коментарите са блокирани
@@ -114,7 +114,7 @@ ca-IT:
114
114
  announcement: Avís
115
115
  attachments_allowed: Permetre fitxers adjunts
116
116
  comments_enabled: Comentaris habilitats
117
- comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
117
+ comments_max_length: Caràcters màxims per comentari (deixar a 0 el valor predeterminat)
118
118
  creation_enabled_for_participants: Les participants poden crear noves entrades en el blog
119
119
  define_taxonomy_filters: Si us plau, defineix alguns filtres per aquest espai de participació abans de fer servir aquesta configuració.
120
120
  no_taxonomy_filters_found: No s'han trobat filtres de taxonomia.
@@ -114,7 +114,7 @@ ca:
114
114
  announcement: Avís
115
115
  attachments_allowed: Permetre fitxers adjunts
116
116
  comments_enabled: Comentaris habilitats
117
- comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
117
+ comments_max_length: Caràcters màxims per comentari (deixar a 0 el valor predeterminat)
118
118
  creation_enabled_for_participants: Les participants poden crear noves entrades en el blog
119
119
  define_taxonomy_filters: Si us plau, defineix alguns filtres per aquest espai de participació abans de fer servir aquesta configuració.
120
120
  no_taxonomy_filters_found: No s'han trobat filtres de taxonomia.
@@ -118,7 +118,6 @@ cs:
118
118
  announcement: Oznámení
119
119
  attachments_allowed: Povolit přílohy
120
120
  comments_enabled: Komentáře povoleny
121
- comments_max_length: Maximální délka komentáře (ponechte 0 pro výchozí hodnotu)
122
121
  creation_enabled_for_participants: Účastníci mohou vytvářet příspěvky
123
122
  define_taxonomy_filters: Před použitím tohoto nastavení prosím definujte některé filtry pro tento participační prostor.
124
123
  no_taxonomy_filters_found: Nebyly nalezeny žádné filtry taxonomie.
@@ -114,7 +114,6 @@ de:
114
114
  announcement: Ankündigung
115
115
  attachments_allowed: Anhänge zulassen
116
116
  comments_enabled: Kommentare aktiviert
117
- comments_max_length: Maximale Länge der Kommentare (0 für Standardwert)
118
117
  creation_enabled_for_participants: Teilnehmende können Beiträge erstellen
119
118
  define_taxonomy_filters: Bitte definieren Sie einige Filter für diesen partizipativen Bereich, bevor Sie diese Einstellung verwenden.
120
119
  no_taxonomy_filters_found: Keine Klassifizierungsfilter gefunden.
@@ -65,7 +65,6 @@ el:
65
65
  global:
66
66
  announcement: Ανακοίνωση
67
67
  comments_enabled: Τα σχόλια ενεργοποιήθηκαν
68
- comments_max_length: Μέγιστο μέγεθος σχολίων (Αφήστε το 0 για το προκαθορισμένο μέγεθος)
69
68
  step:
70
69
  announcement: Ανακοίνωση
71
70
  comments_blocked: Τα σχόλια αποκλείστηκαν
@@ -114,7 +114,7 @@ en:
114
114
  announcement: Announcement
115
115
  attachments_allowed: Allow attachments
116
116
  comments_enabled: Comments enabled
117
- comments_max_length: Comments max length (Leave 0 for default value)
117
+ comments_max_length: Max characters per comment (Leave 0 for default value)
118
118
  creation_enabled_for_participants: Participants can create posts
119
119
  define_taxonomy_filters: Please define some filters for this participatory space before using this setting.
120
120
  no_taxonomy_filters_found: No taxonomy filters found.
@@ -114,7 +114,7 @@ es-MX:
114
114
  announcement: Anuncio
115
115
  attachments_allowed: Permitir archivos adjuntos
116
116
  comments_enabled: Comentarios habilitados
117
- comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
117
+ comments_max_length: Caracteres máximos por comentario (dejar 0 para el valor predeterminado)
118
118
  creation_enabled_for_participants: Las participantes pueden crear nuevas entradas en el blog
119
119
  define_taxonomy_filters: Por favor, define algunos filtros para este espacio de participación antes de utilizar esta configuración.
120
120
  no_taxonomy_filters_found: No se han encontrado filtros de taxonomía.
@@ -114,7 +114,7 @@ es-PY:
114
114
  announcement: Anuncio
115
115
  attachments_allowed: Permitir archivos adjuntos
116
116
  comments_enabled: Comentarios habilitados
117
- comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
117
+ comments_max_length: Caracteres máximos por comentario (dejar 0 para el valor predeterminado)
118
118
  creation_enabled_for_participants: Las participantes pueden crear nuevas entradas en el blog
119
119
  define_taxonomy_filters: Por favor, define algunos filtros para este espacio de participación antes de utilizar esta configuración.
120
120
  no_taxonomy_filters_found: No se han encontrado filtros de taxonomía.
@@ -114,7 +114,7 @@ es:
114
114
  announcement: Aviso
115
115
  attachments_allowed: Permitir archivos adjuntos
116
116
  comments_enabled: Comentarios habilitados
117
- comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
117
+ comments_max_length: Caracteres máximos por comentario (dejar 0 para el valor predeterminado)
118
118
  creation_enabled_for_participants: Las participantes pueden crear nuevas entradas en el blog
119
119
  define_taxonomy_filters: Por favor, define algunos filtros para este espacio de participación antes de utilizar esta configuración.
120
120
  no_taxonomy_filters_found: No se han encontrado filtros de taxonomía.
@@ -88,7 +88,7 @@ eu:
88
88
  title: Izenburua
89
89
  index:
90
90
  count:
91
- one: "%{count} argitalpen"
91
+ one: "Argitalpen bat"
92
92
  other: "%{count} argitalpen"
93
93
  empty: Oraindik ez dago argitalpenik.
94
94
  new_post: Beste sarrera bat
@@ -114,7 +114,7 @@ eu:
114
114
  announcement: Iragarpena
115
115
  attachments_allowed: Baimendu eranskinak
116
116
  comments_enabled: Iruzkinak gaituta
117
- comments_max_length: Iruzkinen gehieneko luzera (utzi 0 lehenetsitako konfigurazioari eutsi nahi badiozu)
117
+ comments_max_length: Iruzkin bakoitzeko gehieneko karaktereak (utzi 0 aurrez zehaztutako baliorako)
118
118
  creation_enabled_for_participants: Parte-hartzaileek sarrerak sor ditzakete
119
119
  define_taxonomy_filters: Mesedez, zehaztu iragazki batzuk partaidetza-espazio honetarako eszenatoki hau erabili aurretik.
120
120
  no_taxonomy_filters_found: Ez da taxonomia-iragazkirik aurkitu.
@@ -106,6 +106,7 @@ fr-CA:
106
106
  comment: Commenter
107
107
  create: Créer
108
108
  destroy: Supprimer
109
+ like: Soutenir
109
110
  update: Mettre à jour
110
111
  name: Actualités
111
112
  settings:
@@ -113,7 +114,7 @@ fr-CA:
113
114
  announcement: Annonce
114
115
  attachments_allowed: Autoriser les pièces jointes
115
116
  comments_enabled: Activer le module de commentaire
116
- comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
117
+ comments_max_length: Nombre maximum de caractères par commentaire (Laisser 0 pour la valeur par défaut)
117
118
  creation_enabled_for_participants: Les participants peuvent créer des articles
118
119
  define_taxonomy_filters: Veuillez définir des filtres pour cet espace participatif avant d'utiliser ce paramètre.
119
120
  no_taxonomy_filters_found: Aucun filtre de taxonomie trouvé.
@@ -122,6 +123,8 @@ fr-CA:
122
123
  step:
123
124
  announcement: Annonce
124
125
  comments_blocked: Commentaires désactivés
126
+ likes_blocked: Soutiens bloqués
127
+ likes_enabled: Soutiens activés
125
128
  events:
126
129
  blogs:
127
130
  post_created:
@@ -136,14 +139,22 @@ fr-CA:
136
139
  author: Le nom du participant qui a fait ce commentaire
137
140
  body: Le commentaire lui-même
138
141
  commentable_id: L'identifiant unique du commentaire
142
+ commentable_type: Le type de l'élément commenté (s'il s'agit d'un résultat, d'une proposition, etc.)
139
143
  created_at: La date de création de ce commentaire
144
+ depth: L'endroit où ce commentaire se trouve dans l'arborescence des commentaires (si c'est une réponse ou une réponse à une réponse)
140
145
  id: L'id de ce commentaire
146
+ locale: La langue que le participant a utilisé en créant ce commentaire
147
+ root_commentable_url: L'URL de la ressource liée à ce commentaire
141
148
  posts:
149
+ author: Les informations de l'auteur
142
150
  body: Le corps de l'article
143
151
  comments_count: Le nombre de commentaires sur cet article
144
152
  component: Le composant auquel appartient l'article
145
153
  created_at: La date de création de cet article
154
+ follows_count: Le nombre de personnes qui suivent cet article
146
155
  id: L'identifiant unique de cet article
156
+ likes_count: Le nombre de soutiens à cet article
157
+ participatory_space: 'À quel espace (ex : Concertation ou Assemblée) appartient cet article'
147
158
  published_at: La date à laquelle cet article a été publié
148
159
  title: Le titre de l'article
149
160
  updated_at: La dernière date de mise à jour de cet article
@@ -106,6 +106,7 @@ fr:
106
106
  comment: Commenter
107
107
  create: Créer
108
108
  destroy: Supprimer
109
+ like: Soutenir
109
110
  update: Mettre à jour
110
111
  name: Actualités
111
112
  settings:
@@ -113,7 +114,7 @@ fr:
113
114
  announcement: Annonce
114
115
  attachments_allowed: Autoriser les pièces jointes
115
116
  comments_enabled: Activer le module de commentaire
116
- comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
117
+ comments_max_length: Nombre maximum de caractères par commentaire (Laisser 0 pour la valeur par défaut)
117
118
  creation_enabled_for_participants: Les participants peuvent créer des articles
118
119
  define_taxonomy_filters: Veuillez définir des filtres pour cet espace participatif avant d'utiliser ce paramètre.
119
120
  no_taxonomy_filters_found: Aucun filtre de taxonomie trouvé.
@@ -122,6 +123,8 @@ fr:
122
123
  step:
123
124
  announcement: Annonce
124
125
  comments_blocked: Commentaires désactivés
126
+ likes_blocked: Soutiens bloqués
127
+ likes_enabled: Soutiens activés
125
128
  events:
126
129
  blogs:
127
130
  post_created:
@@ -136,14 +139,22 @@ fr:
136
139
  author: Le nom du participant qui a fait ce commentaire
137
140
  body: Le commentaire lui-même
138
141
  commentable_id: L'identifiant unique du commentaire
142
+ commentable_type: Le type de l'élément commenté (s'il s'agit d'un résultat, d'une proposition, etc.)
139
143
  created_at: La date de création de ce commentaire
144
+ depth: L'endroit où ce commentaire se trouve dans l'arborescence des commentaires (si c'est une réponse ou une réponse à une réponse)
140
145
  id: L'id de ce commentaire
146
+ locale: La langue que le participant a utilisé en créant ce commentaire
147
+ root_commentable_url: L'URL de la ressource liée à ce commentaire
141
148
  posts:
149
+ author: Les informations de l'auteur
142
150
  body: Le corps de l'article
143
151
  comments_count: Le nombre de commentaires sur cet article
144
152
  component: Le composant auquel appartient l'article
145
153
  created_at: La date de création de cet article
154
+ follows_count: Le nombre de personnes qui suivent cet article
146
155
  id: L'identifiant unique de cet article
156
+ likes_count: Le nombre de soutiens à cet article
157
+ participatory_space: 'À quel espace (ex : Concertation ou Assemblée) appartient cet article'
147
158
  published_at: La date à laquelle cet article a été publié
148
159
  title: Le titre de l'article
149
160
  updated_at: La dernière date de mise à jour de cet article
@@ -43,7 +43,6 @@ gl:
43
43
  global:
44
44
  announcement: Anuncio
45
45
  comments_enabled: Comentarios habilitados
46
- comments_max_length: Lonxitude máxima dos comentarios (0 para valor predefinido)
47
46
  step:
48
47
  announcement: Anuncio
49
48
  comments_blocked: Comentarios bloqueados
@@ -73,7 +73,6 @@ hu:
73
73
  global:
74
74
  announcement: Közlemény
75
75
  comments_enabled: Megjegyzések engedélyezve
76
- comments_max_length: Kommentek maximális hossza (Hagyjon 0 -t az alapértékhez)
77
76
  step:
78
77
  announcement: Közlemény
79
78
  comments_blocked: Megjegyzések letiltva
@@ -41,7 +41,6 @@ it:
41
41
  global:
42
42
  announcement: Annuncio
43
43
  comments_enabled: Commenti abilitati
44
- comments_max_length: Lunghezza massima dei commenti (Lasciare 0 per il valore predefinito)
45
44
  step:
46
45
  announcement: Annuncio
47
46
  comments_blocked: Commenti bloccati
@@ -112,7 +112,7 @@ ja:
112
112
  announcement: お知らせ
113
113
  attachments_allowed: 添付ファイルを許可
114
114
  comments_enabled: コメントを有効にする
115
- comments_max_length: コメント最大長 (デフォルト値は 0 のまま)
115
+ comments_max_length: 各コメントの最大文字数 (0はデフォルト値のまま)
116
116
  creation_enabled_for_participants: 参加者は投稿を作成できます
117
117
  define_taxonomy_filters: この設定を使用する前に、参加型スペースのフィルターをいくつか定義してください。
118
118
  no_taxonomy_filters_found: タクソノミーフィルタが見つかりません。
@@ -38,7 +38,6 @@ ko:
38
38
  global:
39
39
  announcement: 공지 사항
40
40
  comments_enabled: 댓글 활성화됨
41
- comments_max_length: 댓글 최대 길이(기본값은 0으로 남김)
42
41
  step:
43
42
  announcement: 공지 사항
44
43
  comments_blocked: 댓글 차단됨
@@ -41,7 +41,6 @@ lb:
41
41
  global:
42
42
  announcement: Ankündigung
43
43
  comments_enabled: Kommentare aktiviert
44
- comments_max_length: Maximale Länge der Kommentare (0 für Standardwert)
45
44
  step:
46
45
  announcement: Ankündigung
47
46
  comments_blocked: Kommentare blockiert
@@ -72,7 +72,6 @@ lt:
72
72
  global:
73
73
  announcement: Pranešimas
74
74
  comments_enabled: Komentarai įjungti
75
- comments_max_length: Maksimalus komentaro ilgis (įrašyti 0 įprastam ilgiui)
76
75
  step:
77
76
  announcement: Pranešimas
78
77
  comments_blocked: Komentarai užblokuoti
@@ -49,7 +49,6 @@ nl:
49
49
  global:
50
50
  announcement: Aankondiging
51
51
  comments_enabled: Reacties ingeschakeld
52
- comments_max_length: Commentaar maximale lengte (laat 0 voor standaard waarde)
53
52
  step:
54
53
  announcement: Aankondiging
55
54
  comments_blocked: Reacties geblokkeerd
@@ -43,7 +43,6 @@
43
43
  global:
44
44
  announcement: Kunngjøring
45
45
  comments_enabled: Kommentarer aktivert
46
- comments_max_length: Maks lengde på kommentarer (Sett 0 for standardverdi)
47
46
  step:
48
47
  announcement: Kunngjøring
49
48
  comments_blocked: Kommentarer blokkert
@@ -75,7 +75,6 @@ pl:
75
75
  global:
76
76
  announcement: Ogłoszenie
77
77
  comments_enabled: Komentarze włączone
78
- comments_max_length: Maksymalna długość komentarzy (Pozostaw 0 dla wartości domyślnej)
79
78
  step:
80
79
  announcement: Ogłoszenie
81
80
  comments_blocked: Komentarze zablokowane
@@ -114,7 +114,6 @@ pt-BR:
114
114
  announcement: Anúncio
115
115
  attachments_allowed: Permitir anexos
116
116
  comments_enabled: Comentários ativados
117
- comments_max_length: Tamanho máximo de comentários (deixe 0 para o valor padrão)
118
117
  creation_enabled_for_participants: Os usuários podem criar postagens
119
118
  define_taxonomy_filters: Por favor, defina alguns filtros para este espaço participativo antes de usar esta configuração.
120
119
  no_taxonomy_filters_found: Nenhum filtro de taxonomia encontrado.
@@ -106,7 +106,6 @@ pt:
106
106
  global:
107
107
  announcement: Anúncio
108
108
  comments_enabled: Comentários ativados
109
- comments_max_length: Comprimento máximo dos comentários (Deixar 0 para o valor predefinido)
110
109
  creation_enabled_for_participants: Os participantes podem criar publicações
111
110
  step:
112
111
  announcement: Anúncio
@@ -116,7 +116,6 @@ ro:
116
116
  announcement: Anunț
117
117
  attachments_allowed: Permiteți atașamente
118
118
  comments_enabled: Comentarii activate
119
- comments_max_length: Lungimea maximă a comentariilor (lăsați 0 pentru valoarea implicită)
120
119
  creation_enabled_for_participants: Participanții pot crea postări
121
120
  define_taxonomy_filters: Vă rugăm să definiți niște filtre pentru acest spațiu participativ înainte de a utiliza această setare.
122
121
  no_taxonomy_filters_found: Nici un filtru de taxonomie găsit.
@@ -71,7 +71,6 @@ ru:
71
71
  global:
72
72
  announcement: Объявление
73
73
  comments_enabled: Комментарии включены
74
- comments_max_length: Максимальная длина комментариев (оставьте 0 для значения по умолчанию)
75
74
  step:
76
75
  announcement: Объявление
77
76
  comments_blocked: Комментарии отключены
@@ -118,7 +118,6 @@ sk:
118
118
  announcement: Oznámenie
119
119
  attachments_allowed: Povoliť prílohy
120
120
  comments_enabled: Komentáre povolené
121
- comments_max_length: Maximálna dĺžka komentárov (Ponechajte 0 pre predvolenú hodnotu)
122
121
  creation_enabled_for_participants: Účastníci môžu vytvárať príspevky
123
122
  define_taxonomy_filters: Pred použitím tohto nastavenia definujte nejaké filtre pre tento participatívny priestor.
124
123
  no_taxonomy_filters_found: Nenašli sa žiadne filtre taxonómie.
@@ -76,7 +76,6 @@ sq:
76
76
  global:
77
77
  announcement: Njoftim
78
78
  comments_enabled: Komentet janë aktivizuar
79
- comments_max_length: Gjatësia maksimale e komenteve (Lëre 0 për vlerën e paracaktuar)
80
79
  step:
81
80
  announcement: Njoftim
82
81
  comments_blocked: Komentet të bllokuara
@@ -114,7 +114,6 @@ sv:
114
114
  announcement: Meddelande
115
115
  attachments_allowed: Tillåt bilagor
116
116
  comments_enabled: Aktivera kommentarer
117
- comments_max_length: Maximal kommentarslängd (ange 0 för att använda standardvärdet)
118
117
  creation_enabled_for_participants: Deltagarna kan skapa inlägg
119
118
  define_taxonomy_filters: Ställ in filter innan du använder den här inställningen.
120
119
  no_taxonomy_filters_found: Inga filter för kategorier hittades.
@@ -6,7 +6,7 @@ tr:
6
6
  body: Vücut
7
7
  decidim_author_id: Yazar
8
8
  published_at: Yayın zamanı
9
- title: Başlik / Unvani
9
+ title: Başlik / Unvani
10
10
  models:
11
11
  decidim/blogs/create_post_event: Yeni blog yazısı
12
12
  activerecord:
@@ -44,7 +44,6 @@ tr:
44
44
  global:
45
45
  announcement: duyuru
46
46
  comments_enabled: Yorumlar etkin
47
- comments_max_length: Maksimum yorum uzunluğu (Varsayılan değer için 0 bırakın)
48
47
  step:
49
48
  announcement: duyuru
50
49
  comments_blocked: Yorumlar engellendi
@@ -36,7 +36,6 @@ zh-CN:
36
36
  global:
37
37
  announcement: 通 知
38
38
  comments_enabled: 评论已启用
39
- comments_max_length: 评论最大长度 (默认值留0)
40
39
  step:
41
40
  announcement: 通 知
42
41
  comments_blocked: 评论已阻止
@@ -64,7 +64,6 @@ zh-TW:
64
64
  global:
65
65
  announcement: 公告
66
66
  comments_enabled: 啟用評論功能
67
- comments_max_length: 評論字數最大長度(若要使用預設值請輸入0)
68
67
  step:
69
68
  announcement: 公告
70
69
  comments_blocked: 留言已封鎖
@@ -38,7 +38,7 @@ Decidim.register_component(:blogs) do |component|
38
38
  icon_name: "chat-1-line",
39
39
  tooltip_key: "comments_count",
40
40
  tag: :comments do |components, _start_at, _end_at|
41
- Decidim::Blogs::Post.where(component: components).count
41
+ Decidim::Blogs::Post.where(component: components).sum(:comments_count)
42
42
  end
43
43
 
44
44
  component.actions = %w(create update destroy)
@@ -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.31.5"
7
+ "0.31.6"
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.31.5
4
+ version: 0.31.6
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: 2026-05-12 00:00:00.000000000 Z
11
+ date: 2026-07-06 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.31.5
19
+ version: 0.31.6
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.31.5
26
+ version: 0.31.6
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.31.5
33
+ version: 0.31.6
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.31.5
40
+ version: 0.31.6
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.31.5
47
+ version: 0.31.6
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.31.5
54
+ version: 0.31.6
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.31.5
61
+ version: 0.31.6
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.31.5
68
+ version: 0.31.6
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.31.5
75
+ version: 0.31.6
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.31.5
82
+ version: 0.31.6
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.31.5
89
+ version: 0.31.6
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.31.5
96
+ version: 0.31.6
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.31.5
103
+ version: 0.31.6
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.31.5
110
+ version: 0.31.6
111
111
  description: A Blog component for decidim's participatory spaces.
112
112
  email:
113
113
  - isaac.mg@coditramuntana.com