Sha256: 4f95d5199fbca7cb60df3d8708d50aba349358a72374a3e0c7064a5dec0eca1b

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 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), :icon => :delete %>
      </td>
    </tr>
    <% end -%>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

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