From 47a71b309f4fb364449167ddc6ed978b6969e047 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Fri, 1 Jul 2011 09:12:27 +1200 Subject: Making use of translation scopes. --- app/views/blog/shared/_post.html.erb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 2281691..0f65e1d 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -4,8 +4,9 @@

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

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