refinerycms-blog 1.1 → 1.2

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 (51) hide show
  1. data/app/controllers/admin/blog/posts_controller.rb +53 -0
  2. data/app/controllers/admin/blog/settings_controller.rb +14 -2
  3. data/app/controllers/blog/posts_controller.rb +18 -7
  4. data/app/helpers/blog_posts_helper.rb +23 -7
  5. data/app/models/blog_category.rb +4 -11
  6. data/app/models/blog_comment.rb +11 -3
  7. data/app/models/blog_post.rb +35 -14
  8. data/app/models/categorization.rb +5 -0
  9. data/app/views/admin/blog/_submenu.html.erb +37 -27
  10. data/app/views/admin/blog/categories/_category.html.erb +3 -3
  11. data/app/views/admin/blog/categories/_form.html.erb +1 -1
  12. data/app/views/admin/blog/categories/index.html.erb +2 -6
  13. data/app/views/admin/blog/comments/_comment.html.erb +2 -2
  14. data/app/views/admin/blog/posts/_form.html.erb +1 -1
  15. data/app/views/admin/blog/posts/_post.html.erb +5 -5
  16. data/app/views/admin/blog/posts/index.html.erb +2 -6
  17. data/app/views/admin/blog/posts/uncategorized.html.erb +26 -0
  18. data/app/views/admin/blog/settings/notification_recipients.html.erb +1 -1
  19. data/app/views/blog/posts/_nav.html.erb +9 -11
  20. data/app/views/blog/posts/_post.html.erb +5 -7
  21. data/app/views/blog/posts/archive.html.erb +8 -6
  22. data/app/views/blog/posts/index.html.erb +10 -7
  23. data/app/views/blog/posts/show.html.erb +5 -4
  24. data/app/views/blog/shared/_categories.html.erb +10 -8
  25. data/app/views/blog/shared/_post.html.erb +9 -7
  26. data/app/views/blog/shared/_posts.html.erb +10 -8
  27. data/app/views/blog/shared/_rss_feed.html.erb +1 -1
  28. data/changelog.md +24 -0
  29. data/config/locales/de.yml +128 -0
  30. data/config/locales/en.yml +17 -3
  31. data/config/locales/es.yml +122 -0
  32. data/config/locales/fr.yml +125 -0
  33. data/config/locales/it.yml +1 -0
  34. data/config/locales/pl.yml +134 -0
  35. data/config/locales/pt-BR.yml +125 -0
  36. data/config/locales/ru.yml +125 -0
  37. data/config/routes.rb +5 -2
  38. data/features/authors.feature +15 -0
  39. data/features/support/factories/blog_categories.rb +1 -1
  40. data/features/support/factories/blog_posts.rb +3 -1
  41. data/features/support/step_definitions/authors_steps.rb +7 -0
  42. data/lib/gemspec.rb +1 -0
  43. data/lib/generators/refinerycms_blog/templates/db/migrate/migration_number_add_user_id_to_blog_posts.rb +11 -0
  44. data/lib/generators/refinerycms_blog_generator.rb +14 -7
  45. data/lib/refinerycms-blog.rb +2 -6
  46. data/public/javascripts/refinery/refinerycms-blog.js +3 -3
  47. data/spec/models/blog_categories_spec.rb +28 -8
  48. data/spec/models/blog_posts_spec.rb +167 -7
  49. metadata +16 -20
  50. data/Gemfile +0 -2
  51. data/Gemfile.lock +0 -11
@@ -13,7 +13,7 @@ en:
13
13
  comments:
14
14
  approved: 'The comment from "%{author}" has been approved.'
15
15
  comment:
16
- view_live: View this comment live <br/><em>(opens in a new window)</em>
16
+ view_live_html: View this comment live <br/><em>(opens in a new window)</em>
17
17
  read: Read this comment
18
18
  reject: Reject this comment
19
19
  approve: Approve this comment
