Sha256: a3f6da89d9dd41ffd954583c2d7d6a338749b6007be4cec40f4c4308a5576edc

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

atom_feed(url: checkouts_url(format: :atom)) do |feed|
  if @user
    feed.title t('checkout.user_checkout', login_name: @user.username)
  else
    feed.title t('checkout.library_group_checkout', library_group_name: @library_group.display_name)
  end
  feed.updated(@checkouts.first ? @checkouts.first.created_at : Time.zone.now)

  @checkouts.each do |checkout|
    feed.entry(checkout) do |entry|
      entry.title(checkout.item.manifestation.original_title)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_circulation-0.4.0.rc.1 app/views/checkouts/index.atom.builder
enju_circulation-0.4.0.beta.4 app/views/checkouts/index.atom.builder
enju_circulation-0.4.0.beta.3 app/views/checkouts/index.atom.builder
enju_circulation-0.4.0.beta.2 app/views/checkouts/index.atom.builder
enju_circulation-0.4.0.beta.1 app/views/checkouts/index.atom.builder