Sha256: 4aa9160b0d5174d51caacc5371f92e47106c93f823b163941a3d92b9611b3bc8

Contents?: true

Size: 847 Bytes

Versions: 3

Compression:

Stored size: 847 Bytes

Contents

<table class="table table-striped table-bordered">
  <thead>
    <tr>
      <th><%= t(".title")%></th>
      <th><%= t(".status")%></th>
      <th><%= t(".author")%></th>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @posts.each do |post|%>
      <tr>
        <td><%= link_to post.title, edit_admin_post_path(post) %></td>
        <td><span class="label label-<%= post.published ? "success" : "important" %>"><%= post.published ? t(".published") : t(".not_published") %></span></td>
        <td><span><%= post.user.name %></span> </td>
        <td><%= link_to t(".edit"), edit_admin_post_path(post), class: "btn btn-small" %></td>
        <td><%= link_to t(".delete"), [:admin, post],data: {confirm: 'Are you sure?'}, method: :delete, class: "btn btn-small btn-danger" %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
monologue-0.4.1 app/views/monologue/admin/posts/index.html.erb
monologue-0.4.0 app/views/monologue/admin/posts/index.html.erb
monologue-0.3.0 app/views/monologue/admin/posts/index.html.erb