[openstreetmap-website] Adding block start/end timestamps as abbreviation (#996)
Ethan
notifications at github.com
Wed Jun 24 23:43:00 UTC 2015
### Background
Re: #923 and DWG experience. It would be great to have more detailed information about the extent of a block on the block page.
## Approach
Similar to the styling of changesets' creation and closing timestamps, this PR adds an abbreviation tag to the status text of a user block detailing the creation and expiration of a user block. The information necessary is already available from `@user_block`.
## Testing
On my local build, the page successfully rendered with the correct information. Attached are two examples:
### A 4 day block:
![Example 4 day block rendering](https://cloud.githubusercontent.com/assets/8998918/8343902/462570be-1aa0-11e5-961d-8a404acdaf2e.png)
### A block that was revoked after ~4 minutes:
![Example block revocation](https://cloud.githubusercontent.com/assets/8998918/8343863/c0e192a2-1a9f-11e5-9296-40f0d996ea0f.png)
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/996
-- Commit Summary --
* Adding block start/end timestamps as abbreviation
-- File Changes --
M app/views/user_blocks/show.html.erb (3)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/996.patch
https://github.com/openstreetmap/openstreetmap-website/pull/996.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/996
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150624/6a9d88b6/attachment.html>
More information about the rails-dev
mailing list