Sha256: 40695e3fa5e6814561adfde8e88969098b07a3f4362416d9a08aa6d77f4f87e1

Contents?: true

Size: 504 Bytes

Versions: 7

Compression:

Stored size: 504 Bytes

Contents

<li>
  <%= link_to post.title.name, edit_admin_post_path(post), class: %w(title) %>

  <div class='info'>
    <% if post.tags.any? %>
      <%= content_tag :span, post.tags.map(&:name).join(', '), class: %w(tags) %>
    <% end %>

    <%= content_tag :span, class: %w(status) do %>
      <% if post.published? %>
        Published <%= time_ago_in_words(post.published_at) %> ago
      <% else %>
        Drafted <%= time_ago_in_words(post.created_at) %> ago
      <% end %>
    <% end %>
  </div>

</li>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecrire-0.31.2 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.31.1 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.31.0 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.30.3 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.30.2 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.30.1 lib/ecrire/app/views/admin/posts/_post.html.erb
ecrire-0.30.0 lib/ecrire/app/views/admin/posts/_post.html.erb