@@ -40,8 +40,10 @@ en:
40
40
  published_at: Publish Date
41
41
  index:
42
42
  no_items_yet: 'There are no Blog Posts yet. Click "%{create}" to add your first blog post.'
43
+ uncategorized:
44
+ no_items_yet: 'There are no Uncategorized Blog Posts.'
43
45
  post:
44
- view_live: View this blog post live <br/><em>(opens in a new window)</em>
46
+ view_live_html: View this blog post live <br/><em>(opens in a new window)</em>
45
47
  edit: Edit this blog post
46
48
  delete: Remove this blog post forever
47
49
  settings:
@@ -67,10 +69,12 @@ en:
67
69
  title: Posts
68
70
  manage: Manage posts
69
71
  new: Create new post
72
+ uncategorized: Uncategorized posts
70
73
  settings:
71
74
  title: Settings
72
75
  moderation: Moderation
73
76
  update_notified: Update who gets notified
77
+ comments: Comments
74
78
  blog:
75
79
  comment_mailer:
76
80
  notification:
@@ -88,6 +92,7 @@ en:
88
92
  title: Categories
89
93
  rss_feed:
90
94
  title: RSS Feed
95
+ subscribe: Subscribe
91
96
  posts:
92
97
  other: Other Posts
93
98
  created_at: 'Posted on %{when}'
@@ -95,20 +100,29 @@ en:
95
100
  comments:
96
101
  singular: comment
97
102
  none: no comments
103
+ archives: Archives
98
104
  categories:
99
105
  show:
100
106
  no_posts: There are no posts here yet.
101
107
  posts:
108
+ post:
109
+ filed_in: Filed in
102
110
  comment: comment
103
111
  comments:
104
112
  by: 'Posted by %{who}'
105
113
  time_ago: '%{time} ago'
106
114
  thank_you: 'Thank you for commenting.'
107
115
  thank_you_moderated: 'Thank you for commenting. Your message has been placed in the moderation queue and will appear shortly.'
116
+ index:
117
+ no_blog_articles_yet: There are no blog articles posted yet. Stay tuned.
108
118
  show:
119
+ blog_home: Blog Home
109
120
  comments:
110
121
  title: Comments
111
122
  add: Make a Comment
112
123
  other: Other Blog Posts
113
124
  filed_in: Filed in
