aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/posts/_post.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-24 22:28:47 -0600
committerJoe Sak <joe@joesak.com>2011-02-24 22:28:47 -0600
commit2b322a7bf4f64e1c019eff163d90b9cbf52ee501 (patch)
tree90b01ce124c17349844af3d16283e8cd194eaff9 /app/views/admin/blog/posts/_post.html.erb
parentbe7763d8d275e711457f89bbf64a54f0cb557186 (diff)
downloadrefinerycms-blog-2b322a7bf4f64e1c019eff163d90b9cbf52ee501.tar.gz
refinerycms-blog-2b322a7bf4f64e1c019eff163d90b9cbf52ee501.tar.bz2
refinerycms-blog-2b322a7bf4f64e1c019eff163d90b9cbf52ee501.zip
ALL CUKES PASS: Show author login in view templates (if author present?)
Diffstat (limited to 'app/views/admin/blog/posts/_post.html.erb')
-rw-r--r--app/views/admin/blog/posts/_post.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/blog/posts/_post.html.erb b/app/views/admin/blog/posts/_post.html.erb
index fa64292..1226082 100644
--- a/app/views/admin/blog/posts/_post.html.erb
+++ b/app/views/admin/blog/posts/_post.html.erb
@@ -1,7 +1,7 @@
<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' %></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),