[openstreetmap/openstreetmap-website] Hide contributor terms details, unless the user hasn't agreed (#1575)

Andy Allan notifications at github.com
Wed Jul 5 11:51:09 UTC 2017


It's no longer important to show when users agreed to the contributor terms.
For users that haven't agreed, we still show their status on their profile.

Logic was also re-written to avoid lots of `if not` things, and tests added.

Replaces #97 
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Hide contributor terms details, unless the user hasn't agreed

-- File Changes --

    M app/views/user/view.html.erb (16)
    M test/controllers/user_controller_test.rb (28)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1575
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170705/ab1f5ce6/attachment.html>


More information about the rails-dev mailing list