Sha256: 8baf1dfe5c5edaba869a8252a90c38fd3245e002aaf59c9dd390389347d076fc

Contents?: true

Size: 889 Bytes

Versions: 3

Compression:

Stored size: 889 Bytes

Contents

<div id="list" class="pane">
  <h3 class="heading"> 
    <%= post_list_title(current_post_type) %>
    <%= new_post_button(current_post_type) %>
  </h3>
  <div class="scroll-y">
    <ul class="dashboard-list">
      <% @posts.each do |post| %>
        <li id="<%= post.class.to_s.downcase.split("::").last %>_<%= post.id %>" class="<%= 'active' if current_page?(url_for([:edit, :dashboard, post])) %>">
          <%= link_to [:edit, :dashboard, post], page_number: params[:page_number] do %>
            <%= post.title %>
            <span class="pull-right">
              <% unless post.published? %>
                <span class="label label-warning">Draft</span>
              <% end %>
            </span>
          <% end %>
        </li>
      <% end %>
    </ul>
    <div class="pagination-wrapper">
      <%= paginate @posts, param_name: "page_number" %>
    </div>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
storytime-1.2.0 app/views/storytime/dashboard/posts/_list.html.erb
storytime-1.1.1 app/views/storytime/dashboard/posts/_list.html.erb
storytime-1.0.7 app/views/storytime/dashboard/posts/_list.html.erb