Sha256: 2d95219b3604f020009b8f4b46b045a01ca66c8911633e41929d64c1fc256c0a

Contents?: true

Size: 727 Bytes

Versions: 3

Compression:

Stored size: 727 Bytes

Contents

<%
  author ||= false
  date ||= false
  section ||= false
  sections ||= []
%>
<%= page_list_row(page) do %>
  <td class="name">
    <%= link_to_if(policy(page).edit?,
                   page_name(page),
                   edit_admin_page_url(@locale, page),
                   class: 'name_link') %>
    <%= autopublish_notice(page) %>
  </td>
  <% if date %>
    <td class="date">
      <%= page_date_range(page) %>
    </td>
  <% end %>
  <td>
    <%= page_published_status(page) %>
  </td>
  <% if author %>
    <td>
      <%= link_to(page.author.name, admin_user_path(page.author)) %>
    </td>
  <% end %>
  <% if section %>
    <td>
      <%= news_section_name(page.parent, sections) %>
    </td>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

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