Sha256: 5ef524c441d8de9ff685f76034b1ee69079f4363495a5f9ff1572d972d32ae7a

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

<% content_for :page_title, "Deleted pages" %>

<% content_for :page_description do %>
  <%= link_to("All pages", admin_pages_path(@locale)) %> /
  Deleted pages
<% end %>

<% content_for :page_description_links do %>
  <%= locale_links { |l| deleted_admin_pages_path(l) } %>
<% end %>

<% if @pages.any? %>
  <table class="deleted-pages list">
    <tr>
      <th>Name</th>
      <th>Last updated</th>
      <th>Author</th>
      <th>Location</th>
    </tr>
    <% @pages.each do |page| %>
      <tr>
        <td class="name">
          <%= link_to_if(policy(page).edit?,
                         page_name(page),
                         edit_admin_page_url(@locale, page),
                         class: 'name_link') %>
        </td>
        <td>
          <%= l(page.updated_at, format: :short) %>
        </td>
        <td>
          <%= link_to(page.author.name, admin_user_path(page.author)) %>
        </td>
        <td>
          <% if page.parent %>
            <%= page_name(page.parent, include_parents: true) %>
          <% else %>
            Top level
          <% end %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pages_core-3.12.4 app/views/admin/pages/deleted.html.erb
pages_core-3.12.3 app/views/admin/pages/deleted.html.erb
pages_core-3.12.2 app/views/admin/pages/deleted.html.erb
pages_core-3.12.1 app/views/admin/pages/deleted.html.erb