Sha256: 5dbfc904b2a33351b18117b13137f9af3d9be39aa07fc503e5cf6d00b3e9894f

Contents?: true

Size: 1.32 KB

Versions: 17

Compression:

Stored size: 1.32 KB

Contents

<%
  author ||= false
  date ||= false
  section ||= false
%>
<tr class="<%= [page.status_label.downcase,((page.autopublish?) ? 'autopublish' : nil), ((page.pinned?) ? 'pinned' : nil)].join(' ') %>">
  <td class="name">
    <%= link_to_if(policy(page).edit?,
                   page_name(page),
                   edit_admin_page_url(@locale, page),
                   class: 'name_link') %>
    <% if page.autopublish? %>
      <br />
      <small>
        This page will be published
        <strong><%= publish_time(page.published_at) %></strong>
      </small>
    <% end %>
  </td>
  <% if date %>
    <td class="date">
      <%= page_date_range(page) %>
    </td>
  <% end %>
  <td>
    <% if page.published? %>
      <% if page.published_at.year == Time.zone.now.year %>
        <%= l(page.published_at, format: :pages_date) %>
      <% else %>
        <%= l(page.published_at, format: :pages_full) %>
      <% end %>
    <% else %>
      <% if page.status_label == 'Published' %>
        <em>Not published</em>
      <% else %>
        <em><%= page.status_label %></em>
      <% end %>
    <% end %>
  </td>
  <% if author %>
    <td>
      <%= link_to(page.author.name, admin_user_path(page.author)) %>
    </td>
  <% end %>
  <% if section %>
    <td>
      <%= news_section_name(page.parent, @news_pages) %>
    </td>
  <% end %>
</tr>

Version data entries

17 entries across 17 versions & 1 rubygems

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