decidim-blogs 0.28.0 → 0.28.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/packs/stylesheets/blogs.scss +1 -1
- data/app/views/decidim/blogs/admin/posts/edit.html.erb +2 -2
- data/app/views/decidim/blogs/admin/posts/index.html.erb +2 -2
- data/app/views/decidim/blogs/admin/posts/new.html.erb +2 -2
- data/config/locales/bg.yml +84 -0
- data/config/locales/ca.yml +1 -1
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/ga-IE.yml +3 -0
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +6 -3
- data/config/locales/it.yml +3 -0
- data/config/locales/ko.yml +48 -0
- data/config/locales/lb.yml +3 -0
- data/config/locales/pl.yml +37 -0
- data/config/locales/pt-BR.yml +4 -0
- data/config/locales/pt.yml +3 -0
- data/config/locales/sq-AL.yml +97 -0
- data/decidim-blogs.gemspec +43 -0
- data/lib/decidim/blogs/test/factories.rb +19 -8
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +21 -20
- data/config/environment.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb0a151a5682b456354c2679f35e5dfefa04a542df5507817a39a445b707f68d
|
4
|
+
data.tar.gz: 4a4e886eb3e23c322fb8ba28f042c1aa3055687a312b2f58cbb1c432e5334d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba1d7ae738533274f8f043fbf2bfbedf075b28fcb36be1bcb7f2a073677b989e8712fd112ab21a429f2d49715334613a6545de2f1a83f507b9b509afd2a910e7
|
7
|
+
data.tar.gz: ad065512eb43f433446a5a5e83b5a1f3c1678123a786dcd7f18a67290f7ec924ca4552e52219aeb4a3c8fd495e353fc8976a00a1ce4c39e64964bc332720c5c7
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title") %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
<div class="item__edit item__edit-1col">
|
8
8
|
<div class="item__edit-form">
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="card">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t(".title") %>
|
6
6
|
<%= link_to t("actions.new", scope: "decidim.blogs"), new_post_path, class: "button button__sm button__secondary ml-auto" if allowed_to? :create, :blogpost %>
|
7
7
|
<%= render partial: "decidim/admin/components/resource_action" %>
|
8
|
-
</
|
8
|
+
</h1>
|
9
9
|
</div>
|
10
10
|
<div class="table-scroll">
|
11
11
|
<table class="table-list">
|
data/config/locales/bg.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
---
|
2
2
|
bg:
|
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:
|
@@ -11,4 +17,82 @@ bg:
|
|
11
17
|
decidim:
|
12
18
|
blogs:
|
13
19
|
actions:
|
20
|
+
author_id: Създаване на публикация като
|
14
21
|
confirm_destroy: Сигурни ли сте, че желаете да изтриете тази публикация?
|
22
|
+
destroy: Изтрий
|
23
|
+
edit: Редактирай
|
24
|
+
new: Нова публикация
|
25
|
+
title: Активности
|
26
|
+
admin:
|
27
|
+
posts:
|
28
|
+
create:
|
29
|
+
invalid: Възникна проблем при създаването на тази публикация.
|
30
|
+
success: Публикацията беше създадена успешно.
|
31
|
+
destroy:
|
32
|
+
success: Публикацията беше изтрита успешно.
|
33
|
+
edit:
|
34
|
+
save: Актуализация
|
35
|
+
title: Редактиране на поста
|
36
|
+
index:
|
37
|
+
not_published_yet: Не публикувано все още.
|
38
|
+
title: Публикации
|
39
|
+
new:
|
40
|
+
create: Създаване
|
41
|
+
title: Създай публикация
|
42
|
+
update:
|
43
|
+
invalid: Възникна проблем при запазването на публикацията.
|
44
|
+
success: Публикацията беше запазена успешно.
|
45
|
+
admin_log:
|
46
|
+
post:
|
47
|
+
create: "%{user_name} създаде публикацията в блога %{resource_name} в %{space_name}"
|
48
|
+
delete: "%{user_name} изтри публикацията в блога %{resource_name} от %{space_name}"
|
49
|
+
update: "%{user_name} актуализира публикацията в блога %{resource_name} в %{space_name}"
|
50
|
+
content_blocks:
|
51
|
+
highlighted_posts:
|
52
|
+
last_published: Последно публикувано
|
53
|
+
name: Публикации
|
54
|
+
see_all: Виж всички публикации
|
55
|
+
last_activity:
|
56
|
+
new_post: 'Нова публикация:'
|
57
|
+
models:
|
58
|
+
post:
|
59
|
+
fields:
|
60
|
+
author: Автор
|
61
|
+
body: Основен текст
|
62
|
+
official_blog_post: Официална публикация
|
63
|
+
published_at: Час на публикуване
|
64
|
+
title: Заглавие
|
65
|
+
posts:
|
66
|
+
index:
|
67
|
+
count:
|
68
|
+
one: "%{count} публикация"
|
69
|
+
other: "%{count} публикации"
|
70
|
+
empty: Все още няма постове.
|
71
|
+
components:
|
72
|
+
blogs:
|
73
|
+
actions:
|
74
|
+
comment: Коментар
|
75
|
+
create: Създаване
|
76
|
+
destroy: Изтрий
|
77
|
+
endorse: Подкрепете
|
78
|
+
update: Актуализация
|
79
|
+
name: Блог
|
80
|
+
settings:
|
81
|
+
global:
|
82
|
+
announcement: Обявление
|
83
|
+
comments_enabled: Коментарите са разрешени
|
84
|
+
comments_max_length: Максимална дължина на коментарите (Оставете 0 за стойност по подразбиране)
|
85
|
+
step:
|
86
|
+
announcement: Обявление
|
87
|
+
comments_blocked: Коментарите са блокирани
|
88
|
+
endorsements_blocked: Подкрепата е блокирана
|
89
|
+
endorsements_enabled: Подкрепата е активирана
|
90
|
+
events:
|
91
|
+
blogs:
|
92
|
+
post_created:
|
93
|
+
email_intro: Публикацията „%{resource_title}“ е публикувана в(ъв)%{participatory_space_title}“, което следвате.
|
94
|
+
email_outro: Получавате това известие, защото следвате "%{participatory_space_title}". Може да премахнете следването чрез предходния линк.
|
95
|
+
email_subject: Публикувана е нова публикация в(ъв) %{participatory_space_title}
|
96
|
+
notification_title: Публикацията <a href="%{resource_path}">%{resource_title}</a> е публикувана в(ъв) %{participatory_space_title}
|
97
|
+
statistics:
|
98
|
+
posts_count: Постове
|
data/config/locales/ca.yml
CHANGED
@@ -91,7 +91,7 @@ ca:
|
|
91
91
|
blogs:
|
92
92
|
post_created:
|
93
93
|
email_intro: La publicació "%{resource_title}" s'ha publicat al "%{participatory_space_title}", el qual segueixes.
|
94
|
-
email_outro: Has rebut aquesta notificació perquè estàs seguint "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
|
94
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
|
95
95
|
email_subject: Nova publicació publicada a %{participatory_space_title}
|
96
96
|
notification_title: La publicació <a href="%{resource_path}">%{resource_title}</a> ha estat publicada a %{participatory_space_title}
|
97
97
|
statistics:
|
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/ga-IE.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
he:
|
data/config/locales/hu.yml
CHANGED
@@ -62,13 +62,16 @@ hu:
|
|
62
62
|
official_blog_post: Hivatalos bejegyzés
|
63
63
|
published_at: Közzététel időpontja
|
64
64
|
title: Cím
|
65
|
+
posts:
|
66
|
+
index:
|
67
|
+
empty: Még nincsenek bejegyzések.
|
65
68
|
components:
|
66
69
|
blogs:
|
67
70
|
actions:
|
68
71
|
comment: Hozzászólás
|
69
72
|
create: Létrehozás
|
70
73
|
destroy: Törlés
|
71
|
-
endorse:
|
74
|
+
endorse: Jóváhagy
|
72
75
|
update: Frissítés
|
73
76
|
name: Blog
|
74
77
|
settings:
|
@@ -79,8 +82,8 @@ hu:
|
|
79
82
|
step:
|
80
83
|
announcement: Közlemény
|
81
84
|
comments_blocked: Megjegyzések letiltva
|
82
|
-
endorsements_blocked:
|
83
|
-
endorsements_enabled:
|
85
|
+
endorsements_blocked: Támogatások letiltva
|
86
|
+
endorsements_enabled: Támogatások engedélyezve
|
84
87
|
events:
|
85
88
|
blogs:
|
86
89
|
post_created:
|
data/config/locales/it.yml
CHANGED
data/config/locales/ko.yml
CHANGED
@@ -1 +1,49 @@
|
|
1
|
+
---
|
1
2
|
ko:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
decidim_author_id: 작성자
|
7
|
+
title: 제목
|
8
|
+
decidim:
|
9
|
+
blogs:
|
10
|
+
actions:
|
11
|
+
destroy: 삭제
|
12
|
+
edit: 수정
|
13
|
+
new: 새 게시물
|
14
|
+
title: 작업
|
15
|
+
admin:
|
16
|
+
posts:
|
17
|
+
create:
|
18
|
+
invalid: 게시물을 생성하는 도중 문제가 생겼습니다.
|
19
|
+
success: 게시물이 성공적으로 생성되었습니다.
|
20
|
+
destroy:
|
21
|
+
success: 게시물이 성공적으로 삭제되었습니다.
|
22
|
+
edit:
|
23
|
+
save: 업데이트
|
24
|
+
content_blocks:
|
25
|
+
highlighted_posts:
|
26
|
+
see_all: 게시물 모두 보기
|
27
|
+
last_activity:
|
28
|
+
new_post: '새 게시물:'
|
29
|
+
models:
|
30
|
+
post:
|
31
|
+
fields:
|
32
|
+
author: 작성자
|
33
|
+
official_blog_post: 공식 게시물
|
34
|
+
title: 제목
|
35
|
+
components:
|
36
|
+
blogs:
|
37
|
+
actions:
|
38
|
+
update: 업데이트
|
39
|
+
name: 블로그
|
40
|
+
settings:
|
41
|
+
global:
|
42
|
+
announcement: 공지 사항
|
43
|
+
comments_enabled: 댓글 활성화됨
|
44
|
+
comments_max_length: 댓글 최대 길이(기본값은 0으로 남김)
|
45
|
+
step:
|
46
|
+
announcement: 공지 사항
|
47
|
+
comments_blocked: 댓글 차단됨
|
48
|
+
statistics:
|
49
|
+
posts_count: 게시물
|
data/config/locales/lb.yml
CHANGED
data/config/locales/pl.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
---
|
2
2
|
pl:
|
3
3
|
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
body: Treść posta
|
7
|
+
decidim_author_id: Autor
|
8
|
+
published_at: Czas publikacji posta
|
9
|
+
title: Tytuł posta
|
4
10
|
models:
|
5
11
|
decidim/blogs/create_post_event: Nowy wpis na blogu
|
6
12
|
activerecord:
|
@@ -21,23 +27,54 @@ pl:
|
|
21
27
|
title: Działania
|
22
28
|
admin:
|
23
29
|
posts:
|
30
|
+
create:
|
31
|
+
invalid: Podczas tworzenia tego posta wystąpił błąd.
|
32
|
+
success: Post został utworzony.
|
33
|
+
destroy:
|
34
|
+
success: Post został usunięty.
|
24
35
|
edit:
|
25
36
|
save: Aktualizuj
|
26
37
|
title: Edytuj wpis
|
27
38
|
index:
|
39
|
+
not_published_yet: Jeszcze nie opublikowano.
|
28
40
|
title: Wpisy
|
29
41
|
new:
|
30
42
|
create: Utwórz
|
31
43
|
title: Utwórz wpis
|
32
44
|
update:
|
33
45
|
invalid: Podczas zapisywania wpisu wystąpiły błędy.
|
46
|
+
success: Zapisanie posta powiodło się.
|
47
|
+
admin_log:
|
48
|
+
post:
|
49
|
+
create: "%{user_name} utworzył/a %{resource_name} post na blogu w %{space_name}"
|
50
|
+
delete: "%{user_name} usunął/usunęła %{resource_name} post na blogu z %{space_name}"
|
51
|
+
update: "%{user_name} zaktualizował/a %{resource_name} post na blogu w %{space_name}"
|
52
|
+
content_blocks:
|
53
|
+
highlighted_posts:
|
54
|
+
last_published: Ostatnio opublikowane
|
55
|
+
name: Posty
|
56
|
+
see_all: Zobacz wszystkie posty
|
57
|
+
last_activity:
|
58
|
+
new_post: 'Nowy post:'
|
34
59
|
models:
|
35
60
|
post:
|
36
61
|
fields:
|
37
62
|
author: Autor
|
38
63
|
body: Treść
|
64
|
+
official_blog_post: Oficjalny post
|
65
|
+
published_at: Czas publikacji posta
|
66
|
+
title: Tytuł posta
|
67
|
+
posts:
|
68
|
+
index:
|
69
|
+
empty: Nie ma tu jeszcze żadnych wpisów.
|
39
70
|
components:
|
40
71
|
blogs:
|
72
|
+
actions:
|
73
|
+
comment: Skomentuj
|
74
|
+
create: Utwórz
|
75
|
+
destroy: Usuń
|
76
|
+
endorse: Rekomenduj
|
77
|
+
update: Aktualizuj
|
41
78
|
name: Blog
|
42
79
|
settings:
|
43
80
|
global:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -64,6 +64,9 @@ pt-BR:
|
|
64
64
|
title: Título
|
65
65
|
posts:
|
66
66
|
index:
|
67
|
+
count:
|
68
|
+
one: "%{count} publicação"
|
69
|
+
other: "%{count} publicações"
|
67
70
|
empty: Não existem publicações ainda.
|
68
71
|
components:
|
69
72
|
blogs:
|
@@ -72,6 +75,7 @@ pt-BR:
|
|
72
75
|
create: Criar
|
73
76
|
destroy: Excluir
|
74
77
|
endorse: Endossar
|
78
|
+
update: Atualizar
|
75
79
|
name: Blog
|
76
80
|
settings:
|
77
81
|
global:
|
data/config/locales/pt.yml
CHANGED
data/config/locales/sq-AL.yml
CHANGED
@@ -1 +1,98 @@
|
|
1
|
+
---
|
1
2
|
sq:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
body: Përmbajtja
|
7
|
+
decidim_author_id: Autor
|
8
|
+
published_at: Koha e publikimit
|
9
|
+
title: Titulli
|
10
|
+
models:
|
11
|
+
decidim/blogs/create_post_event: Postim i ri
|
12
|
+
activerecord:
|
13
|
+
models:
|
14
|
+
decidim/blogs/post:
|
15
|
+
one: Postim
|
16
|
+
other: Postimet
|
17
|
+
decidim:
|
18
|
+
blogs:
|
19
|
+
actions:
|
20
|
+
author_id: Krijo postimin si
|
21
|
+
confirm_destroy: Je i sigurt që dëshiron ta fshish këtë postim?
|
22
|
+
destroy: Fshij
|
23
|
+
edit: Përpuno
|
24
|
+
new: Postim i ri
|
25
|
+
title: Veprime
|
26
|
+
admin:
|
27
|
+
posts:
|
28
|
+
create:
|
29
|
+
invalid: Ndodhi një gabim gjatë krijimit të këtij postimi.
|
30
|
+
success: Postimi u krijua me sukses.
|
31
|
+
destroy:
|
32
|
+
success: Postimi u fshi me sukses.
|
33
|
+
edit:
|
34
|
+
save: Përditëso
|
35
|
+
title: Përpuno postimin
|
36
|
+
index:
|
37
|
+
not_published_yet: Nuk është publikuar ende.
|
38
|
+
title: Postimet
|
39
|
+
new:
|
40
|
+
create: Krijo
|
41
|
+
title: Krijo postimin
|
42
|
+
update:
|
43
|
+
invalid: Ndodhi një problem gjatë krijimit të këtij postimi.
|
44
|
+
success: Postimi u ruajt me sukses.
|
45
|
+
admin_log:
|
46
|
+
post:
|
47
|
+
create: "%{user_name} krijoi postimin %{resource_name} në %{space_name}"
|
48
|
+
delete: "%{user_name} fshiu postimin %{resource_name} nga %{space_name}"
|
49
|
+
update: "%{user_name} përditësoi postimin %{resource_name} në %{space_name}"
|
50
|
+
content_blocks:
|
51
|
+
highlighted_posts:
|
52
|
+
last_published: Publikuar së fundi
|
53
|
+
name: Postimet
|
54
|
+
see_all: Shiko të gjitha postimet
|
55
|
+
last_activity:
|
56
|
+
new_post: 'Postim i ri:'
|
57
|
+
models:
|
58
|
+
post:
|
59
|
+
fields:
|
60
|
+
author: Autor
|
61
|
+
body: Përmbajtja
|
62
|
+
official_blog_post: Postimi zyrtar
|
63
|
+
published_at: Koha e publikimit
|
64
|
+
title: Titulli
|
65
|
+
posts:
|
66
|
+
index:
|
67
|
+
count:
|
68
|
+
one: "%{count} postim"
|
69
|
+
other: "%{count} postime"
|
70
|
+
empty: Nuk ka ende postime.
|
71
|
+
components:
|
72
|
+
blogs:
|
73
|
+
actions:
|
74
|
+
comment: Koment
|
75
|
+
create: Krijo
|
76
|
+
destroy: Fshij
|
77
|
+
endorse: Mirato
|
78
|
+
update: Përditëso
|
79
|
+
name: Blog
|
80
|
+
settings:
|
81
|
+
global:
|
82
|
+
announcement: Njoftim
|
83
|
+
comments_enabled: Komentet janë aktivizuar
|
84
|
+
comments_max_length: Gjatësia maksimale e komenteve (Lëre 0 për vlerën e paracaktuar)
|
85
|
+
step:
|
86
|
+
announcement: Njoftim
|
87
|
+
comments_blocked: Komentet të bllokuara
|
88
|
+
endorsements_blocked: Mbështetjet të bllokuara
|
89
|
+
endorsements_enabled: Mbështetjet të aktivizuara
|
90
|
+
events:
|
91
|
+
blogs:
|
92
|
+
post_created:
|
93
|
+
email_intro: Postimi "%{resource_title}" është publikuar në "%{participatory_space_title}" që ju po ndiqni.
|
94
|
+
email_outro: Ju e keni marrë këtë njoftim sepse po ndiqni %{participatory_space_title}. Mund t'i ndaloni njoftimet me anë të linkut të mëparshëm.
|
95
|
+
email_subject: Postimi i ri i publikuar në %{participatory_space_title}
|
96
|
+
notification_title: Postimi <a href="%{resource_path}">%{resource_title}</a> është publikuar në %{participatory_space_title}
|
97
|
+
statistics:
|
98
|
+
posts_count: Postimet
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/blogs/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Blogs.version
|
11
|
+
s.authors = ["Isaac Massot Gil"]
|
12
|
+
s.email = ["isaac.mg@coditramuntana.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://decidim.org"
|
15
|
+
s.metadata = {
|
16
|
+
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
17
|
+
"documentation_uri" => "https://docs.decidim.org/",
|
18
|
+
"funding_uri" => "https://opencollective.com/decidim",
|
19
|
+
"homepage_uri" => "https://decidim.org",
|
20
|
+
"source_code_uri" => "https://github.com/decidim/decidim"
|
21
|
+
}
|
22
|
+
s.required_ruby_version = "~> 3.1.0"
|
23
|
+
|
24
|
+
s.name = "decidim-blogs"
|
25
|
+
s.summary = "Decidim blogs module"
|
26
|
+
s.description = "A Blog component for decidim's participatory spaces."
|
27
|
+
|
28
|
+
s.files = Dir.chdir(__dir__) do
|
29
|
+
`git ls-files -z`.split("\x0").select do |f|
|
30
|
+
(File.expand_path(f) == __FILE__) ||
|
31
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
s.add_dependency "decidim-admin", Decidim::Blogs.version
|
36
|
+
s.add_dependency "decidim-comments", Decidim::Blogs.version
|
37
|
+
s.add_dependency "decidim-core", Decidim::Blogs.version
|
38
|
+
|
39
|
+
s.add_development_dependency "decidim-admin", Decidim::Blogs.version
|
40
|
+
s.add_development_dependency "decidim-assemblies", Decidim::Blogs.version
|
41
|
+
s.add_development_dependency "decidim-dev", Decidim::Blogs.version
|
42
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Blogs.version
|
43
|
+
end
|
@@ -7,21 +7,32 @@ require "decidim/participatory_processes/test/factories"
|
|
7
7
|
|
8
8
|
FactoryBot.define do
|
9
9
|
factory :post_component, parent: :component do
|
10
|
-
|
10
|
+
transient do
|
11
|
+
skip_injection { false }
|
12
|
+
end
|
13
|
+
|
14
|
+
name { generate_component_name(participatory_space.organization.available_locales, :blogs, skip_injection:) }
|
11
15
|
manifest_name { :blogs }
|
12
|
-
participatory_space { create(:participatory_process, :with_steps, organization:) }
|
16
|
+
participatory_space { create(:participatory_process, :with_steps, skip_injection:, organization:) }
|
13
17
|
end
|
14
18
|
|
15
19
|
factory :post, class: "Decidim::Blogs::Post" do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
+
transient do
|
21
|
+
skip_injection { false }
|
22
|
+
end
|
23
|
+
|
24
|
+
title { generate_localized_title(:blog_title, skip_injection:) }
|
25
|
+
body { generate_localized_description(:blog_body, skip_injection:) }
|
26
|
+
component { build(:post_component, skip_injection:) }
|
27
|
+
author { build(:user, :confirmed, skip_injection:, organization: component.organization) }
|
20
28
|
|
21
29
|
trait :with_endorsements do
|
22
|
-
after :create do |post|
|
30
|
+
after :create do |post, evaluator|
|
23
31
|
5.times.collect do
|
24
|
-
create(:endorsement,
|
32
|
+
create(:endorsement,
|
33
|
+
resource: post,
|
34
|
+
skip_injection: evaluator.skip_injection,
|
35
|
+
author: build(:user, skip_injection: evaluator.skip_injection, organization: post.participatory_space.organization))
|
25
36
|
end
|
26
37
|
end
|
27
38
|
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.28.
|
4
|
+
version: 0.28.2
|
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:
|
11
|
+
date: 2024-07-16 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.28.
|
19
|
+
version: 0.28.2
|
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.28.
|
26
|
+
version: 0.28.2
|
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.28.
|
33
|
+
version: 0.28.2
|
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.28.
|
40
|
+
version: 0.28.2
|
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.28.
|
47
|
+
version: 0.28.2
|
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.28.
|
54
|
+
version: 0.28.2
|
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.28.
|
61
|
+
version: 0.28.2
|
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.28.
|
68
|
+
version: 0.28.2
|
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.28.
|
75
|
+
version: 0.28.2
|
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.28.
|
82
|
+
version: 0.28.2
|
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.28.
|
89
|
+
version: 0.28.2
|
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.28.
|
96
|
+
version: 0.28.2
|
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.28.
|
103
|
+
version: 0.28.2
|
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.28.
|
110
|
+
version: 0.28.2
|
111
111
|
description: A Blog component for decidim's participatory spaces.
|
112
112
|
email:
|
113
113
|
- isaac.mg@coditramuntana.com
|
@@ -156,7 +156,6 @@ files:
|
|
156
156
|
- app/views/decidim/blogs/posts/index.html.erb
|
157
157
|
- app/views/decidim/blogs/posts/show.html.erb
|
158
158
|
- config/assets.rb
|
159
|
-
- config/environment.rb
|
160
159
|
- config/locales/am-ET.yml
|
161
160
|
- config/locales/ar-SA.yml
|
162
161
|
- config/locales/ar.yml
|
@@ -189,6 +188,7 @@ files:
|
|
189
188
|
- config/locales/ga-IE.yml
|
190
189
|
- config/locales/gl.yml
|
191
190
|
- config/locales/gn-PY.yml
|
191
|
+
- config/locales/he-IL.yml
|
192
192
|
- config/locales/hr-HR.yml
|
193
193
|
- config/locales/hr.yml
|
194
194
|
- config/locales/hu.yml
|
@@ -245,6 +245,7 @@ files:
|
|
245
245
|
- db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb
|
246
246
|
- db/migrate/20210310120514_add_followable_counter_cache_to_blogs.rb
|
247
247
|
- db/migrate/20220812122940_add_published_at_to_decidim_blogs_posts.rb
|
248
|
+
- decidim-blogs.gemspec
|
248
249
|
- lib/decidim/api/blogs_type.rb
|
249
250
|
- lib/decidim/api/post_input_filter.rb
|
250
251
|
- lib/decidim/api/post_input_sort.rb
|
@@ -273,16 +274,16 @@ require_paths:
|
|
273
274
|
- lib
|
274
275
|
required_ruby_version: !ruby/object:Gem::Requirement
|
275
276
|
requirements:
|
276
|
-
- - "
|
277
|
+
- - "~>"
|
277
278
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
279
|
+
version: 3.1.0
|
279
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
281
|
requirements:
|
281
282
|
- - ">="
|
282
283
|
- !ruby/object:Gem::Version
|
283
284
|
version: '0'
|
284
285
|
requirements: []
|
285
|
-
rubygems_version: 3.
|
286
|
+
rubygems_version: 3.3.7
|
286
287
|
signing_key:
|
287
288
|
specification_version: 4
|
288
289
|
summary: Decidim blogs module
|
data/config/environment.rb
DELETED