aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/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/admin/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/admin/blog/posts/_post.html.erb')
-rw-r--r--app/views/admin/blog/posts/_post.html.erb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/admin/blog/posts/_post.html.erb b/app/views/admin/blog/posts/_post.html.erb
index 1226082..a7f09e0 100644
--- a/app/views/admin/blog/posts/_post.html.erb
+++ b/app/views/admin/blog/posts/_post.html.erb
@@ -1,7 +1,10 @@
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(post) -%>">
<span class='title'>
<%= post.title %>
- <span class="preview"><%= post.published_at.try(:strftime, '%b %d, %Y') || 'draft' %><%= " by #{post.author.username}" if post.author.present? %></span>
+ <span class="preview">
+ <%= post.published_at.try(:strftime, '%b %d, %Y') || 'draft' %>
+ <%= " by #{post.author.username}" if post.author.present? %>
+ </span>
</span>
<span class='actions'>
<%= link_to refinery_icon_tag("application_go.png"), blog_post_url(post),
@@ -13,6 +16,6 @@
:class => "cancel confirm-delete",
:title => t('.delete'),
:method => :delete,
- :confirm => t('shared.admin.delete.message', :title => post.title) %>
+ :confirm => t('message', :scope => 'shared.admin.delete', :title => post.title) %>
</span>
</li>