Sha256: e802331ee98cf1413e1d85936973cc7160eaeb312f78d4bde2d1652b3c0ca518

Contents?: true

Size: 416 Bytes

Versions: 10

Compression:

Stored size: 416 Bytes

Contents

atom_feed(url: news_posts_url(format: :atom)) do |feed|
  feed.title t('news_post.library_group_news_post', library_group_name: @library_group.display_name.localize)
  feed.updated(@news_posts.first ? @news_posts.first.created_at : Time.zone.now)

  @news_posts.each do |news_post|
    feed.entry(news_post) do |entry|
      entry.title(news_post.title)
      entry.author(news_post.user.username)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_news-0.3.0.beta.1 app/views/news_posts/index.atom.builder
enju_news-0.2.0 app/views/news_posts/index.atom.builder
enju_news-0.2.0.beta.3 app/views/news_posts/index.atom.builder
enju_news-0.2.0.beta.2 app/views/news_posts/index.atom.builder
enju_news-0.1.1 app/views/news_posts/index.atom.builder
enju_news-0.1.0 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre9 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre8 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre7 app/views/news_posts/index.atom.builder
enju_news-0.1.0.pre6 app/views/news_posts/index.atom.builder