[openstreetmap-website] Allow the hiding of changeset tags (#1167)

Frederik Ramm notifications at github.com
Sun Feb 28 14:24:32 UTC 2016


This pull request establishes a simple mechanism for moderators to hide/unhide changset tags. All tags of a changeset are hidden, or none are hidden; there is no per-tag granularity. Tags are only hidden from the web interface, and not from the API. 
This is meant to be used in cases where people upload data with offensive changeset comments, or where advertising is placed in the changeset comment. 
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1167

-- Commit Summary --

  * introduce helper function for changeset comment.
  * add user interface controls to enable the hiding and un-hiding of changeset tags.
  * improve changeset detail output when logged in as moderator

-- File Changes --

    M app/controllers/changeset_controller.rb (43)
    M app/helpers/changeset_helper.rb (10)
    M app/views/browse/_common_details.html.erb (6)
    M app/views/browse/changeset.html.erb (17)
    M app/views/changeset/_changeset.html.erb (2)
    M app/views/changeset/list.atom.builder (2)
    M app/views/user/_contact.html.erb (3)
    M config/locales/en.yml (3)
    M config/routes.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1167.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1167.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160228/7c93ea7d/attachment.html>


More information about the rails-dev mailing list