-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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 job duration as tooltip to build time in the build history widget #4453
Add job duration as tooltip to build time in the build history widget #4453
Conversation
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.
Looks good to me, thanks!
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.
Could you add a screenshot of what this looks like?
Retrigger CI |
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.
Thanks for the screenshot
<a class="tip model-link inside build-link" href="${link}" update-parent-class=".build-row"> | ||
<j:set var="linkTitleAttr" value=""/> | ||
<j:if test="${!build.building}"> | ||
<j:set var="linkTitleAttr">${%Took} ${build.durationString}</j:set> |
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.
The I18n string should probably be parameterized with ${build.durationString}
not all languages write it in that order.
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.
Some hint on how to do that?
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.
Here are some docs which are far from ideal: https://wiki.jenkins.io/display/JENKINS/Internationalization#Internationalization-Markingmessagesinjellyfiles
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 agree with @rsandell as the sentence could have a different order in another language.
Is something missing for a merge? |
re-triggering build |
I plan to merge it tomorrow if no negative feedback |
Thanks for your contribution @mguillem ! |
…ion-tooltip add job duration as tooltip to build time
Caused JENKINS-72743 |
This change simply adds the build duration as a tooltip of the displayed build date/time in the job's build history. This allows to quickly get the information without having to go to the build history trend page.
Proposed changelog entries