aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/refinery/blog/admin/posts/_post.html.erb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb
index f29db54..e9c9e6c 100644
--- a/app/views/refinery/blog/admin/posts/_post.html.erb
+++ b/app/views/refinery/blog/admin/posts/_post.html.erb
@@ -2,13 +2,14 @@
<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">Draft</span>
+ <% else %>
+ <%= post.published_at.strftime('%b %d, %Y') %>
+ <% end %>
</span>
</span>
- <% if post.draft? %>
- <span class="label notice">Draft</span>
- <% end %>
<span class='actions'>
<%= link_to refinery_icon_tag("application_go.png"), refinery.blog_post_path(post),
:title => t('.view_live_html'),