Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding user block start/end timestamps on block page #996

Closed
wants to merge 1 commit into from
Closed

Adding user block start/end timestamps on block page #996

wants to merge 1 commit into from

Conversation

ethan-nelson
Copy link

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

A block that was revoked after ~4 minutes:

Example block revocation

@ethan-nelson ethan-nelson changed the title Adding block start/end timestamps as abbreviation Adding user block start/end timestamps on block page Jun 24, 2015
@ethan-nelson
Copy link
Author

Note: second screenshot was prior to me adding a space character between Status: and the text.

@tomhughes
Copy link
Member

Thanks for the patch, but I wasn't particularly keen on showing both in one tooltip like that so I've take a slightly different approach in 4676179 and added a separate line for the creation time in the main view, with tooltips on both to get the details.

That also makes the creation time more visible, which is probably a better fix for #923.

@tomhughes tomhughes closed this Jun 25, 2015
@ethan-nelson
Copy link
Author

Great, thanks!

@ethan-nelson ethan-nelson deleted the extended-block-info branch June 25, 2015 16:58
sbagroy986 pushed a commit to sbagroy986/openstreetmap-website that referenced this pull request Jul 24, 2015
Display the creation time, as a friendly date with a tooltip for
the exact time, and add a tooltip to the expiry time.

Fixes openstreetmap#923 and openstreetmap#996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants