aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/_post.html.erb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-07-01 09:12:27 +1200
committerPhilip Arndt <parndt@gmail.com>2011-07-01 09:12:27 +1200
commit47a71b309f4fb364449167ddc6ed978b6969e047 (patch)
tree842ef03d0fbec90a14666cdeaf6285d54d6feed0 /app/views/blog/posts/_post.html.erb
parent46021c66f476747a21ee62bf7acbcd9cb169bd25 (diff)
downloadrefinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.tar.gz
refinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.tar.bz2
refinerycms-blog-47a71b309f4fb364449167ddc6ed978b6969e047.zip
Making use of translation scopes.
Diffstat (limited to 'app/views/blog/posts/_post.html.erb')
-rw-r--r--app/views/blog/posts/_post.html.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb
index 6d715c3..12978d3 100644
--- a/app/views/blog/posts/_post.html.erb
+++ b/app/views/blog/posts/_post.html.erb
@@ -8,11 +8,12 @@
<h1><%= @blog_post.title %></h1>
<section class='details'>
<time datetime="<%=l @blog_post.published_at.to_date, :format => :default %>" class='posted_at'>
- <%= t('blog.shared.posts.created_at', :when => l(@blog_post.published_at.to_date, :format => :short)) %>
- </time><%= "#{t('blog.posts.show.by')} #{@blog_post.author.username}" if @blog_post.author.present? %>.
+ <%= t('created_at', :scope => 'blog.shared.posts', :when => l(@blog_post.published_at.to_date, :format => :short)) %>
+ </time>
+ <%= "#{t('by', :scope => 'blog.posts.show')} #{@blog_post.author.username}" if @blog_post.author.present? %>.
<% if (categories = @blog_post.categories).any? %>
<aside class='filed_in'>
- <%= t('blog.posts.show.filed_in') %>
+ <%= t('filed_in', :scope => 'blog.posts.show') %>
<% categories.each_with_index do |category, index| %>
<%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
<% end %>