[openstreetmap-website] Changeset discussion feature (#772)

Tom Hughes notifications at github.com
Tue Jul 29 23:01:09 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

I know, but I was never very happy with it... The really crazy thing is that I don't think it's actually used anymore, but it was needed for the original notes implementation on the web site.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15558378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140729/5ffd6a68/attachment.html>


More information about the rails-dev mailing list