Sha256: 8707aea852c951433974dea9fa21745ff690e1c1248f9cc78a6023a02b98dee7

Contents?: true

Size: 770 Bytes

Versions: 6

Compression:

Stored size: 770 Bytes

Contents

<li>
  <div class='item'>
    <div class='action_links'>
      <%= link_to pluralize(post.comments_count, 'comment'), sofa_blog_admin_post_comments_path(post) %>
      <%= link_to 'Edit', edit_sofa_blog_admin_post_path(post) %>
      <%= link_to 'Delete', '', :method => :delete, :confirm => 'Are you sure?' %>
    </div>
    <div class='label'>
      <%= link_to post.title.titleize, edit_sofa_blog_admin_post_path(post) %>
      <div class='sublabel'>
        Published <%= time_ago_in_words(post.updated_at) %> ago
        by <strong><%= post.author %></strong>
        <%= '[DRAFT]' if !post.is_published? %>
        <% post.tags.each do |tag| %>
          <span class="tag"><%= tag.name %></span>
        <% end %>
        
      </div>  
    </div>
  </div>
</li>

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
sofa_blog-0.1.2 app/views/sofa_blog/admin/posts/_post.html.erb
sofa_blog-0.1.2 app/views/sofa_blog/posts/_post.html.erb
sofa_blog-0.1.1 app/views/sofa_blog/admin/posts/_post.html.erb
sofa_blog-0.1.1 app/views/sofa_blog/posts/_post.html.erb
sofa_blog-0.1.0 app/views/sofa_blog/admin/posts/_post.html.erb
sofa_blog-0.1.0 app/views/sofa_blog/posts/_post.html.erb