Sha256: d1eeb5cd2a9515c160610e3b41c7159b4336833746c44a3c9e29184c308add9e

Contents?: true

Size: 1.19 KB

Versions: 18

Compression:

Stored size: 1.19 KB

Contents

<%
  self.page_title = "Pages"
  self.page_description = link_to("All pages", admin_pages_path(@locale)) +
                          " / Deleted pages"
  if PagesCore.config.localizations?
    self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, deleted_admin_pages_path(l) }.join(link_separator)
  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

18 entries across 18 versions & 1 rubygems

Version Path
pages_core-3.12.0 app/views/admin/pages/deleted.html.erb
pages_core-3.11.3 app/views/admin/pages/deleted.html.erb
pages_core-3.11.2 app/views/admin/pages/deleted.html.erb
pages_core-3.11.1 app/views/admin/pages/deleted.html.erb
pages_core-3.11.0 app/views/admin/pages/deleted.html.erb
pages_core-3.10.2 app/views/admin/pages/deleted.html.erb
pages_core-3.10.1 app/views/admin/pages/deleted.html.erb
pages_core-3.9.2 app/views/admin/pages/deleted.html.erb
pages_core-3.9.1 app/views/admin/pages/deleted.html.erb
pages_core-3.9.0 app/views/admin/pages/deleted.html.erb
pages_core-3.8.3 app/views/admin/pages/deleted.html.erb
pages_core-3.8.2 app/views/admin/pages/deleted.html.erb
pages_core-3.8.1 app/views/admin/pages/deleted.html.erb
pages_core-3.8.0 app/views/admin/pages/deleted.html.erb
pages_core-3.7.0 app/views/admin/pages/deleted.html.erb
pages_core-3.6.2 app/views/admin/pages/deleted.html.erb
pages_core-3.6.1 app/views/admin/pages/deleted.html.erb
pages_core-3.6.0 app/views/admin/pages/deleted.html.erb