decidim-blogs 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +30 -0
  3. data/Rakefile +3 -0
  4. data/app/assets/images/decidim/blogs/icon.svg +3 -0
  5. data/app/commands/decidim/blogs/admin/create_post.rb +50 -0
  6. data/app/commands/decidim/blogs/admin/update_post.rb +44 -0
  7. data/app/controllers/decidim/blogs/admin/application_controller.rb +22 -0
  8. data/app/controllers/decidim/blogs/admin/posts_controller.rb +64 -0
  9. data/app/controllers/decidim/blogs/application_controller.rb +14 -0
  10. data/app/controllers/decidim/blogs/posts_controller.rb +35 -0
  11. data/app/events/decidim/blogs/create_post_event.rb +8 -0
  12. data/app/forms/decidim/blogs/admin/post_form.rb +18 -0
  13. data/app/helpers/decidim/blogs/admin/posts_helper.rb +25 -0
  14. data/app/helpers/decidim/blogs/application_helper.rb +13 -0
  15. data/app/helpers/decidim/blogs/posts_helper.rb +25 -0
  16. data/app/models/decidim/blogs/application_record.rb +10 -0
  17. data/app/models/decidim/blogs/post.rb +44 -0
  18. data/app/presenters/decidim/module/blogs/post_presenter.rb +14 -0
  19. data/app/views/decidim/blogs/admin/posts/_form.html.erb +13 -0
  20. data/app/views/decidim/blogs/admin/posts/edit.html.erb +7 -0
  21. data/app/views/decidim/blogs/admin/posts/index.html.erb +53 -0
  22. data/app/views/decidim/blogs/admin/posts/new.html.erb +7 -0
  23. data/app/views/decidim/blogs/posts/_author_data.html.erb +7 -0
  24. data/app/views/decidim/blogs/posts/_datetime.html.erb +1 -0
  25. data/app/views/decidim/blogs/posts/_posts.html.erb +20 -0
  26. data/app/views/decidim/blogs/posts/_sidebar_blog.html.erb +21 -0
  27. data/app/views/decidim/blogs/posts/index.html.erb +10 -0
  28. data/app/views/decidim/blogs/posts/show.html.erb +23 -0
  29. data/config/locales/ca.yml +69 -0
  30. data/config/locales/en.yml +70 -0
  31. data/config/locales/es.yml +69 -0
  32. data/config/locales/eu.yml +69 -0
  33. data/config/locales/fi.yml +69 -0
  34. data/config/locales/fr.yml +69 -0
  35. data/config/locales/gl.yml +69 -0
  36. data/config/locales/it.yml +69 -0
  37. data/config/locales/nl.yml +69 -0
  38. data/config/locales/pl.yml +69 -0
  39. data/config/locales/pt-BR.yml +69 -0
  40. data/config/locales/pt.yml +69 -0
  41. data/config/locales/ru.yml +5 -0
  42. data/config/locales/sv.yml +69 -0
  43. data/config/locales/uk.yml +6 -0
  44. data/db/migrate/20171129131353_create_decidim_blogs_posts.rb +12 -0
  45. data/db/migrate/20171211084630_add_author_to_decidim_blogs_posts.rb +7 -0
  46. data/lib/decidim/blogs.rb +13 -0
  47. data/lib/decidim/blogs/admin.rb +10 -0
  48. data/lib/decidim/blogs/admin_engine.rb +22 -0
  49. data/lib/decidim/blogs/component.rb +65 -0
  50. data/lib/decidim/blogs/engine.rb +24 -0
  51. data/lib/decidim/blogs/test/factories.rb +20 -0
  52. data/lib/decidim/blogs/version.rb +10 -0
  53. metadata +235 -0
