Sha256: e20016513f339c0886714e8cca9fdc08f31a9044a978af5791753059b1faca0b

Contents?: true

Size: 780 Bytes

Versions: 1

Compression:

Stored size: 780 Bytes

Contents

<table class="grid">
  <thead>
    <tr>
      <th>Name</th>
      <th>Author</th>
      <th colspan="2">Date</th>
    </tr>
  </thead>
  <tbody>
    <% posts.each do |post| -%>
    <tr class="row <%= cycle 'one', 'two' %>">
      <td><%= link_to post.name, grandstand_post_path(post) %></td>
      <% if post.user -%>
      <td><%= link_to(post.user.name, grandstand_user_path(post.user)) %></td>
      <% else -%>
      <td><i>none</i></td>
      <% end -%>
      <td><%= post.posted_at.to_date %>
      <td class="actions">
        <%= button_link_to 'Edit', edit_grandstand_post_path(post), :icon => :edit %>
        <%= button_link_to 'Delete', delete_grandstand_post_path(post), :class => 'remote', :icon => :delete %>
      </td>
    </tr>
    <% end -%>
  </tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grandstand-0.3.0 app/views/grandstand/posts/_list.html.erb