diff options
Diffstat (limited to 'app/views/refinery/blog/admin/posts/_post.html.erb')
-rw-r--r-- | app/views/refinery/blog/admin/posts/_post.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb index b5018f3..fea3eb8 100644 --- a/app/views/refinery/blog/admin/posts/_post.html.erb +++ b/app/views/refinery/blog/admin/posts/_post.html.erb @@ -2,8 +2,12 @@ <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? %> + <% if post.draft? %> + <span class="label notice"><%= t('refinery.blog.admin.posts.post.draft') %></span> + <% else %> + <%= post.published_at.strftime('%b %d, %Y') %> + <% end %> </span> </span> <span class='actions'> |