<%= post.published_at.strftime('%d %b, %Y') %> |
<%= link_to (post.title == '' ? '[Untitled]' : truncate(post.title, :length => 30)), enki.admin_post_path(post) %> |
<% tmpc = truncate(post.body, :length => 55) %><%= (tmpc != '' ? tmpc : ' ') %> |
<% if comments? -%><%= post.approved_comments.size -%> | <% end -%>
<%= link_to(image_tag('silk/pencil.png', :alt => 'edit'), enki.admin_post_path(post)) %>
<%= form_for(post, :as => :post, :url => enki.admin_post_path(post), :html => {:class => 'delete-item', :method => :delete}) do |form| -%>
<%= image_submit_tag("silk/delete.png", :alt => 'Delete Comment') %>
<% end -%>
|