decidim-blogs 0.26.4 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/blogs/admin/create_post.rb +1 -1
- data/app/commands/decidim/blogs/admin/update_post.rb +6 -3
- data/app/controllers/decidim/blogs/admin/posts_controller.rb +6 -2
- data/app/forms/decidim/blogs/admin/post_form.rb +27 -7
- data/app/helpers/decidim/blogs/admin/posts_helper.rb +15 -0
- data/app/models/decidim/blogs/post.rb +9 -1
- data/app/presenters/decidim/blogs/admin_log/post_presenter.rb +36 -0
- data/app/presenters/decidim/blogs/official_author_presenter.rb +14 -0
- data/app/presenters/decidim/blogs/post_presenter.rb +7 -1
- data/app/views/decidim/blogs/admin/posts/_form.html.erb +3 -3
- data/app/views/decidim/blogs/posts/_posts.html.erb +2 -1
- data/app/views/decidim/blogs/posts/show.html.erb +3 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +2 -1
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +8 -1
- data/config/locales/cs.yml +8 -1
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +2 -1
- data/config/locales/el.yml +2 -1
- data/config/locales/en.yml +7 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +8 -1
- data/config/locales/es-PY.yml +8 -1
- data/config/locales/es.yml +8 -1
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +2 -1
- data/config/locales/fi-plain.yml +8 -1
- data/config/locales/fi.yml +8 -1
- data/config/locales/fr-CA.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -1
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -9
- data/config/locales/id-ID.yml +1 -0
- data/config/locales/is-IS.yml +2 -1
- data/config/locales/it.yml +2 -1
- data/config/locales/ja.yml +7 -1
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +2 -1
- data/config/locales/lt.yml +1 -86
- data/config/locales/lv.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +6 -5
- data/config/locales/no.yml +2 -1
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +2 -1
- data/config/locales/pt-BR.yml +3 -2
- data/config/locales/pt.yml +2 -1
- data/config/locales/ro-RO.yml +2 -1
- data/config/locales/ru.yml +1 -0
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +3 -1
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/config/locales/zh-TW.yml +1 -0
- data/lib/decidim/blogs/component.rb +8 -2
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +22 -23
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
data/config/locales/fi.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fi:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fi:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Luo artikkeli käyttäjänä
|
13
15
|
confirm_destroy: Haluatko varmasti poistaa tämän artikkelin?
|
14
16
|
destroy: Poista
|
15
17
|
edit: Muokkaa
|
16
18
|
new: Uusi artikkeli
|
17
19
|
title: Toiminnot
|
18
|
-
user_group_id: Luo artikkeli käyttäjänä
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -39,6 +40,11 @@ fi:
|
|
39
40
|
update:
|
40
41
|
invalid: Artikkelin tallennus epäonnistui.
|
41
42
|
success: Artikkeli tallennus onnistui
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} loi blogikirjoituksen %{resource_name} tilassa %{space_name}"
|
46
|
+
delete: "%{user_name} poisti blogikirjoituksen %{resource_name} tilasta %{space_name}"
|
47
|
+
update: "%{user_name} päivitti blogikirjoitusta %{resource_name} tilassa %{space_name}"
|
42
48
|
last_activity:
|
43
49
|
new_post_at_html: "<span>Uusi artikkeli osoitteessa %{link}</span>"
|
44
50
|
models:
|
@@ -47,6 +53,7 @@ fi:
|
|
47
53
|
author: Laatija
|
48
54
|
body: Leipäteksti
|
49
55
|
created_at: Luotu
|
56
|
+
official_blog_post: Virallinen artikkeli
|
50
57
|
title: otsikko
|
51
58
|
posts:
|
52
59
|
show:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fr-CA:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fr-CA:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Créer un article comme
|
13
15
|
confirm_destroy: Êtes-vous certain de vouloir supprimer cet article ?
|
14
16
|
destroy: Supprimer
|
15
17
|
edit: Modifier
|
16
18
|
new: Nouvel article
|
17
19
|
title: Actions
|
18
|
-
user_group_id: Créer un article comme
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/fr.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fr:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fr:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Créer un article en tant que
|
13
15
|
confirm_destroy: Êtes-vous certain de vouloir supprimer cet article ?
|
14
16
|
destroy: Supprimer
|
15
17
|
edit: Modifier
|
16
18
|
new: Nouvel article
|
17
19
|
title: Actions
|
18
|
-
user_group_id: Créer un article en tant que
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/ga-IE.yml
CHANGED
data/config/locales/gl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
gl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ gl:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Crear publicación como
|
13
15
|
confirm_destroy: Tes a certeza de querer eliminar esta publicación?
|
14
16
|
destroy: Eliminar
|
15
17
|
edit: Editar
|
16
18
|
new: Nova publicación
|
17
19
|
title: Accións
|
18
|
-
user_group_id: Crear publicación como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/hr.yml
CHANGED
data/config/locales/hu.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
hu:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -15,7 +16,6 @@ hu:
|
|
15
16
|
edit: Szerkesztés
|
16
17
|
new: Új bejegyzés
|
17
18
|
title: Műveletek
|
18
|
-
user_group_id: Bejegyzés létrehozása
|
19
19
|
admin:
|
20
20
|
models:
|
21
21
|
components:
|
@@ -30,7 +30,6 @@ hu:
|
|
30
30
|
success: Bejegyzés törlése sikeres
|
31
31
|
edit:
|
32
32
|
save: Frissítés
|
33
|
-
title: Bejegyzés szerkesztése
|
34
33
|
index:
|
35
34
|
title: Bejegyzések
|
36
35
|
new:
|
@@ -59,16 +58,11 @@ hu:
|
|
59
58
|
read_more: Bővebben
|
60
59
|
components:
|
61
60
|
blogs:
|
62
|
-
actions:
|
63
|
-
create: Létrehozás
|
64
|
-
destroy: Törlés
|
65
|
-
update: Frissítés
|
66
61
|
name: Blog
|
67
62
|
settings:
|
68
63
|
global:
|
69
64
|
announcement: Közlemény
|
70
65
|
comments_enabled: Megjegyzések engedélyezve
|
71
|
-
comments_max_length: Kommentek maximális hossza (Hagyjon 0 -t az alapértékhez)
|
72
66
|
step:
|
73
67
|
announcement: Közlemény
|
74
68
|
comments_blocked: Megjegyzések letiltva
|
@@ -81,5 +75,3 @@ hu:
|
|
81
75
|
email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{participatory_space_title}". Leiratkozás az előző link segítségével.'
|
82
76
|
email_subject: 'Új bejegyzés ehhez: %{participatory_space_title}'
|
83
77
|
notification_title: 'A(z) <a href="%{resource_path}">%{resource_title}</a> bejegyzés közzétéve itt: %{participatory_space_title}'
|
84
|
-
statistics:
|
85
|
-
posts_count: Bejegyzések
|
data/config/locales/id-ID.yml
CHANGED
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
it:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ it:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Crea post come
|
13
15
|
confirm_destroy: Sei sicuro di voler eliminare questo post?
|
14
16
|
destroy: Elimina
|
15
17
|
edit: Modifica
|
16
18
|
new: Nuovo post
|
17
19
|
title: Azioni
|
18
|
-
user_group_id: Crea post come
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/ja.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ja:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -9,12 +10,12 @@ ja:
|
|
9
10
|
decidim:
|
10
11
|
blogs:
|
11
12
|
actions:
|
13
|
+
author_id: 次のように投稿を作成
|
12
14
|
confirm_destroy: この投稿を削除してもよろしいですか?
|
13
15
|
destroy: 削除
|
14
16
|
edit: 編集
|
15
17
|
new: 新規投稿
|
16
18
|
title: アクション
|
17
|
-
user_group_id: 次のように投稿を作成
|
18
19
|
admin:
|
19
20
|
models:
|
20
21
|
components:
|
@@ -38,6 +39,11 @@ ja:
|
|
38
39
|
update:
|
39
40
|
invalid: 投稿の保存中に問題が発生しました。
|
40
41
|
success: 投稿を保存しました
|
42
|
+
admin_log:
|
43
|
+
post:
|
44
|
+
create: "%{user_name} が %{space_name} でブログ投稿 %{resource_name} を作成しました"
|
45
|
+
delete: "%{user_name} がブログ投稿 %{resource_name} を %{space_name} から削除しました"
|
46
|
+
update: "%{user_name} が %{space_name} のブログ投稿 %{resource_name} を更新しました"
|
41
47
|
last_activity:
|
42
48
|
new_post_at_html: "<span> %{link}に新しい投稿</span>"
|
43
49
|
models:
|
data/config/locales/ko.yml
CHANGED
data/config/locales/lb.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
lb:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ lb:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Beitrag erstellen als
|
13
15
|
confirm_destroy: Möchten Sie diesen Beitrag wirklich löschen?
|
14
16
|
destroy: Löschen
|
15
17
|
edit: Bearbeiten
|
16
18
|
new: Neuer Beitrag
|
17
19
|
title: Aktionen
|
18
|
-
user_group_id: Beitrag erstellen als
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/lt.yml
CHANGED
@@ -1,87 +1,2 @@
|
|
1
|
+
---
|
1
2
|
lt:
|
2
|
-
activemodel:
|
3
|
-
models:
|
4
|
-
decidim/blogs/create_post_event: Naujas tinklaraščio įrašas
|
5
|
-
activerecord:
|
6
|
-
models:
|
7
|
-
decidim/blogs/post:
|
8
|
-
one: Publikacija
|
9
|
-
few: Publikacijos
|
10
|
-
many: Publikacijos
|
11
|
-
other: Publikacijos
|
12
|
-
decidim:
|
13
|
-
blogs:
|
14
|
-
actions:
|
15
|
-
confirm_destroy: Ar tikrai norite ištrinti šį įrašą?
|
16
|
-
destroy: Ištrinti
|
17
|
-
edit: Redaguoti
|
18
|
-
new: Naujas įrašas
|
19
|
-
title: Veiksmai
|
20
|
-
user_group_id: Sukurti įrašą kaip
|
21
|
-
admin:
|
22
|
-
models:
|
23
|
-
components:
|
24
|
-
body: Pagrindinė dalis
|
25
|
-
post:
|
26
|
-
name: Publikacija
|
27
|
-
posts:
|
28
|
-
create:
|
29
|
-
invalid: Kuriant šį įrašą iškilo problema
|
30
|
-
success: Įrašas sukurtas sėkmingai
|
31
|
-
destroy:
|
32
|
-
success: Įrašas pašalintas
|
33
|
-
edit:
|
34
|
-
save: Atnaujinimas
|
35
|
-
title: Redaguoti publikaciją
|
36
|
-
index:
|
37
|
-
title: Publikacijos
|
38
|
-
new:
|
39
|
-
create: Sukurti
|
40
|
-
title: Sukurti publikaciją
|
41
|
-
update:
|
42
|
-
invalid: Išsaugant šį įrašą iškilo problema.
|
43
|
-
success: Įrašas išsaugotas
|
44
|
-
last_activity:
|
45
|
-
new_post_at_html: "<span> Naujas įrašas %{link}</span>"
|
46
|
-
models:
|
47
|
-
post:
|
48
|
-
fields:
|
49
|
-
author: Autorė(-ius)
|
50
|
-
body: Pagrindinė dalis
|
51
|
-
created_at: Sukurta
|
52
|
-
title: pavadinimas
|
53
|
-
posts:
|
54
|
-
show:
|
55
|
-
back: Grįžti į sąrašą
|
56
|
-
comments: Komentarai
|
57
|
-
view: Peržiūrėti
|
58
|
-
sidebar_blog:
|
59
|
-
comments: komentarai
|
60
|
-
most_commented_posts: Labiausiai komentuojamos publikacijos
|
61
|
-
read_more: Skaityti daugiau
|
62
|
-
components:
|
63
|
-
blogs:
|
64
|
-
actions:
|
65
|
-
create: Sukurti
|
66
|
-
destroy: Ištrinti
|
67
|
-
update: Atnaujinti
|
68
|
-
name: Tinklaraštis
|
69
|
-
settings:
|
70
|
-
global:
|
71
|
-
announcement: Pranešimas
|
72
|
-
comments_enabled: Komentarai įjungti
|
73
|
-
comments_max_length: Maksimalus komentaro ilgis (įrašyti 0 įprastam ilgiui)
|
74
|
-
step:
|
75
|
-
announcement: Pranešimas
|
76
|
-
comments_blocked: Komentarai užblokuoti
|
77
|
-
endorsements_blocked: Pritarimai užblokuoti
|
78
|
-
endorsements_enabled: Pritarimai aktyvuoti
|
79
|
-
events:
|
80
|
-
blogs:
|
81
|
-
post_created:
|
82
|
-
email_intro: Publikacija%{resource_title} buvo publikuota %{participatory_space_title} kurią sekate.
|
83
|
-
email_outro: Gavote šį pranešimą nes sekate %{participatory_space_title}. Galite nebesekti dėka praėjusios nuorodos.
|
84
|
-
email_subject: Nauja publikacija paskelbta %{participatory_space_title}
|
85
|
-
notification_title: Publikacija <a href="%{resource_path}">%{resource_title}</a> buvo publikuota %{participatory_space_title}
|
86
|
-
statistics:
|
87
|
-
posts_count: Publikacijos
|
data/config/locales/lv.yml
CHANGED
data/config/locales/mt.yml
CHANGED
data/config/locales/nl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
nl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -6,16 +7,16 @@ nl:
|
|
6
7
|
models:
|
7
8
|
decidim/blogs/post:
|
8
9
|
one: Post
|
9
|
-
other:
|
10
|
+
other: berichten
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Bericht aanmaken als
|
13
15
|
confirm_destroy: Weet je zeker dat je dit bericht wilt verwijderen?
|
14
16
|
destroy: Verwijder
|
15
17
|
edit: Bewerk
|
16
|
-
new:
|
18
|
+
new: Nieuw bericht
|
17
19
|
title: acties
|
18
|
-
user_group_id: Bericht aanmaken als
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -37,8 +38,8 @@ nl:
|
|
37
38
|
create: creëren
|
38
39
|
title: Maak bericht
|
39
40
|
update:
|
40
|
-
invalid: Er zijn fouten opgetreden bij het opslaan van
|
41
|
-
success:
|
41
|
+
invalid: Er zijn fouten opgetreden bij het opslaan van het bericht.
|
42
|
+
success: Bericht succesvol opgeslagen
|
42
43
|
last_activity:
|
43
44
|
new_post_at_html: "<span>Nieuw bericht op %{link}</span>"
|
44
45
|
models:
|
data/config/locales/no.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
"no":
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Opprett innlegg som
|
13
15
|
confirm_destroy: Er du sikker på at du vil slette dette innlegget?
|
14
16
|
destroy: Slett
|
15
17
|
edit: Editar
|
16
18
|
new: Nytt innlegg
|
17
19
|
title: Handlinger
|
18
|
-
user_group_id: Opprett innlegg som
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/om-ET.yml
CHANGED
data/config/locales/pl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -12,12 +13,12 @@ pl:
|
|
12
13
|
decidim:
|
13
14
|
blogs:
|
14
15
|
actions:
|
16
|
+
author_id: Utwórz wpis jako
|
15
17
|
confirm_destroy: Czy na pewno chcesz usunąć ten wpis?
|
16
18
|
destroy: Usuń
|
17
19
|
edit: Edytuj
|
18
20
|
new: Nowy wpis
|
19
21
|
title: Działania
|
20
|
-
user_group_id: Utwórz wpis jako
|
21
22
|
admin:
|
22
23
|
models:
|
23
24
|
components:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
pt:
|
2
3
|
activemodel:
|
3
4
|
models:
|
4
5
|
decidim/blogs/create_post_event: Nova postagem no blog
|
@@ -10,12 +11,12 @@ pt-BR:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Criar publicação como
|
13
15
|
confirm_destroy: Deseja mesmo excluir este post?
|
14
16
|
destroy: Excluir
|
15
17
|
edit: Editar
|
16
18
|
new: Nova postagem
|
17
19
|
title: Ações
|
18
|
-
user_group_id: Criar publicação como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/pt.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ pt:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Criar publicação como
|
13
15
|
confirm_destroy: Tem a certeza de que deseja eliminar esta publicação?
|
14
16
|
destroy: Eliminar
|
15
17
|
edit: Editar
|
16
18
|
new: Nova publicação
|
17
19
|
title: Ações
|
18
|
-
user_group_id: Criar publicação como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -11,12 +12,12 @@ ro:
|
|
11
12
|
decidim:
|
12
13
|
blogs:
|
13
14
|
actions:
|
15
|
+
author_id: Creează postare ca
|
14
16
|
confirm_destroy: Sigur dorești să ştergi această postare?
|
15
17
|
destroy: Șterge
|
16
18
|
edit: Editează
|
17
19
|
new: Postare nouă
|
18
20
|
title: Acțiuni
|
19
|
-
user_group_id: Creează postare ca
|
20
21
|
admin:
|
21
22
|
models:
|
22
23
|
components:
|
data/config/locales/ru.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ sv:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Skapa inlägg som
|
13
15
|
confirm_destroy: Vill du radera inlägget?
|
14
16
|
destroy: Radera
|
15
17
|
edit: Redigera
|
16
18
|
new: Nytt inlägg
|
17
19
|
title: Åtgärder
|
18
|
-
user_group_id: Skapa inlägg som
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -47,6 +48,7 @@ sv:
|
|
47
48
|
author: Författare
|
48
49
|
body: Innehåll
|
49
50
|
created_at: Skapad
|
51
|
+
official_blog_post: Officiellt inlägg
|
50
52
|
title: titel
|
51
53
|
posts:
|
52
54
|
show:
|
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -72,8 +72,14 @@ Decidim.register_component(:blogs) do |component|
|
|
72
72
|
Decidim::Component.create!(params)
|
73
73
|
end
|
74
74
|
|
75
|
-
|
76
|
-
author =
|
75
|
+
6.times do |n|
|
76
|
+
author = if n >= 3
|
77
|
+
Decidim::User.where(organization: component.organization).order(Arel.sql("RANDOM()")).first
|
78
|
+
elsif n <= 1
|
79
|
+
Decidim::UserGroup.where(organization: component.organization).order(Arel.sql("RANDOM()")).first
|
80
|
+
else
|
81
|
+
component.organization
|
82
|
+
end
|
77
83
|
|
78
84
|
params = {
|
79
85
|
component: component,
|