[openstreetmap/openstreetmap-website] Fix user blocks short duration display issues (#3216)
Andy Allan
notifications at github.com
Wed Jun 9 14:19:36 UTC 2021
This PR fixes the two issues described in #3210 which, although technically different, can be taken together.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3216
-- Commit Summary --
* Ensure that short duration blockss are shown as '0 hours'
* Fix case when user block durations are slightly negative
-- File Changes --
M app/helpers/user_blocks_helper.rb (4)
M test/helpers/user_blocks_helper_test.rb (20)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3216.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3216.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/3216
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210609/e0230c1c/attachment.htm>
More information about the rails-dev
mailing list