Sha256: 5f5a0bae215c9b55935b85d35ffc08033cfe5cbf2650f0c79d0b18c6ed3038c1

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

<div class="span9">
  <div class='page-header'>
    <h1>Posts</h1>
  </div>
  <table class="table table-striped">
    <tr>
      <th>Title</th>
      <th>Link Url</th>
      <th>Published at</th>
      <th>Actions</th>
    </tr>

    <% @posts.each do |post| %>
    <tr>
      <td><%= post.title %></td>
      <td><%= post.link_url %></td>
      <td><%= post.published_at %></td>
      <td>
        <%= link_to 'Edit', [:edit, :admin, post], :class => 'btn btn-primary btn-small' %>
        <%= link_to 'Edit Content', "/editor/posts/#{post.id}", :class => 'btn btn-primary btn-small' %>
        <%= link_to 'Delete', [:admin, post], method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-danger btn-small' %>
      </td>
    </tr>
    <% end %>
  </table>
</div>

<div class="span3">
  <div class='page-header'>
    <h1>Options</h1>
  </div>
  <ul class="nav nav-tabs nav-stacked">
    <li><%= link_to 'Add a Post', new_admin_post_path %></li>
    <li><%= link_to "Test Link", '#' %></li>
    <li><%= link_to "Test Link", '#' %></li>
    <li><%= link_to "Test Link", '#' %></li>
  </ul>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 app/views/wafflemix/admin/posts/index.html.erb
wafflemix-0.0.5 app/views/wafflemix/admin/posts/index.html.erb
wafflemix-0.0.4 app/views/wafflemix/admin/posts/index.html.erb
wafflemix-0.0.3 app/views/wafflemix/admin/posts/index.html.erb
wafflemix-0.0.2 app/views/wafflemix/admin/posts/index.html.erb
wafflemix-0.0.1 app/views/wafflemix/admin/posts/index.html.erb