decidim-blogs 0.27.8 → 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/bg.yml +0 -86
- data/config/locales/ca.yml +16 -18
- 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 -12
- data/config/locales/gl.yml +0 -21
- data/config/locales/hu.yml +15 -23
- data/config/locales/id-ID.yml +0 -19
- data/config/locales/is-IS.yml +0 -13
- data/config/locales/it.yml +0 -24
- data/config/locales/ja.yml +14 -17
- data/config/locales/ko.yml +0 -38
- data/config/locales/lb.yml +0 -24
- 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 -42
- data/config/locales/pt-BR.yml +12 -27
- data/config/locales/pt.yml +0 -24
- 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/sq-AL.yml +0 -79
- 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 +9 -19
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +39 -30
- 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/locales/he-IL.yml +0 -1
- data/decidim-blogs.gemspec +0 -36
data/config/locales/pl.yml
CHANGED
@@ -1,12 +1,6 @@
|
|
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
|
10
4
|
models:
|
11
5
|
decidim/blogs/create_post_event: Nowy wpis na blogu
|
12
6
|
activerecord:
|
@@ -26,15 +20,7 @@ pl:
|
|
26
20
|
new: Nowy wpis
|
27
21
|
title: Działania
|
28
22
|
admin:
|
29
|
-
models:
|
30
|
-
post:
|
31
|
-
name: Wpis
|
32
23
|
posts:
|
33
|
-
create:
|
34
|
-
invalid: Podczas tworzenia tego wpisy wystąpił błąd
|
35
|
-
success: Wpis został utworzony
|
36
|
-
destroy:
|
37
|
-
success: Wpis został usunięty
|
38
24
|
edit:
|
39
25
|
save: Aktualizuj
|
40
26
|
title: Edytuj wpis
|
@@ -45,41 +31,13 @@ pl:
|
|
45
31
|
title: Utwórz wpis
|
46
32
|
update:
|
47
33
|
invalid: Podczas zapisywania wpisu wystąpiły błędy.
|
48
|
-
success: Wpis został pomyślnie zapisany
|
49
|
-
admin_log:
|
50
|
-
post:
|
51
|
-
create: "%{user_name} utworzył/a %{resource_name} post na blogu w %{space_name}"
|
52
|
-
delete: "%{user_name} usunął/usunęła %{resource_name} post na blogu z %{space_name}"
|
53
|
-
update: "%{user_name} zaktualizował/a %{resource_name} post na blogu w %{space_name}"
|
54
|
-
last_activity:
|
55
|
-
new_post_at_html: "<span>Nowy wpis na %{link}</span>"
|
56
34
|
models:
|
57
35
|
post:
|
58
36
|
fields:
|
59
37
|
author: Autor
|
60
38
|
body: Treść
|
61
|
-
created_at: Utworzono
|
62
|
-
official_blog_post: Oficjalny post
|
63
|
-
title: Tytuł posta
|
64
|
-
posts:
|
65
|
-
index:
|
66
|
-
empty: Nie ma tu jeszcze żadnych wpisów.
|
67
|
-
show:
|
68
|
-
back: Powrót do listy
|
69
|
-
comments: Komentarze
|
70
|
-
view: Zobacz
|
71
|
-
sidebar_blog:
|
72
|
-
comments: komentarze
|
73
|
-
most_commented_posts: Najczęściej komentowane wpisy
|
74
|
-
read_more: Czytaj więcej
|
75
39
|
components:
|
76
40
|
blogs:
|
77
|
-
actions:
|
78
|
-
comment: Skomentuj
|
79
|
-
create: Utwórz
|
80
|
-
destroy: Usuń
|
81
|
-
endorse: Rekomenduj
|
82
|
-
update: Aktualizuj
|
83
41
|
name: Blog
|
84
42
|
settings:
|
85
43
|
global:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -24,60 +24,45 @@ pt-BR:
|
|
24
24
|
new: Nova postagem
|
25
25
|
title: Ações
|
26
26
|
admin:
|
27
|
-
models:
|
28
|
-
post:
|
29
|
-
name: Postar
|
30
27
|
posts:
|
31
28
|
create:
|
32
|
-
invalid: Houve um problema ao criar esta postagem
|
33
|
-
success: Post criado com sucesso
|
29
|
+
invalid: Houve um problema ao criar esta postagem.
|
30
|
+
success: Post criado com sucesso.
|
34
31
|
destroy:
|
35
|
-
success: Postagem excluída com sucesso
|
32
|
+
success: Postagem excluída com sucesso.
|
36
33
|
edit:
|
37
34
|
save: Atualizar
|
38
35
|
title: Editar publicação
|
39
36
|
index:
|
37
|
+
not_published_yet: Não publicado.
|
40
38
|
title: Postagens
|
41
39
|
new:
|
42
40
|
create: Criar
|
43
41
|
title: Criar post
|
44
42
|
update:
|
45
43
|
invalid: Falha ao salvar o post.
|
46
|
-
success: Post salvo com sucesso
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
44
|
+
success: Post salvo com sucesso.
|
45
|
+
content_blocks:
|
46
|
+
highlighted_posts:
|
47
|
+
last_published: Último publicado
|
48
|
+
name: Postagens
|
49
|
+
see_all: Ver tudo
|
52
50
|
last_activity:
|
53
|
-
|
51
|
+
new_post: 'Nova postagem:'
|
54
52
|
models:
|
55
53
|
post:
|
56
54
|
fields:
|
57
55
|
author: Autor
|
58
56
|
body: Corpo
|
59
|
-
created_at: Criado em
|
60
57
|
official_blog_post: Publicação oficial
|
58
|
+
published_at: Horário da publicação
|
61
59
|
title: Título
|
62
|
-
posts:
|
63
|
-
index:
|
64
|
-
empty: Não existem publicações ainda.
|
65
|
-
show:
|
66
|
-
back: Voltar para a lista
|
67
|
-
comments: Comentários
|
68
|
-
view: Visualizar
|
69
|
-
sidebar_blog:
|
70
|
-
comments: comentários
|
71
|
-
most_commented_posts: Posts mais comentados
|
72
|
-
read_more: Saiba mais
|
73
60
|
components:
|
74
61
|
blogs:
|
75
62
|
actions:
|
76
63
|
comment: Comentário
|
77
64
|
create: Criar
|
78
65
|
destroy: Excluir
|
79
|
-
endorse: Endossar
|
80
|
-
update: Atualizar
|
81
66
|
name: Blog
|
82
67
|
settings:
|
83
68
|
global:
|
data/config/locales/pt.yml
CHANGED
@@ -18,15 +18,7 @@ pt:
|
|
18
18
|
new: Nova publicação
|
19
19
|
title: Ações
|
20
20
|
admin:
|
21
|
-
models:
|
22
|
-
post:
|
23
|
-
name: Publicação
|
24
21
|
posts:
|
25
|
-
create:
|
26
|
-
invalid: Ocorreu um problema ao criar esta publicação
|
27
|
-
success: Publicação criada com êxito
|
28
|
-
destroy:
|
29
|
-
success: Publicação eliminada com êxito
|
30
22
|
edit:
|
31
23
|
save: Actualizar
|
32
24
|
title: Editar publicação
|
@@ -37,29 +29,13 @@ pt:
|
|
37
29
|
title: Criar publicação
|
38
30
|
update:
|
39
31
|
invalid: Ocorreu um problema ao guardar a publicação.
|
40
|
-
success: Publicação guardada com êxito
|
41
|
-
last_activity:
|
42
|
-
new_post_at_html: "<span>Nova publicação em %{link}</span>"
|
43
32
|
models:
|
44
33
|
post:
|
45
34
|
fields:
|
46
35
|
author: Autor
|
47
36
|
body: Corpo
|
48
|
-
created_at: Criado em
|
49
|
-
posts:
|
50
|
-
show:
|
51
|
-
back: Retroceder à lista
|
52
|
-
comments: Comentários
|
53
|
-
view: Visão
|
54
|
-
sidebar_blog:
|
55
|
-
comments: comentários
|
56
|
-
most_commented_posts: Publicações mais comentadas
|
57
|
-
read_more: Ler mais
|
58
37
|
components:
|
59
38
|
blogs:
|
60
|
-
actions:
|
61
|
-
comment: Comentar
|
62
|
-
endorse: Apoiar
|
63
39
|
name: Blog
|
64
40
|
settings:
|
65
41
|
global:
|
data/config/locales/ro-RO.yml
CHANGED
@@ -25,50 +25,39 @@ ro:
|
|
25
25
|
new: Postare nouă
|
26
26
|
title: Acțiuni
|
27
27
|
admin:
|
28
|
-
models:
|
29
|
-
post:
|
30
|
-
name: Postează
|
31
28
|
posts:
|
32
29
|
create:
|
33
|
-
invalid: A apărut o eroare la crearea acestei postări
|
34
|
-
success: Postarea a fost creată cu succes
|
30
|
+
invalid: A apărut o eroare la crearea acestei postări.
|
31
|
+
success: Postarea a fost creată cu succes.
|
35
32
|
destroy:
|
36
|
-
success: Postarea a fost ștearsă cu succes
|
33
|
+
success: Postarea a fost ștearsă cu succes.
|
37
34
|
edit:
|
38
35
|
save: Actualizează
|
39
36
|
title: Editează postarea
|
40
37
|
index:
|
38
|
+
not_published_yet: Nu a fost publicat încă.
|
41
39
|
title: Postări
|
42
40
|
new:
|
43
41
|
create: Creează
|
44
42
|
title: Creează postare
|
45
43
|
update:
|
46
44
|
invalid: A apărut o eroare la salvarea postării.
|
47
|
-
success: Postarea a fost salvată cu succes
|
45
|
+
success: Postarea a fost salvată cu succes.
|
48
46
|
admin_log:
|
49
47
|
post:
|
50
48
|
create: "%{user_name} a creat postarea de blog %{resource_name} în %{space_name}"
|
51
49
|
delete: "%{user_name} a șters postarea de blog %{resource_name} din %{space_name}"
|
52
50
|
update: "%{user_name} a actualizat postarea de blog %{resource_name} în %{space_name}"
|
53
51
|
last_activity:
|
54
|
-
|
52
|
+
new_post: 'Postare nouă:'
|
55
53
|
models:
|
56
54
|
post:
|
57
55
|
fields:
|
58
56
|
author: Autor
|
59
57
|
body: Conținut
|
60
|
-
created_at: Creat la
|
61
58
|
official_blog_post: Postare oficială
|
59
|
+
published_at: Publicat la
|
62
60
|
title: Titlu
|
63
|
-
posts:
|
64
|
-
show:
|
65
|
-
back: Înapoi la listă
|
66
|
-
comments: Comentarii
|
67
|
-
view: Vizualizează
|
68
|
-
sidebar_blog:
|
69
|
-
comments: comentarii
|
70
|
-
most_commented_posts: Cele mai comentate postări
|
71
|
-
read_more: Citește mai mult
|
72
61
|
components:
|
73
62
|
blogs:
|
74
63
|
actions:
|
data/config/locales/ru.yml
CHANGED
@@ -26,49 +26,43 @@ ru:
|
|
26
26
|
new: Создать новый пост
|
27
27
|
title: Действия
|
28
28
|
admin:
|
29
|
-
models:
|
30
|
-
post:
|
31
|
-
name: Пост
|
32
29
|
posts:
|
33
30
|
create:
|
34
|
-
invalid: При попытке добавить этот пост произошла
|
35
|
-
success: Пост успешно
|
31
|
+
invalid: При попытке добавить этот пост произошла ошибка.
|
32
|
+
success: Пост успешно создан.
|
36
33
|
destroy:
|
37
|
-
success: Пост успешно
|
34
|
+
success: Пост успешно удален.
|
38
35
|
edit:
|
39
36
|
save: Обновить
|
40
37
|
title: Изменить пост
|
41
38
|
index:
|
39
|
+
not_published_yet: Пока не опубликовано.
|
42
40
|
title: Посты
|
43
41
|
new:
|
44
42
|
create: Создать
|
45
43
|
title: Создать пост
|
46
44
|
update:
|
47
45
|
invalid: При попытке сохранить пост произошли ошибки.
|
48
|
-
success: Пост успешно
|
46
|
+
success: Пост успешно сохранен.
|
49
47
|
admin_log:
|
50
48
|
post:
|
51
49
|
create: "%{user_name} создал пост %{resource_name} в %{space_name}"
|
52
50
|
delete: "%{user_name} удалил пост %{resource_name} в %{space_name}"
|
53
51
|
update: "%{user_name} обновил пост %{resource_name} в %{space_name}"
|
52
|
+
content_blocks:
|
53
|
+
highlighted_posts:
|
54
|
+
last_published: Последние опубликованные
|
55
|
+
name: Посты
|
56
|
+
see_all: Посмотреть все посты
|
54
57
|
last_activity:
|
55
|
-
|
58
|
+
new_post: 'Новый пост:'
|
56
59
|
models:
|
57
60
|
post:
|
58
61
|
fields:
|
59
62
|
author: Автор
|
60
63
|
body: Основной текст
|
61
|
-
|
64
|
+
published_at: Время публикации
|
62
65
|
title: Название
|
63
|
-
posts:
|
64
|
-
show:
|
65
|
-
back: Назад к списку
|
66
|
-
comments: Комментарии
|
67
|
-
view: Посмотреть
|
68
|
-
sidebar_blog:
|
69
|
-
comments: комментарии
|
70
|
-
most_commented_posts: Наиболее комментируемые посты
|
71
|
-
read_more: Читать подробнее
|
72
66
|
components:
|
73
67
|
blogs:
|
74
68
|
actions:
|
data/config/locales/sk.yml
CHANGED
@@ -19,15 +19,7 @@ sk:
|
|
19
19
|
new: Nový príspevok
|
20
20
|
title: Akcie
|
21
21
|
admin:
|
22
|
-
models:
|
23
|
-
post:
|
24
|
-
name: Príspevok
|
25
22
|
posts:
|
26
|
-
create:
|
27
|
-
invalid: Vyskytol sa problém s vytváraním príspevku
|
28
|
-
success: Príspevok úspešne vytvorený
|
29
|
-
destroy:
|
30
|
-
success: Príspevok úspešne odstránený
|
31
23
|
edit:
|
32
24
|
save: Aktualizovať
|
33
25
|
index:
|
@@ -37,24 +29,11 @@ sk:
|
|
37
29
|
title: Vytvort príspevok
|
38
30
|
update:
|
39
31
|
invalid: Vyskytol sa problém s ukladaním príspevku.
|
40
|
-
success: Príspevok úspešne uložený
|
41
|
-
last_activity:
|
42
|
-
new_post_at_html: "<span>Nový príspevok na %{link}</span>"
|
43
32
|
models:
|
44
33
|
post:
|
45
34
|
fields:
|
46
35
|
author: Autor
|
47
36
|
body: Telo textu
|
48
|
-
created_at: Vytvorené
|
49
|
-
posts:
|
50
|
-
show:
|
51
|
-
back: Späť na zoznam
|
52
|
-
comments: Komentáre
|
53
|
-
view: Zobraziť
|
54
|
-
sidebar_blog:
|
55
|
-
comments: komentáre
|
56
|
-
most_commented_posts: Najviac komentované príspevky
|
57
|
-
read_more: Čítať ďalej
|
58
37
|
components:
|
59
38
|
blogs:
|
60
39
|
name: Blog
|
data/config/locales/sq-AL.yml
CHANGED
@@ -1,80 +1 @@
|
|
1
|
-
---
|
2
1
|
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
|
-
edit:
|
29
|
-
save: Përditëso
|
30
|
-
title: Përpuno postimin
|
31
|
-
index:
|
32
|
-
title: Postimet
|
33
|
-
new:
|
34
|
-
create: Krijo
|
35
|
-
title: Krijo postimin
|
36
|
-
update:
|
37
|
-
invalid: Ndodhi një problem gjatë krijimit të këtij postimi.
|
38
|
-
admin_log:
|
39
|
-
post:
|
40
|
-
create: "%{user_name} krijoi postimin %{resource_name} në %{space_name}"
|
41
|
-
delete: "%{user_name} fshiu postimin %{resource_name} nga %{space_name}"
|
42
|
-
update: "%{user_name} përditësoi postimin %{resource_name} në %{space_name}"
|
43
|
-
models:
|
44
|
-
post:
|
45
|
-
fields:
|
46
|
-
author: Autor
|
47
|
-
body: Përmbajtja
|
48
|
-
official_blog_post: Postimi zyrtar
|
49
|
-
title: Titulli
|
50
|
-
posts:
|
51
|
-
index:
|
52
|
-
empty: Nuk ka ende postime.
|
53
|
-
components:
|
54
|
-
blogs:
|
55
|
-
actions:
|
56
|
-
comment: Koment
|
57
|
-
create: Krijo
|
58
|
-
destroy: Fshij
|
59
|
-
endorse: Mirato
|
60
|
-
update: Përditëso
|
61
|
-
name: Blog
|
62
|
-
settings:
|
63
|
-
global:
|
64
|
-
announcement: Njoftim
|
65
|
-
comments_enabled: Komentet janë aktivizuar
|
66
|
-
comments_max_length: Gjatësia maksimale e komenteve (Lëre 0 për vlerën e paracaktuar)
|
67
|
-
step:
|
68
|
-
announcement: Njoftim
|
69
|
-
comments_blocked: Komentet të bllokuara
|
70
|
-
endorsements_blocked: Mbështetjet të bllokuara
|
71
|
-
endorsements_enabled: Mbështetjet të aktivizuara
|
72
|
-
events:
|
73
|
-
blogs:
|
74
|
-
post_created:
|
75
|
-
email_intro: Postimi "%{resource_title}" është publikuar në "%{participatory_space_title}" që ju po ndiqni.
|
76
|
-
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.
|
77
|
-
email_subject: Postimi i ri i publikuar në %{participatory_space_title}
|
78
|
-
notification_title: Postimi <a href="%{resource_path}">%{resource_title}</a> është publikuar në %{participatory_space_title}
|
79
|
-
statistics:
|
80
|
-
posts_count: Postimet
|
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -23,15 +23,7 @@ sv:
|
|
23
23
|
new: Nytt inlägg
|
24
24
|
title: Åtgärder
|
25
25
|
admin:
|
26
|
-
models:
|
27
|
-
post:
|
28
|
-
name: Publicera
|
29
26
|
posts:
|
30
|
-
create:
|
31
|
-
invalid: Det gick inte att skapa inlägget
|
32
|
-
success: Inlägget har skapats
|
33
|
-
destroy:
|
34
|
-
success: Inlägget har raderats
|
35
27
|
edit:
|
36
28
|
save: Uppdatera
|
37
29
|
title: Redigera inlägg
|
@@ -42,26 +34,19 @@ sv:
|
|
42
34
|
title: Skapa inlägg
|
43
35
|
update:
|
44
36
|
invalid: Det gick inte att spara inlägget.
|
45
|
-
|
37
|
+
content_blocks:
|
38
|
+
highlighted_posts:
|
39
|
+
name: Inlägg
|
40
|
+
see_all: Se alla inlägg
|
46
41
|
last_activity:
|
47
|
-
|
42
|
+
new_post: 'Nytt inlägg:'
|
48
43
|
models:
|
49
44
|
post:
|
50
45
|
fields:
|
51
46
|
author: Författare
|
52
47
|
body: Innehåll
|
53
|
-
created_at: Skapad
|
54
48
|
official_blog_post: Officiellt inlägg
|
55
49
|
title: Titel
|
56
|
-
posts:
|
57
|
-
show:
|
58
|
-
back: Tillbaka till listan
|
59
|
-
comments: Kommentarer
|
60
|
-
view: Visa
|
61
|
-
sidebar_blog:
|
62
|
-
comments: kommentarer
|
63
|
-
most_commented_posts: Mest kommenterade inlägg
|
64
|
-
read_more: Läs mer
|
65
50
|
components:
|
66
51
|
blogs:
|
67
52
|
actions:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -23,15 +23,7 @@ tr:
|
|
23
23
|
new: Yeni posta
|
24
24
|
title: Eylemler
|
25
25
|
admin:
|
26
|
-
models:
|
27
|
-
post:
|
28
|
-
name: posta
|
29
26
|
posts:
|
30
|
-
create:
|
31
|
-
invalid: Bu yayını oluştururken bir sorun oluştu
|
32
|
-
success: Yayın başarıyla oluşturuldu
|
33
|
-
destroy:
|
34
|
-
success: Yayın başarıyla silindi
|
35
27
|
edit:
|
36
28
|
save: Güncelleştirme
|
37
29
|
title: Gönderiyi düzenle
|
@@ -42,24 +34,11 @@ tr:
|
|
42
34
|
title: Gönderi oluştur
|
43
35
|
update:
|
44
36
|
invalid: Gönderiyi kaydederken bir sorun oluştu.
|
45
|
-
success: Yayın başarıyla kaydedildi
|
46
|
-
last_activity:
|
47
|
-
new_post_at_html: "<span> %{link}</span>yeni gönderi"
|
48
37
|
models:
|
49
38
|
post:
|
50
39
|
fields:
|
51
40
|
author: Yazar
|
52
41
|
body: Vücut
|
53
|
-
created_at: Adresinde düzenlendi
|
54
|
-
posts:
|
55
|
-
show:
|
56
|
-
back: Listeye geri dön
|
57
|
-
comments: Yorumlar
|
58
|
-
view: Görünüm
|
59
|
-
sidebar_blog:
|
60
|
-
comments: yorumlar
|
61
|
-
most_commented_posts: En çok yorum yapılan yazılar
|
62
|
-
read_more: Daha fazla oku
|
63
42
|
components:
|
64
43
|
blogs:
|
65
44
|
name: Blog
|
data/config/locales/uk.yml
CHANGED
@@ -19,15 +19,7 @@ uk:
|
|
19
19
|
new: Створити новий допис
|
20
20
|
title: Дії
|
21
21
|
admin:
|
22
|
-
models:
|
23
|
-
post:
|
24
|
-
name: Допис
|
25
22
|
posts:
|
26
|
-
create:
|
27
|
-
invalid: При спробі додати цей допис сталася помилка
|
28
|
-
success: Допис успішно додано
|
29
|
-
destroy:
|
30
|
-
success: Допис успішно видалено
|
31
23
|
edit:
|
32
24
|
save: Оновити
|
33
25
|
index:
|
@@ -37,20 +29,11 @@ uk:
|
|
37
29
|
title: Створити допис
|
38
30
|
update:
|
39
31
|
invalid: При спробі збереження цього допису сталися помилки.
|
40
|
-
success: Допис успішно збережено
|
41
32
|
models:
|
42
33
|
post:
|
43
34
|
fields:
|
44
35
|
author: Автор
|
45
36
|
body: Основний текст
|
46
|
-
created_at: 'Створено:'
|
47
|
-
posts:
|
48
|
-
show:
|
49
|
-
view: Переглянути
|
50
|
-
sidebar_blog:
|
51
|
-
comments: коментарі
|
52
|
-
most_commented_posts: Найбільш коментовані дописи
|
53
|
-
read_more: Читати далі
|
54
37
|
components:
|
55
38
|
blogs:
|
56
39
|
name: Блог
|
data/config/locales/zh-CN.yml
CHANGED
@@ -16,15 +16,7 @@ zh-CN:
|
|
16
16
|
new: 新建帖子
|
17
17
|
title: 行动
|
18
18
|
admin:
|
19
|
-
models:
|
20
|
-
post:
|
21
|
-
name: 帖子
|
22
19
|
posts:
|
23
|
-
create:
|
24
|
-
invalid: 创建这个帖子时出错
|
25
|
-
success: 帖子创建成功
|
26
|
-
destroy:
|
27
|
-
success: 帖子已成功删除
|
28
20
|
edit:
|
29
21
|
save: 更新
|
30
22
|
index:
|
@@ -34,24 +26,11 @@ zh-CN:
|
|
34
26
|
title: 创建帖子
|
35
27
|
update:
|
36
28
|
invalid: 保存帖子时出错。
|
37
|
-
success: 帖子保存成功
|
38
|
-
last_activity:
|
39
|
-
new_post_at_html: "<span>在 %{link}的新帖</span>"
|
40
29
|
models:
|
41
30
|
post:
|
42
31
|
fields:
|
43
32
|
author: 作者
|
44
33
|
body: 正文内容
|
45
|
-
created_at: 创建于
|
46
|
-
posts:
|
47
|
-
show:
|
48
|
-
back: 返回列表
|
49
|
-
comments: 评论
|
50
|
-
view: 查看
|
51
|
-
sidebar_blog:
|
52
|
-
comments: 评论
|
53
|
-
most_commented_posts: 评论最多的帖子
|
54
|
-
read_more: 阅读更多
|
55
34
|
components:
|
56
35
|
blogs:
|
57
36
|
name: 博客
|
data/config/locales/zh-TW.yml
CHANGED
@@ -23,9 +23,6 @@ zh-TW:
|
|
23
23
|
new: 新貼文
|
24
24
|
title: 操作
|
25
25
|
admin:
|
26
|
-
models:
|
27
|
-
post:
|
28
|
-
name: 文章
|
29
26
|
posts:
|
30
27
|
create:
|
31
28
|
invalid: 建立此文章時出現問題
|
@@ -36,6 +33,7 @@ zh-TW:
|
|
36
33
|
save: 更新
|
37
34
|
title: 编辑文章
|
38
35
|
index:
|
36
|
+
not_published_yet: 尚未發布
|
39
37
|
title: 貼文
|
40
38
|
new:
|
41
39
|
create: 建立
|
@@ -49,24 +47,15 @@ zh-TW:
|
|
49
47
|
delete: "%{user_name} 從 %{space_name} 刪除了 %{resource_name} 部落格文章。"
|
50
48
|
update: "%{user_name} 在 %{space_name} 更新了 %{resource_name} 部落格文章"
|
51
49
|
last_activity:
|
52
|
-
|
50
|
+
new_post: '新貼文:'
|
53
51
|
models:
|
54
52
|
post:
|
55
53
|
fields:
|
56
54
|
author: 作者
|
57
55
|
body: 正文
|
58
|
-
created_at: 建立於
|
59
56
|
official_blog_post: 官方文章
|
57
|
+
published_at: 發布時間
|
60
58
|
title: 標題
|
61
|
-
posts:
|
62
|
-
show:
|
63
|
-
back: 返回列表
|
64
|
-
comments: 評論
|
65
|
-
view: 檢視
|
66
|
-
sidebar_blog:
|
67
|
-
comments: 評論
|
68
|
-
most_commented_posts: 最多留言的帖子
|
69
|
-
read_more: 閱讀變多
|
70
59
|
components:
|
71
60
|
blogs:
|
72
61
|
actions:
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddPublishedAtToDecidimBlogsPosts < ActiveRecord::Migration[6.1]
|
4
|
+
class Post < ApplicationRecord
|
5
|
+
self.table_name = :decidim_blogs_posts
|
6
|
+
end
|
7
|
+
|
8
|
+
def change
|
9
|
+
add_column :decidim_blogs_posts, :published_at, :datetime
|
10
|
+
|
11
|
+
reversible do |direction|
|
12
|
+
direction.up do
|
13
|
+
Post.update_all("published_at = created_at") # rubocop:disable Rails/SkipsModelValidations
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|