Sha256: f38ecaf27667f81469a527121831b0f23a0dfc6b77653f0767a53e221d0d92e1

Contents?: true

Size: 559 Bytes

Versions: 30

Compression:

Stored size: 559 Bytes

Contents

atom_feed(:url => questions_url(:format => :atom)) do |feed|
  if @user
    feed.title t('question.user_question', :login_name => @user.username)
  else
    feed.title t('question.library_group_question', :library_group_name => @library_group.display_name.localize)
  end
  feed.updated(@questions.first ? @questions.first.created_at : Time.zone.now)

  @questions.each do |question|
    feed.entry(question) do |entry|
      entry.title(truncate(question.body))
      entry.author(question.user.username)
      entry.content(question.body)
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
enju_question-0.1.0.pre11 app/views/questions/index.atom.builder
enju_question-0.1.0.pre10 app/views/questions/index.atom.builder
enju_question-0.1.0.pre9 app/views/questions/index.atom.builder
enju_question-0.1.0.pre8 app/views/questions/index.atom.builder
enju_question-0.1.0.pre7 app/views/questions/index.atom.builder
enju_question-0.1.0.pre6 app/views/questions/index.atom.builder
enju_question-0.1.0.pre5 app/views/questions/index.atom.builder
enju_question-0.1.0.pre4 app/views/questions/index.atom.builder
enju_question-0.1.0.pre3 app/views/questions/index.atom.builder
enju_question-0.1.0.pre2 app/views/questions/index.atom.builder
enju_question-0.1.0.pre app/views/questions/index.atom.builder
enju_question-0.0.21 app/views/questions/index.atom.builder
enju_question-0.0.20 app/views/questions/index.atom.builder
enju_question-0.0.19 app/views/questions/index.atom.builder
enju_question-0.0.18 app/views/questions/index.atom.builder
enju_question-0.0.17 app/views/questions/index.atom.builder
enju_question-0.0.16 app/views/questions/index.atom.builder
enju_question-0.0.15 app/views/questions/index.atom.builder
enju_question-0.0.14 app/views/questions/index.atom.builder
enju_question-0.0.13 app/views/questions/index.atom.builder