Sha256: e5960bd40053a5b161af90f2ab54090e143485414f9b19985ae044be67cd1010
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
<tr class="<%= cycle('', 'alt') %>"> <td><%= post.published_at.strftime('%d %b, %Y') %></td> <td><%= link_to (post.title == '' ? '[Untitled]' : truncate(post.title, :length => 30)), enki.admin_post_path(post) %></td> <td><% tmpc = truncate(post.body, :length => 55) %><%= (tmpc != '' ? tmpc : ' ') %></td> <% if comments? -%><td><%= post.approved_comments.size -%></td><% end -%> <td> <%= 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 Post') %> <% end -%> </td> </tr>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enki-engine-0.0.5 | app/views/enki/admin/posts/_post.html.erb |