114
- submit: Send comment
125
+ submit: Send comment
126
+ archive:
127
+ blog_archive_for: Blog Archive for %{date}
128
+ no_blog_articles_posted: There are no blog articles posted for %{date}. Stay tuned.
@@ -0,0 +1,122 @@
1
+ es:
2
+ plugins:
3
+ refinerycms_blog:
4
+ title: Blog
5
+ admin:
6
+ blog:
7
+ categories:
8
+ category:
9
+ edit: Editar esta categoría
10
+ delete: Borrar esta categoría para siempre
11
+ index:
12
+ no_items_yet: Todavía no hay categorías. Haz click en "%{create}" para añadir la primera.
13
+ comments:
14
+ approved: El comentario de "%{author}" ha sido aprobado.
15
+ comment:
16
+ view_live_html:Ver este comentario<br/><em>(se abrirá en una ventana nueva)</em>
17
+ read: Leer este comentario
18
+ reject: Rechazar este comentario
19
+ approve: Aprovar este comentario
20
+ rejected: El comentario de "%{author}" ha sido rechazado.
21
+ index:
22
+ no_items_yet: No hay comentarios %{type}.
23
+ show:
24
+ comment: Comentario
25
+ blog_post: Entrada en el Blog
26
+ from: Enviado por
27
+ date: Enviado el
28
+ message: Mensaje
29
+ details: Detalles
30
+ age: Edad
31
+ actions: Acciones
32
+ back: Volver a todos los comentarios
33
+ reject: Rechazar este comentario
34
+ approve: Aprovar este comentario
35
+ posts:
36
+ form:
37
+ advanced_options: Opciones avanzadas
38
+ toggle_advanced_options: Click para acceder a las opciones de menú y etiquetas
39
+ save_as_draft: Guardar Borrador
40
+ published_at: Fecha de publicación
41
+ index:
42
+ no_items_yet: Aún no hay entradas en el Blog. Haz click en "%{create}" para añadir el primero
43
+ post:
44
+ view_live_html: Ver entrada <br/><em>(se abrirá en una ventana nueva)</em>
45
+ edit: Editar esta entrada
46
+ delete: Eliminar esta entrada para siempre
47
+ settings:
48
+ notification_recipients:
49
+ value: Enviar notificaciones a
50
+ explanation: Cada vez que alguien comente en una entrada, Refinery envia un email para avisar de que hay un nuevo comentario.
51
+ hint: Refinery te avisará con un email cada vez que haya un nuevo comentario en tu Blog.
52
+ example: 'Si deseas que las notificaciones lleguen a más de una cuenta, puedes usar comas para separarlas (pepe@direccionpersonal.com, jose@direccionlaboral.com, ...)'
53
+ updated: Las notifiaciones han sido enviadas a "%{recipients}"
54
+ submenu:
55
+ categories:
56
+ title: Categorías
57
+ manage: Gestionar
58
+ new: Añadir categoría
59
+ comments:
60
+ title: Comentarios
61
+ title_with_count: Comentarios (%{new_count} nuevos)
62
+ new: Nuevo
63
+ unmoderated: Nuevos
64
+ approved: Aprobados
65
+ rejected: Rechazados
66
+ posts:
67
+ title: Entradas
68
+ manage: Gestionar entradas
69
+ new: Crear nueva entrada
70
+ settings:
71
+ title: Configuración
72
+ moderation: Moderación
73
+ update_notified: ¿Quién recibe las notificaciones?
74
+ comments: Comentarios
75
+ blog:
76
+ comment_mailer:
77
+ notification:
78
+ greeting: Hola
79
+ you_recieved_new_comment: Han hecho un nuevo comentario en una de las entradas de tu Blog.
80
+ comment_starts: --- inicio comentario ---
81
+ comment_ends: --- fin comentario ---
82
+ from: De
83
+ email: Email
84
+ message: Mensaje
85
+ closing_line: Saludos
86
+ ps: P.D. Recuerda que puedes ver todos los comentarios en el apartado "Comentarios" dentro de la sección "Blog".
87
+ shared:
88
+ categories:
89
+ title: Categorías
90
+ rss_feed:
91
+ title: Feed RSS
92
+ subscribe: Suscribirse
93
+ posts:
94
+ other: Otras entradas
95
+ created_at: Enviado hace %{when}
96
+ read_more: Leer más
97
+ comments:
98
+ singular: comentario
99
+ none: no hay comentarios
100
+ categories:
101
+ show:
102
+ no_posts: Todavía no hay entradas.
103
+ posts:
104
+ comment: comentario
105
+ comments:
106
+ by: Enviado por %{who}
107
+ time_ago: Hace %{time}
108
+ thank_you: Gracias por tu comentario.
109
+ thank_you_moderated: Gracias por tu comentario. Ha sido enviado a la cola de moderación y, si lo aprobamos, aparecerá dentro de poco.
110
+ index:
111
+ no_blog_articles_yet: Todavía no hay artículos. ¡Pero vuelve pronto!
112
+ show:
113
+ blog_home: Página principal del Blog
114
+ comments:
115
+ title: Comentarios
116
+ add: Envía tu comentario
117
+ other: Otros posts
118
+ filed_in: Envía en
119
+ submit: Enviar comentario
120
+ archive:
121
+ blog_archive_for: Archivo del blog en %{date}
122
+ no_blog_articles_posted: No hay entradas publicadas en %{date}.
@@ -0,0 +1,125 @@
1
+ fr:
2
+ plugins:
3
+ refinerycms_blog:
4
+ title: Blog
5
+ admin:
6
+ blog:
7
+ categories:
8
+ category:
9
+ edit: Modifier cette catégorie
10
+ delete: Supprimer cett catégorie
11
+ index:
12
+ no_items_yet: 'Il n''y a aucune catégorie pour le moment. Cliquez sur "%{create}" pour ajouter votre première catégorie.'
13
+ comments:
14
+ approved: 'Le commentaire de "%{author}" a été approuvé.'
15
+ comment:
16
+ view_live_html: Voir ce commentaire <br/><em>(Ouvre une nouvelle fenêtre)</em>
17
+ read: Lire ce commentaire
18
+ reject: Rejeter ce commentaire
19
+ approve: Approuver ce commentaire
20
+ rejected: 'Le commentaire de "%{author}" a été rejeté.'
21
+ index:
22
+ no_items_yet: 'Il n''y aucun %{type} de commentaires.'
23
+ show:
24
+ comment: Commenter
25
+ blog_post: Article
26
+ from: Écrit par
27
+ date: Écrit le
28
+ message: Commentaire
29
+ details: Détails
30
+ age: Âge
31
+ actions: Actions
32
+ back: Retour à la liste des commentaires
33
+ reject: Rejeter ce commentaire
34
+ approve: Approuver ce commentaire
35
+ posts:
36
+ form:
37
+ advanced_options: Options avancées
38
+ toggle_advanced_options: Cliquez ici pour accéder aux paramêtres des meta-tags et au menu des options
39
+ save_as_draft: Enregistrer comme Brouillon
40
+ published_at: Date de publication
41
+ index:
42
+ no_items_yet: 'Il n''y a aucun article pour l''instant. Cliquez sur "%{create}" pour ajouter votre premier article.'
43
+ post:
44
+ view_live_html: Voir cet article sur le site<br/><em>(Ouvre une nouvelle fenêtre)</em>
45
+ edit: Modifier cet article
46
+ delete: Supprimer cet article
47
+ settings:
48
+ notification_recipients:
49
+ value: Envoyer les notifications à
50
+ explanation: 'Chaque fois que quelqu''un écrit un commentaire sur un article, Refinery envoie un e-mail pour prévenir qu''il y a un nouveau commentaire.'
51
+ hint: 'Quand un nouveau commentaire est ajouté, Refinery vous enverra un e-mail de notifications.'
52
+ example: "Entrez une/des adresse(s) e-mail comme : jack@work.com, jill@office.com"
53
+ updated: 'Les destinataires des notifications sont définis : "%{recipients}"'
54
+ submenu:
55
+ categories:
56
+ title: Catégories
57
+ manage: Gérer
58
+ new: Créer une nouvelle catégorie
59
+ comments:
60
+ title: Commentaires
61
+ title_with_count: 'Commentaires (%{new_count} nouveau(x))'
62
+ new: Nouveau
63
+ unmoderated: Nouveau
64
+ approved: Approuvé
65
+ rejected: Rejeté
66
+ posts:
67
+ title: Articles
68
+ manage: Gérer les articles
69
+ new: Créer un nouvel article
70
+ settings:
71
+ title: Paramêtres
72
+ moderation: Modération
73
+ update_notified: Mettre à jour les personnes à notifier
74
+ comments: Commentaires
75
+ blog:
76
+ comment_mailer:
77
+ notification:
78
+ greeting: Bonjour
79
+ you_recieved_new_comment: Il y a un nouveau commentaire sur le blog.
80
+ comment_starts: --- comment starts ---
81
+ comment_ends: --- comment ends ---
82
+ from: De
83
+ email: Email
84
+ message: Message
85
+ closing_line: Cordialement
86
+ ps: P.S. Tous les commentaires sont stockés dans la section "Blog" de Refinery dans le menu "Commentaires" si vous voulez les revoir plus tard.
87
+ shared:
88
+ categories:
89
+ title: Catégories
90
+ rss_feed:
91
+ title: RSS Feed
92
+ subscribe: Souscrire
93
+ posts:
94
+ other: Autres articles
95
+ created_at: 'Écrit le %{when}'
96
+ read_more: Lire la suite
97
+ comments:
98
+ singular: commentaire
99
+ none: aucun commentaire
100
+ archives: Archives
101
+ categories:
102
+ show:
103
+ no_posts: 'Il n''y a aucun article pour cette catégorie.'
104
+ posts:
105
+ post:
106
+ filed_in: Classé dans
107
+ comment: commentaire
108
+ comments:
109
+ by: 'Écrit par %{who}'
110
+ time_ago: 'il y a %{time} '
111
+ thank_you: 'Merci pour votre commentaire.'
112
+ thank_you_moderated: 'Merci pour votre commentaire. Votre message a été placé en attente de validation et apparaitra bientôt.'
113
+ index:
114
+ no_blog_articles_yet: 'Il n''y a aucun article pour l''instant. Restez en alerte.'
115
+ show:
116
+ blog_home: Accueil du blog
117
+ comments:
118
+ title: Commentaires
119
+ add: Ajouter un commentaire
120
+ other: Autres articles
121
+ filed_in: Classé dans
122
+ submit: Envoyer le commentaire
123
+ archive:
124
+ blog_archive_for: Archive du blog pour le %{date}
125
+ no_blog_articles_posted: 'Il n''y a aucun article pour la date du %{date}. Restez à l''écoute.'
@@ -71,6 +71,7 @@ it:
71
71
  title: Impostazioni
