Sha256: 5ecbb3c944d8a750d5bc28f729ff25bee7478ab459e60cfa8abd0584128f8a78

Contents?: true

Size: 600 Bytes

Versions: 17

Compression:

Stored size: 600 Bytes

Contents

<% content_for :body_content_left do %>
  <%= @page[:body] %>

  <% if @news_items.any? %>
    <% @news_items.each do |item| %>
      <h3><%= link_to item.title, news_item_url(item) %></h3>
      <p>
        <small>Published <%= item.publish_date.strftime("%A %d of %B, %Y") %></small>
      </p>
      <%= truncate(item.body, :length => 200, :omission => " ... #{link_to "Read more", news_item_url(item)}", :preserve_html_tags => true) %>
    <% end %>
  <% else %>
    <p><em>Sorry we haven't posted up any news yet.</em></p>
  <% end %>
<% end %>

<%= render :partial => "/shared/content_page" %>

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-news-0.9.7 app/views/news_items/index.html.erb
refinerycms-news-0.9.6.1 app/views/news_items/index.html.erb
refinerycms-news-0.9.6 app/views/news_items/index.html.erb
refinerycms-0.9.6.19 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.18 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.17 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.16 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.15 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.14 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.13 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.12 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.11 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.10 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.9 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.8 vendor/plugins/news/app/views/news_items/index.html.erb
refinerycms-0.9.6.7 vendor/plugins/news/app/views/news_items/index.html.erb