##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13274:1fcbeb6f816a
r15119:53710d80fc88
Show More
feed.atom.builder
32 lines | 1.3 KiB | text/plain | TextLexer
/ app / views / common / feed.atom.builder
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
Toshi MARUYAMA
Rails4: add ApplicationHelper#truncate_single_line_raw method replacing truncate_single_line...
r12555 xml.title truncate_single_line_raw(@title, 100)
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false))
xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil))
Jean-Philippe Lang
Use named routes or helpers....
r13274 xml.id home_url
Jean-Philippe Lang
Adds favicon to ATOM feeds (#14309)....
r12387 xml.icon favicon_url
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
xml.author { xml.name "#{Setting.app_title}" }
Jean-Philippe Lang
Hide Redmine version in atom feeds and pdf properties (#794)....
r2001 xml.generator(:uri => Redmine::Info.url) { xml.text! Redmine::Info.app_name; }
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 @items.each do |item|
xml.entry do
Jean-Philippe Lang
Activity enhancements:...
r1213 url = url_for(item.event_url(:only_path => false))
Jean-Philippe Lang
Add project name to cross-project Atom feeds (#1527)....
r1571 if @project
Toshi MARUYAMA
Rails4: add ApplicationHelper#truncate_single_line_raw method replacing truncate_single_line...
r12555 xml.title truncate_single_line_raw(item.event_title, 100)
Jean-Philippe Lang
Add project name to cross-project Atom feeds (#1527)....
r1571 else
Toshi MARUYAMA
Rails4: add ApplicationHelper#truncate_single_line_raw method replacing truncate_single_line...
r12555 xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
Jean-Philippe Lang
Add project name to cross-project Atom feeds (#1527)....
r1571 end
Jean-Philippe Lang
Activity enhancements:...
r1213 xml.link "rel" => "alternate", "href" => url
xml.id url
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 xml.updated item.event_datetime.xmlschema
Jean-Philippe Lang
Fixed: Atom feeds don't provide author section for repository revisions (#1348)....
r1471 author = item.event_author if item.respond_to?(:event_author)
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 xml.author do
Jean-Philippe Lang
Atom feeds:...
r1140 xml.name(author)
Jean-Philippe Lang
Fixed: Atom feeds leak email address (#3408)....
r2664 xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 end if author
xml.content "type" => "html" do
Jean-Philippe Lang
FIxed: inline images not displayed in atom feeds (#3391)....
r2669 xml.text! textilizable(item, :event_description, :only_path => false)
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 end
end
end
end