@@ -0,0 +1,69 @@
1
+ fi:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Haluatko varmasti poistaa tämän viestin?
6
+ destroy: Poistaa
7
+ edit: Muokata
8
+ new: Uusi
9
+ title: Toimet
10
+ admin:
11
+ models:
12
+ components:
13
+ body: ruumis
14
+ post:
15
+ name: Lähettää
16
+ posts:
17
+ create:
18
+ invalid: Ongelma tämän viestin luomisessa
19
+ success: Lähetys onnistuneesti luotu
20
+ destroy:
21
+ success: Viesti onnistuneesti poistettu
22
+ edit:
23
+ save: Päivittää
24
+ index:
25
+ title: Viestejä
26
+ new:
27
+ create: Luoda
28
+ title: Luo viesti
29
+ update:
30
+ invalid: Virhe tallentamassa viestiä on tapahtunut.
31
+ success: Viestin tallennettu onnistuneesti
32
+ models:
33
+ post:
34
+ fields:
35
+ author: kirjailija
36
+ body: ruumis
37
+ created_at: Luotu osoitteessa
38
+ title: otsikko
39
+ posts:
40
+ author_data:
41
+ comments: kommentit
42
+ sidebar_blog:
43
+ comments: kommentit
44
+ most_commented_posts: Eniten kommentoituja viestejä
45
+ read_more: Lue lisää
46
+ components:
47
+ blogs:
48
+ name: blogi
49
+ settings:
50
+ global:
51
+ announcement: Ilmoitus
52
+ comments_enabled: Kommentit käytössä
53
+ step:
54
+ announcement: Ilmoitus
55
+ comments_blocked: Kommentit on estetty
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: Viesti "%{resource_title}" on julkaistu kohdassa "%{participatory_space_title}", jota seuraat.
60
+ email_outro: Olet saanut tämän ilmoituksen, koska seuraat "%{participatory_space_title}". Voit purkaa sen edellisestä linkistä.
61
+ email_subject: Uusi viesti julkaistiin %{participatory_space_title}
62
+ notification_title: Viesti <a href="%{resource_path}">%{resource_title}</a> on julkaistu %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Viestejä
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Viestejä
@@ -0,0 +1,69 @@
1
+ fr:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Es-tu sur de vouloir supprimer cette annonce?
6
+ destroy: Effacer
7
+ edit: modifier
8
+ new: Nouveau
9
+ title: actes
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Corps
14
+ post:
15
+ name: Poster
16
+ posts:
17
+ create:
18
+ invalid: Un problème est survenu lors de la création de ce post
19
+ success: Poste créé avec succès
20
+ destroy:
21
+ success: Message supprimé avec succès
22
+ edit:
23
+ save: Mettre à jour
24
+ index:
25
+ title: Des postes
26
+ new:
27
+ create: Créer
28
+ title: Créer un post
29
+ update:
30
+ invalid: Il y a eu des erreurs lors de l'enregistrement du message.
31
+ success: Message enregistré avec succès
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Auteur
36
+ body: Corps
37
+ created_at: Créé à
38
+ title: Titre
39
+ posts:
40
+ author_data:
41
+ comments: commentaires
42
+ sidebar_blog:
43
+ comments: commentaires
44
+ most_commented_posts: Messages les plus commentés
45
+ read_more: Lire la suite
46
+ components:
47
+ blogs:
48
+ name: Blog
49
+ settings:
50
+ global:
51
+ announcement: Annonce
52
+ comments_enabled: Commentaires activés
53
+ step:
54
+ announcement: Annonce
55
+ comments_blocked: Commentaires bloqués
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: Le message "%{resource_title}" a été publié dans "%{participatory_space_title}" que vous suivez.
60
+ email_outro: Vous avez reçu cette notification parce que vous suivez "%{participatory_space_title}". Vous pouvez le retirer du lien précédent.
61
+ email_subject: Nouveau message publié dans %{participatory_space_title}
62
+ notification_title: Le message <a href="%{resource_path}">%{resource_title}</a> a été publié en %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Des postes
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Des postes
@@ -0,0 +1,69 @@
1
+ gl:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Estás seguro de que queres eliminar esta publicación?
6
+ destroy: Eliminar
7
+ edit: Editar
8
+ new: Novo
9
+ title: Accións
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Corpo
14
+ post:
15
+ name: Publicar
16
+ posts:
17
+ create:
18
+ invalid: Produciuse un problema ao crear esta publicación
19
+ success: Publicouse a publicación correctamente
20
+ destroy:
21
+ success: Publicouse correctamente a eliminación
22
+ edit:
23
+ save: Actualización
24
+ index:
25
+ title: Publicacións
26
+ new:
27
+ create: Crear
28
+ title: Crear unha publicación
29
+ update:
30
+ invalid: Produciuse un erro ao gardar a publicación.
31
+ success: Publicouse o envío con éxito
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Autor
36
+ body: Corpo
37
+ created_at: Creado en
38
+ title: título
39
+ posts:
40
+ author_data:
41
+ comments: comentarios
42
+ sidebar_blog:
43
+ comments: comentarios
44
+ most_commented_posts: A maioría das publicacións comentadas
45
+ read_more: Le máis
46
+ components:
47
+ blogs:
48
+ name: Blog
49
+ settings:
50
+ global:
51
+ announcement: Anuncio
52
+ comments_enabled: Comentarios habilitados
53
+ step:
54
+ announcement: Anuncio
55
+ comments_blocked: Comentarios bloqueados
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: A publicación "%{resource_title}" publicouse en "%{participatory_space_title}" que estás seguindo.
60
+ email_outro: Recibiches esta notificación porque estás seguindo "%{participatory_space_title}". Podes deixar de seguir desde a ligazón anterior.
61
+ email_subject: Nova publicación publicada en %{participatory_space_title}
62
+ notification_title: A publicación <a href="%{resource_path}">%{resource_title}</a> publicouse en %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Publicacións
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Publicacións
@@ -0,0 +1,69 @@
1
+ it:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Sei sicuro di voler eliminare questo post?
6
+ destroy: Elimina
7
+ edit: modificare
8
+ new: Nuovo
9
+ title: Azioni
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Corpo
14
+ post:
15
+ name: Inviare
16
+ posts:
17
+ create:
18
+ invalid: Si è verificato un problema durante la creazione di questo post
19
+ success: Post creato con successo
20
+ destroy:
21
+ success: Posta cancellata con successo
22
+ edit:
23
+ save: Aggiornare
24
+ index:
25
+ title: Messaggi
26
+ new:
27
+ create: Creare
28
+ title: Crea un post
29
+ update:
30
+ invalid: Si sono verificati errori durante il salvataggio del post.
31
+ success: Post salvato correttamente
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Autore
36
+ body: Corpo
37
+ created_at: Creato a
38
+ title: titolo
39
+ posts:
40
+ author_data:
41
+ comments: Commenti
42
+ sidebar_blog:
43
+ comments: Commenti
44
+ most_commented_posts: La maggior parte dei post commentati
45
+ read_more: Leggi di più
46
+ components:
47
+ blogs:
48
+ name: blog
49
+ settings:
50
+ global:
51
+ announcement: Annuncio
52
+ comments_enabled: Commenti abilitati
53
+ step:
54
+ announcement: Annuncio
55
+ comments_blocked: Commenti bloccati
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: Il post "%{resource_title}" è stato pubblicato in "%{participatory_space_title}" che stai seguendo.
60
+ email_outro: Hai ricevuto questa notifica perché stai seguendo "%{participatory_space_title}". Puoi smettere di seguirlo dal link precedente.
61
+ email_subject: Nuovo post pubblicato su %{participatory_space_title}
62
+ notification_title: Il post <a href="%{resource_path}">%{resource_title}</a> è stato pubblicato su %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Messaggi
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Messaggi
@@ -0,0 +1,69 @@
1
+ nl:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Weet je zeker dat je dit bericht wilt verwijderen?
6
+ destroy: Verwijder
7
+ edit: Bewerk
8
+ new: Nieuw
9
+ title: acties
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Tekstgedeelte
14
+ post:
15
+ name: Post
16
+ posts:
17
+ create:
18
+ invalid: Er is een probleem opgetreden bij het maken van dit bericht
19
+ success: Post succesvol aangemaakt
20
+ destroy:
21
+ success: Post succesvol verwijderd
22
+ edit:
23
+ save: Bijwerken
24
+ index:
25
+ title: berichten
26
+ new:
27
+ create: creëren
28
+ title: Maak bericht
29
+ update:
30
+ invalid: Er zijn fouten opgetreden bij het opslaan van het bericht.
31
+ success: Bericht succesvol opgeslagen
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Auteur
36
+ body: Tekstgedeelte
37
+ created_at: Aangemaakt op
38
+ title: titel
39
+ posts:
40
+ author_data:
41
+ comments: reacties
42
+ sidebar_blog:
43
+ comments: reacties
44
+ most_commented_posts: Bericht met meeste reacties
45
+ read_more: Lees meer
46
+ components:
47
+ blogs:
48
+ name: blog
49
+ settings:
50
+ global:
51
+ announcement: Aankondiging
52
+ comments_enabled: Reacties ingeschakeld
53
+ step:
54
+ announcement: Aankondiging
55
+ comments_blocked: Reacties geblokkeerd
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: Het bericht "%{resource_title}" is gepubliceerd in "%{participatory_space_title}" dat je volgt.
60
+ email_outro: Je hebt deze melding ontvangen omdat je "%{participatory_space_title}" volgt. Ontvolgen kan door te klikken op de voorgaande link.
61
+ email_subject: Nieuw bericht gepubliceerd in %{participatory_space_title}
62
+ notification_title: Het bericht <a href="%{resource_path}">%{resource_title}</a> is gepubliceerd in %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: berichten
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: berichten
@@ -0,0 +1,69 @@
1
+ pl:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Czy na pewno chcesz usunąć ten wpis?
6
+ destroy: Kasować
7
+ edit: Edytować
8
+ new: Nowy
9
+ title: działania
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Ciało
14
+ post:
15
+ name: Stanowisko
16
+ posts:
17
+ create:
18
+ invalid: Podczas tworzenia tego posta wystąpił problem
19
+ success: Po pomyślnym utworzeniu
20
+ destroy:
21
+ success: Wpis został pomyślnie usunięty
22
+ edit:
23
+ save: Aktualizacja
24
+ index:
25
+ title: Posty
26
+ new:
27
+ create: Stwórz
28
+ title: Utwórz wpis
29
+ update:
30
+ invalid: Podczas zapisywania posta wystąpiły błędy.
31
+ success: Zapis został pomyślnie zapisany
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Autor
36
+ body: Ciało
37
+ created_at: Utworzono w
38
+ title: tytuł
39
+ posts:
40
+ author_data:
41
+ comments: komentarze
42
+ sidebar_blog:
43
+ comments: komentarze
44
+ most_commented_posts: Najczęściej komentowane posty
45
+ read_more: Czytaj więcej
46
+ components:
47
+ blogs:
48
+ name: Blog
49
+ settings:
50
+ global:
51
+ announcement: Ogłoszenie
52
+ comments_enabled: Komentarze włączone
53
+ step:
54
+ announcement: Ogłoszenie
55
+ comments_blocked: Komentarze zablokowane
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: Post "%{resource_title}" został opublikowany w "%{participatory_space_title}", którego obserwujesz.
60
+ email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz "%{participatory_space_title}". Możesz przestać go obserwować z poprzedniego linku.
61
+ email_subject: Nowy wpis opublikowany w %{participatory_space_title}
62
+ notification_title: Post <a href="%{resource_path}">%{resource_title}</a> został opublikowany w %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Posty
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Posty
@@ -0,0 +1,69 @@
1
+ pt-BR:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Tem certeza de que deseja excluir esta postagem?
6
+ destroy: Excluir
7
+ edit: Editar
8
+ new: Novo
9
+ title: Ações
10
+ admin:
11
+ models:
12
+ components:
13
+ body: Corpo
14
+ post:
15
+ name: Postar
16
+ posts:
17
+ create:
18
+ invalid: Houve um problema ao criar esta postagem
19
+ success: Post criado com sucesso
20
+ destroy:
21
+ success: Postagem excluída com sucesso
22
+ edit:
23
+ save: Atualizar
24
+ index:
25
+ title: Postagens
26
+ new:
27
+ create: Crio
28
+ title: Criar post
29
+ update:
30
+ invalid: Houve erros ao salvar a postagem.
31
+ success: Post salvo com sucesso
32
+ models:
33
+ post:
34
+ fields:
35
+ author: Autor
36
+ body: Corpo
37
+ created_at: Criado em
38
+ title: título
39
+ posts:
40
+ author_data:
41
+ comments: comentários
42
+ sidebar_blog:
43
+ comments: comentários
44
+ most_commented_posts: Posts mais comentados
45
+ read_more: Consulte Mais informação
46
+ components:
47
+ blogs:
48
+ name: Blog
49
+ settings:
50
+ global:
51
+ announcement: Anúncio
52
+ comments_enabled: Comentários habilitados
53
+ step:
54
+ announcement: Anúncio
55
+ comments_blocked: Comentários bloqueados
56
+ events:
57
+ blogs:
58
+ post_created:
59
+ email_intro: A postagem "%{resource_title}" foi publicada em "%{participatory_space_title}" que você está seguindo.
60
+ email_outro: Você recebeu esta notificação porque está seguindo "%{participatory_space_title}". Você pode deixar de segui-lo no link anterior.
61
+ email_subject: Nova postagem publicada em %{participatory_space_title}
62
+ notification_title: A postagem <a href="%{resource_path}">%{resource_title}</a> foi publicada em %{participatory_space_title}
63
+ participatory_processes:
64
+ statistics:
65
+ posts_count: Postagens
66
+ pages:
67
+ home:
68
+ statistics:
69
+ posts_count: Postagens