annotate .svn/pristine/89/897d0bc92bb0333e1f187e0250f57ac47f9d323c.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents dffacf8a6908
children
rev   line source
Chris@1517 1 xml.instruct!
Chris@1517 2 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
Chris@1517 3 xml.title truncate_single_line_raw(@title, 100)
Chris@1517 4 xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false))
Chris@1517 5 xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil))
Chris@1517 6 xml.id url_for(:controller => 'welcome', :only_path => false)
Chris@1517 7 xml.icon favicon_url
Chris@1517 8 xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
Chris@1517 9 xml.author { xml.name "#{Setting.app_title}" }
Chris@1517 10 xml.generator(:uri => Redmine::Info.url) { xml.text! Redmine::Info.app_name; }
Chris@1517 11 @items.each do |item|
Chris@1517 12 xml.entry do
Chris@1517 13 url = url_for(item.event_url(:only_path => false))
Chris@1517 14 if @project
Chris@1517 15 xml.title truncate_single_line_raw(item.event_title, 100)
Chris@1517 16 else
Chris@1517 17 xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
Chris@1517 18 end
Chris@1517 19 xml.link "rel" => "alternate", "href" => url
Chris@1517 20 xml.id url
Chris@1517 21 xml.updated item.event_datetime.xmlschema
Chris@1517 22 author = item.event_author if item.respond_to?(:event_author)
Chris@1517 23 xml.author do
Chris@1517 24 xml.name(author)
Chris@1517 25 xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
Chris@1517 26 end if author
Chris@1517 27 xml.content "type" => "html" do
Chris@1517 28 xml.text! textilizable(item, :event_description, :only_path => false)
Chris@1517 29 end
Chris@1517 30 end
Chris@1517 31 end
Chris@1517 32 end