Sha256: f03c2382664567fcce7ea08d38231e4ae0d73e9343c2c8045307b3958fbefa81

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

<h1>Listing pages<%= " under #{@parent.title}" unless @parent.nil? %></h1>

<ul class="choices">
<% unless @parent.nil? %>
  <li><%= link_to 'New page', new_admin_page_page_path(@parent), :class => "button", :title => "Add a sub-page under #{@parent.title}" %></li>
<%   if @parent.parent.nil? %>
  <li><%= link_to "All top pages", admin_pages_path(), :class => "up button" %></li>
<%   else %>
  <li><%= link_to "Up to #{@parent.parent.title}", admin_page_pages_path(@parent.parent), :class => "up button" %></li>
<%   end %>
<% end %>
</ul>  

<%= hidden_field_tag 'form_authenticity_token', "#{form_authenticity_token}" %> 

<table class="featurable">
  <thead>
    <tr>
      <th>Title</th>
      <th># Sub Pages</th>
      <th>Status</th>
      <th>Author</th>
      <th>Updater</th>
      <th>Published At</th>
      <th>Published To</th>
      <th colspan="5">Actions</th>
    </tr>
  </thead>
  <tbody>
    <%= render :partial => @pages, :locals => { :level => 0 } %>
  </tbody>
  <tfoot>
    <tr>
      <th>Title</th>
      <th># Sub Pages</th>
      <th>Status</th>
      <th>Author</th>
      <th>Updater</th>
      <th>Published At</th>
      <th>Published To</th>
      <th colspan="5">Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beef-pages-0.2.6 app/views/admin/pages/index.html.erb
beef-pages-0.3.0 app/views/admin/pages/index.html.erb