72
72
  moderation: Moderazione
73
73
  update_notified: Aggiornare destinatario notifica
74
+ comments: Commenti
74
75
  blog:
75
76
  shared:
76
77
  categories:
@@ -0,0 +1,134 @@
1
+ pl:
2
+ activerecord:
3
+ attributes:
4
+ blog_comment:
5
+ name: "Imię"
6
+ email: "Email"
7
+ message: "Treść"
8
+ plugins:
9
+ refinerycms_blog:
10
+ title: Blog
11
+ admin:
12
+ blog:
13
+ categories:
14
+ category:
15
+ edit: Edytuj tą kategorię
16
+ delete: Usuń na zawsze
17
+ index:
18
+ no_items_yet: 'W tej chwili nie ma żadnych kategorii. Kliknij "%{create}" aby dodać pierwszą.'
19
+ comments:
20
+ approved: 'Komentarz "%{author}" został zaakceptowany.'
21
+ comment:
22
+ view_live: Zobacz ten komentarz na żywo<br/><em>(otwiera w nowym oknie)</em>
23
+ read: Pokaż ten komentarz
24
+ reject: Odrzuć ten komentarz
25
+ approve: Zaakceptuj ten komentarz
26
+ rejected: 'Komentarz "%{author}" został odrzucony.'
27
+ index:
28
+ no_items_yet: 'Nie ma więcej komentarzy typu "%{type}".'
29
+ show:
30
+ comment: Komentarz
31
+ blog_post: Post
32
+ from: Autor
33
+ date: Data
34
+ message: Komentarz
35
+ details: Szczegóły
36
+ age: Wiek
37
+ actions: Akcje
38
+ back: Powrót do listy komentarzy
39
+ reject: Odrzuć ten komentarz
40
+ approve: Zaakceptuj ten komentarz
41
+ posts:
42
+ form:
43
+ advanced_options: Opcje zaawansowane
44
+ toggle_advanced_options: Kliknij, aby zarządzać meta-ustawieniami
45
+ save_as_draft: Zapisz jako szkic
46
+ published_at: Data publikacji
47
+ index:
48
+ no_items_yet: 'Na blogu nie ma jeszcze żadnych wpisów. Kliknij "%{create}" aby dodać pierwszy post.'
49
+ uncategorized:
50
+ no_items_yet: 'Brak nieskategoryzowanych wpisów na blogu.'
51
+ post:
52
+ view_live: Zobacz ten post na żywo<br/><em>(otwiera w nowym oknie)</em>
53
+ edit: Edytuj ten post
54
+ delete: Usuń ten post na zawsze
55
+ settings:
56
+ notification_recipients:
57
+ value: Powiadomienia wysyłane do
58
+ explanation: 'Gdy zostanie dodany nowy komentarz, system wyśle powiadomienie przez e-mail.'
59
+ hint: 'Gdy zostanie dodany nowy komentarz, system wyśle powiadomienie przez e-mail.'
60
+ example: "Podaj adresy e-mail oddzielone przecinkiem, np: jack@work.com, jill@office.com"
61
+ updated: 'Powiadomienia będą wysyłane do "%{recipients}"'
62
+ submenu:
63
+ categories:
64
+ title: Kategorie
65
+ manage: Zarządzaj kategoriami
66
+ new: Dodaj nową kategorię
67
+ comments:
68
+ title: Komentarze
69
+ title_with_count: 'Komentarze (%{new_count} nowych)'
70
+ new: Nowe
71
+ unmoderated: Nowe
72
+ approved: Zaakceptowane
73
+ rejected: Odrzucone
74
+ posts:
75
+ title: Posty
76
+ manage: Zarządzaj postami
77
+ new: Dodaj nowy post
78
+ uncategorized: Posty bez kategorii
79
+ settings:
80
+ title: Ustawienia
81
+ moderation: Wł./wył. moderację
82
+ update_notified: Powiadamianie przez e-mail
83
+ comments: Komentarze
84
+ blog:
85
+ comment_mailer:
86
+ notification:
87
+ greeting: Witaj:)
88
+ you_recieved_new_comment: Właśnie otrzymałeś nowy komentarz na swojej stronie!
89
+ comment_starts: --- początek komentarza ---
90
+ comment_ends: --- koniec komentarza ---
91
+ from: Od
92
+ email: Email
93
+ message: Treść
94
+ closing_line: Pozdrawiamy
95
+ ps: P.S. Wszystkie komentarze przechowywane są w panelu zarządzania, w sekcji "Blog" i podmenu "Komentarze".
96
+ shared:
97
+ categories:
98
+ title: Kategorie
99
+ rss_feed:
100
+ title: RSS Feed
101
+ subscribe: Sukskrybuj
102
+ posts:
103
+ other: Pozostałe posty
104
+ created_at: 'Data: %{when}'
105
+ read_more: Więcej
106
+ comments:
107
+ singular: komentarz
108
+ none: brak komentarzy
109
+ archives: Archiwum
110
+ categories:
111
+ show:
112
+ no_posts: Nie ma jeszcze żadnych postów.
113
+ posts:
114
+ post:
115
+ filed_in: 'kategorie:'
116
+ comment: komentarz
117
+ comments:
118
+ by: 'Autor: %{who}'
119
+ time_ago: '%{time} temu'
120
+ thank_you: 'Dziękujemy za Twój komentarz.'
121
+ thank_you_moderated: 'Dziękujemy za Twój komentarz. Został on przekazany do moderacji i niedługo pojawi się na stronie.'
122
+ index:
123
+ no_blog_articles_yet: W tej chwili nie ma jeszcze żadnych postów. Cierpliwości:)
124
+ show:
125
+ blog_home: Blog
126
+ comments:
127
+ title: Komentarze
128
+ add: Dodaj komentarz
129
+ other: Pozostałe wpisy
130
+ filed_in: 'kategorie:'
131
+ submit: Dodaj komentarz
132
+ archive:
133
+ blog_archive_for: Archiwum dla %{date}
134
+ no_blog_articles_posted: Brak wpisów dla daty %{date}.