Include the changeset comment in the <title> of the Atom feeds if
there's a changeset comment. I'm not doing any snipping of the comment so they could run to 255 characters (the max size in the database), but from testing a few feed clients it looks like they do this pretty well at the client side.
This commit is contained in:
parent
6e6b44e494
commit
a6f190eabe
3 changed files with 11 additions and 1 deletions
|
@ -29,7 +29,11 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
|
|||
:href => changeset_download_url(changeset, :only_path => false),
|
||||
:type => "application/osmChange+xml"
|
||||
|
||||
entry.title t('browse.changeset.title') + " " + h(changeset.id)
|
||||
if !changeset.tags.empty? and changeset.tags.has_key? "comment"
|
||||
entry.title t('browse.changeset.feed.title_comment', :id => h(changeset.id), :comment => h(changeset.tags['comment']))
|
||||
else
|
||||
entry.title t('browse.changeset.feed.title', :id => h(changeset.id))
|
||||
end
|
||||
|
||||
if changeset.user.data_public?
|
||||
entry.author do |author|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue