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