Add title to changeset feeds

Fixes #1051
Closes #1180
This commit is contained in:
Simon Legner 2016-03-13 21:22:42 +01:00 committed by Tom Hughes
parent 359d030a5b
commit 5175ee68b0
3 changed files with 16 additions and 11 deletions

View file

@ -2,7 +2,7 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
:id => url_for(params.merge({ :only_path => false })),
:root_url => url_for(params.merge({ :action => :list, :format => nil, :only_path => false })),
"xmlns:georss" => "http://www.georss.org/georss") do |feed|
feed.title @title
feed.title changeset_list_title(params, @user)
feed.updated @edits.map {|e| [e.created_at, e.closed_at].max }.max
feed.icon "http://#{SERVER_URL}/favicon.ico"