Sha256: 37c5788601585d63ed5398b52d72c32d8fed2d55f1b263533c1f762d49223cd7

Contents?: true

Size: 535 Bytes

Versions: 10

Compression:

Stored size: 535 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

10 entries across 10 versions & 1 rubygems

Version Path
enju_news-0.3.0.beta.1 app/views/news_feeds/_content_rss.html.erb
enju_news-0.2.0 app/views/news_feeds/_content_rss.html.erb
enju_news-0.2.0.beta.3 app/views/news_feeds/_content_rss.html.erb
enju_news-0.2.0.beta.2 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.1 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre9 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre8 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre7 app/views/news_feeds/_content_rss.html.erb
enju_news-0.1.0.pre6 app/views/news_feeds/_content_rss.html.erb