[openstreetmap-website] Changeset discussion feature (#772)
Tom Hughes
notifications at github.com
Fri Jul 25 14:42:28 UTC 2014
> +xml.changeset(changeset_attributes) do |asterx|
> + changeset.tags.each do |k,v|
> + xml.tag :k => k, :v => v
> + end
> + if @comments
> + xml.discussion do
> + @comments.each do |comment|
> + xml.comment do
> + xml.date comment.created_at
> +
> + xml.uid comment.author.id
> + xml.user comment.author.display_name
> + xml.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL)
> +
> + xml.text comment.body.to_text
> + xml.html comment.body.to_html
This (returning formatted HTML) doesn't really seem very api-ish to me?
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15403941
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140725/61ed833b/attachment.html>
More information about the rails-dev
mailing list