[openstreetmap/openstreetmap-website] Show the crafted duration of a block independent of the reading time (#3146)
polarbearing
notifications at github.com
Tue Mar 23 11:44:15 UTC 2021
Fixes #3143.
Not tested by myself. Treat like pseudocode, I don't speak Ruby.
Intends to append the "Created" line with the difference ```duration = (ends_at - created_at)```, so it would read e.g.
```Created: over 1 year ago (4 hours)``` avoiding a new text string
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3146
-- Commit Summary --
* Show the crafted duration of a block independent of the reading time
-- File Changes --
M app/views/user_blocks/show.html.erb (5)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3146.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3146.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/3146
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210323/5b06048c/attachment.htm>
More information about the rails-dev
mailing list