Sha256: f16dfce9e3d3e8d779687b1228fbb24da7e1162872758e3635bed2278be6812b
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
atom_feed(:url => formatted_galleries_url(:atom)) do |feed| feed.title("#{this_webapp.webapp_name} - #{@gallery.name}") feed.updated(@sub_content.first ? @sub_content.first.created_at : Time.now.utc) for picture in @sub_content feed.entry(picture) do |entry| entry.title(picture.title) if picture.kind_of? Picture entry.content("<p>#{User.first.login} has post a new photo :</p> <p>#{image_tag (picture.public_filename(:thumb))}</p>", :type => 'html') elsif picture.kind_of? Gallery entry.content("<p>#{User.first.login} has post a new gallery : #{link_to picture.name, gallery_url(picture)}", :type => 'html') end entry.author do |author| author.name(User.first.login) author.email(User.first.email) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | app/views/galleries/show.atom.builder |