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

add timestamp to block overview #1769

Merged
merged 7 commits into from
Apr 18, 2019
Merged

Conversation

ayrat555
Copy link
Contributor

fixes #1764

Changelog

  • add timestamp to block overview

@ghost ghost assigned ayrat555 Apr 17, 2019
@ghost ghost added the in progress label Apr 17, 2019
@coveralls
Copy link

coveralls commented Apr 17, 2019

Pull Request Test Coverage Report for Build ba05a21c-7769-4fe3-a79d-72bbc39a6b5f

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 83.045%

Totals Coverage Status
Change from base Build b0a66d23-4834-4598-8db6-2ffcbb32a01e: 0.08%
Covered Lines: 4423
Relevant Lines: 5326

💛 - Coveralls

@@ -22,7 +22,7 @@ function updateAge (el, timestamp) {
let fromNow = timestamp.fromNow()
// show the exact time only for transaction details page. Otherwise, short entry
const elInTile = el.hasAttribute('in-tile')
if (window.location.pathname.includes('/tx/') && !elInTile) {
if ((window.location.pathname.includes('/tx/') || window.location.pathname.includes('/blocks/')) && !elInTile) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayrat555in We need to display a full time only in the block details:
Screenshot 2019-04-18 at 14 19 41

I suppose, after these changes, the full time will be displayed in tiles also Screenshot 2019-04-18 at 14 17 01

, and it will break the tile view.

Datetime elements in tiles should be marked with an attribute in-tile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vbaranov I think everything's ok img

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, cool. Could you please check /blocks page with all blocks. Are the tiles not broken there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's ok because I didn't delete !elInTile

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, then. Approved.

@vbaranov vbaranov self-requested a review April 18, 2019 12:00
@ayrat555 ayrat555 merged commit eab8387 into master Apr 18, 2019
@ayrat555 ayrat555 deleted the ab-timestamp-block-overview branch April 18, 2019 13:57
@ghost ghost removed the in progress label Apr 18, 2019
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.

Add timestamp to the "Block Details" page
5 participants