Mercurial > hg > soundsoftware-site
annotate .svn/pristine/67/67cf5cccf9960052155966022aeefcfe4c1324e2.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 xml.instruct! |
Chris@1296 | 2 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
Chris@1296 | 3 xml.title @title |
Chris@1296 | 4 xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) |
Chris@1296 | 5 xml.link "rel" => "alternate", "href" => home_url(:only_path => false) |
Chris@1296 | 6 xml.id url_for(:controller => 'welcome', :only_path => false) |
Chris@1296 | 7 xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
Chris@1296 | 8 xml.author { xml.name "#{Setting.app_title}" } |
Chris@1296 | 9 @journals.each do |change| |
Chris@1296 | 10 issue = change.issue |
Chris@1296 | 11 xml.entry do |
Chris@1296 | 12 xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" |
Chris@1296 | 13 xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) |
Chris@1296 | 14 xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) |
Chris@1296 | 15 xml.updated change.created_on.xmlschema |
Chris@1296 | 16 xml.author do |
Chris@1296 | 17 xml.name change.user.name |
Chris@1296 | 18 xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail |
Chris@1296 | 19 end |
Chris@1296 | 20 xml.content "type" => "html" do |
Chris@1296 | 21 xml.text! '<ul>' |
Chris@1296 | 22 details_to_strings(change.details, false).each do |string| |
Chris@1296 | 23 xml.text! '<li>' + string + '</li>' |
Chris@1296 | 24 end |
Chris@1296 | 25 xml.text! '</ul>' |
Chris@1296 | 26 xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? |
Chris@1296 | 27 end |
Chris@1296 | 28 end |
Chris@1296 | 29 end |
Chris@1296 | 30 end |