Sha256: 4dabd6349ff15428f3846d8fca2c4182584a0fc4a1a8ae09dbddf8f42c764c77

Contents?: true

Size: 1.45 KB

Versions: 13

Compression:

Stored size: 1.45 KB

Contents

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

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

<table class="featurable">
  <thead>
    <tr>
      <th>Title</th>
      <th># Sub Pages</th>
      <th>Status</th>
      <th>Author</th>
      <th>Editor</th>
      <th>Updated</th>
      <th>Created</th>
      <th>Published At</th>
      <th>Published To</th>
      <th colspan="7">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>Editor</th>
      <th>Updated</th>
      <th>Created</th>
      <th>Published At</th>
      <th>Published To</th>
      <th colspan="7">Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
beef-pages-0.3.24 app/views/admin/pages/index.html.erb
beef-pages-0.3.23 app/views/admin/pages/index.html.erb
beef-pages-0.3.22 app/views/admin/pages/index.html.erb
beef-pages-0.3.21 app/views/admin/pages/index.html.erb
beef-pages-0.3.20 app/views/admin/pages/index.html.erb
beef-pages-0.3.19 app/views/admin/pages/index.html.erb
beef-pages-0.3.18 app/views/admin/pages/index.html.erb
beef-pages-0.3.17 app/views/admin/pages/index.html.erb
beef-pages-0.3.16 app/views/admin/pages/index.html.erb
beef-pages-0.3.15 app/views/admin/pages/index.html.erb
beef-pages-0.3.14 app/views/admin/pages/index.html.erb
beef-pages-0.3.13 app/views/admin/pages/index.html.erb
beef-pages-0.3.12 app/views/admin/pages/index.html.erb