Sha256: d9e669ab289ae3b71a17aeca376b5c3d67afc9d11a2fd6cad4923a66ef415829
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
<% content_for :index_header_body do %> <% if Page.statusable? %> <%= dropdown_select_form url: admin_pages_path(current_scopes.except(:by_status)), id: 'by_status', select_options: Page.statuses.keys.to_a.collect{ |x| [x.titleize, x] }, title: 'All Statuses' %> <% end %> <% end %> <%= render 'admin/headers/index', records: @pages, model_name: 'Page', pagination_collection: @parent_pages %> <div class="table-responsive"> <table class="forest-table table table-striped"> <thead> <tr> <% if Page.statusable? %> <th></th> <% end %> <th><%= table_sorter title: 'ID', path: :admin_pages_path, scope: :by_id, default_order: :desc %></th> <th><%= table_sorter title: 'Title', path: :admin_pages_path, scope: :by_title %></th> <%# TODO: Author %> <th>Path</th> <th><%= table_sorter title: 'Updated at'.html_safe, path: :admin_pages_path, scope: :by_updated_at, default_order: :desc %></th> <th colspan="3"></th> </tr> </thead> <tbody> <%= render partial: 'table_row', collection: @parent_pages, locals: { level: 0 }, as: :page %> </tbody> </table> </div> <%= paginate @parent_pages %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forest_cms-0.98.1 | app/views/admin/pages/index.html.erb |