Sha256: eb1d8099bb55b863457806570d4631633140ed4b530a2d8e7b1221ad9d3fb82f

Contents?: true

Size: 1.72 KB

Versions: 15

Compression:

Stored size: 1.72 KB

Contents

<table class="standard">
  <tr>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'humanize_path', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'page_title', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'window_title', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'state', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'noindex', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'sitemap', params) -%></th>
    <th><%= sort_link("admin/sites/#{@site.id}/pages", 'updated_at', params) -%></th>
    <th> </th>
  </tr>
<%- if @pages.blank? -%>
  <tr><td colspan="8">No pages found.</td></tr>
<%- else -%>
  <%- @pages.each do |page| -%>
    <tr class="<%= cycle('odd', 'even') -%>">
      <td><%= link_to page.humanize_path, admin_site_page_path(@site, page) -%></td>
      <td><%= page.page_title -%></td>
      <td><%= page.window_title -%></td>
      <td><%= page.status -%></td>
      <td><%= page.noindex ? '√' : '' -%></td>
      <td><%= page.sitemap ? '√' : '' -%></td>
      <td><%= page.updated_at.to_s(:concise) -%></td>
      <td class="crud_links">
        <%= link_to image_tag('/images/icons/view.png'), admin_site_page_path(@site, page) -%>
        <%= link_to image_tag('/images/icons/edit.png'), edit_admin_site_page_path(@site, page) -%>
        <%= link_to image_tag('/images/icons/delete.png'), admin_site_page_path(@site, page), :method => :delete, :confirm => 'Are you sure? This action cannot be undone.' -%>
      </td>
    </tr>
  <%- end -%>
<%- end -%>
</table><br />
<div class="attached link_block">
  <%= link_to 'New Page...', new_admin_site_page_path(@site), :class => 'link_button' -%>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
site_logic-1.9.13 app/views/admin/pages/_index.html.erb
site_logic-1.9.12 app/views/admin/pages/_index.html.erb
site_logic-1.9.11 app/views/admin/pages/_index.html.erb
site_logic-1.9.10 app/views/admin/pages/_index.html.erb
site_logic-1.9.9 app/views/admin/pages/_index.html.erb
site_logic-1.9.8 app/views/admin/pages/_index.html.erb
site_logic-1.9.7 app/views/admin/pages/_index.html.erb
site_logic-1.9.6 app/views/admin/pages/_index.html.erb
site_logic-1.9.5 app/views/admin/pages/_index.html.erb
site_logic-1.9.4 app/views/admin/pages/_index.html.erb
site_logic-1.9.3 app/views/admin/pages/_index.html.erb
site_logic-1.9.2 app/views/admin/pages/_index.html.erb
site_logic-1.9.1 app/views/admin/pages/_index.html.erb
site_logic-1.9.0 app/views/admin/pages/_index.html.erb
site_logic-1.8.0 app/views/admin/pages/_index.html.erb