Sha256: d94e81a976567e5a975624aeafe124d23fd6aec1dd37b1a64f37b05ccb2bcda4

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 Bytes

Contents

<%- if news_feed.content -%>
  <h3><%= link_to h(news_feed.content.channel.title), h(news_feed.content.channel.link) -%></h3>
  <ul>
    <%- news_feed.content.items[0..2].each do |item| -%>
      <li><%= link_to h(item.title), h(item.link) -%>
      <%- if date = Time.zone.parse(item.pubDate.to_s) rescue nil -%>
        (<%= l(date, :format => :short) -%>)
      <%- end -%>
      <%- if item.description -%>
        <br />
        <%= truncate(h(item.description)) -%>
      <%- end -%>
      </li>
    <%- end -%>
  </ul>
<%- end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_news-0.1.0.pre5 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre4 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre3 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre2 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre app/views/news_feeds/_content_rss.html.erb
enju_news-0.0.5 app/views/news_feeds/_content_rss.html.erb
enju_news-0.0.4 app/views/news_feeds/_content_rss.html.erb
enju_news-0.0.3 app/views/news_feeds/_content_rss.html.erb
enju_news-0.0.2 app/views/news_feeds/_content_rss.html.erb