]> git.openstreetmap.org Git - rails.git/commit
Hide contributor terms details, unless the user hasn't agreed
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jul 2017 11:39:52 +0000 (12:39 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jul 2017 11:39:52 +0000 (12:39 +0100)
commitcbf71f04c244440f82d86e12758a2e443f68c0f8
tree8b3324de63d271eae24d85d9227f798aa8f4f4ec
parent5d740d8733900fcdbb537435bdc530cf44e24bfd
Hide contributor terms details, unless the user hasn't agreed

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.
app/views/user/view.html.erb
test/controllers/user_controller_test.rb