-
Notifications
You must be signed in to change notification settings - Fork 256
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
Show elapsed minutes on scoreboard #2133
Conversation
Looks a bit cluttered IMHO. Don't have a great idea though that's better than this. |
I can put it behind a config flag if that is better. |
started: | ||
{{ current_contest.starttime | printelapsedminutes(now) }} at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep it simple and use printtimediff
here. That also renders something like 221 minutes
more readably as 3:41
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the point was to show exactly 221 minutes since you don't need to do further math to relate to the numbers in the scoreboard.
This should be updated based on whats in the linked issue. |
77d0b6b
to
26fd96b
Compare
26fd96b
to
73b959e
Compare
b4baf75
to
cfad1a5
Compare
This should be an implementation for: #2064
There is a micro optimization to deduplicate the
now
by merging the last elseif...else and than introducing an if, I found that less readable and moving thisnow
higher would trigger this always for every scoreboard and given that its a public page that felt annoying.I'm not sure if the
printremainingminutes
&printelapsedminutes
shouldn't be merged with a boolean flag to keep them together, now they are basically each others inverse.