From 0310b489542106e6bcb5d8db6327af86daeddb5b Mon Sep 17 00:00:00 2001 From: Guirec CORBEL Date: Sun, 29 May 2011 14:34:53 -0400 Subject: add some options for translation and translate in french --- app/views/blog/shared/_post.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/blog/shared') diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 716c1ad..05c6af2 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -4,8 +4,8 @@

<%= link_to post.title, blog_post_url(post) %>

<%= " by #{post.author.username}" if post.author.present? %> + <%= t('blog.shared.posts.created_at', :when => l(post.published_at.to_date, :format => :short)) %> + <%= "#{t('blog.shared.posts.by')} #{post.author.username}" if post.author.present? %>. <% if (categories = post.categories).any? %>