Sha256: 96775dc53a6480951a47910877b0db16774095829bdf82d78a2c5b1f90c31595
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
<% content_for(:page_title, "News") %> <% content_for(:page_description) do %> News: <em> <% if @month %> <%= month_name(@month) %> <% end %> <%= @year %> </em> <% end %> <% content_for :page_description_links do %> <%= locale_links { |l| admin_news_index_path(l, @year) } %> <% end %> <% content_for :sidebar do %> <%= render(partial: "sidebar", locals: { locale: content_locale, news_pages: @news_pages, archive_finder: @archive_finder }) %> <% end %> <% if @pages.length > 0 %> <table class="list news-item-list"> <tr> <th>Name</th> <th>Published</th> <th>Author</th> <th>Section</th> </tr> <% @pages.each do |page| %> <%= render(partial: "admin/pages/list_item", locals: { page: page, author: true, section: true, sections: @news_pages }) %> <% end %> </table> <%= will_paginate @pages, renderer: PagesCore::LinkRenderer %> <% else %> <div class="content"> <p> No news items have been posted yet. </p> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems