Skip to content

Commit

Permalink
Merge pull request #9014 from krisstern/feat/stable-2.440/backporting…
Browse files Browse the repository at this point in the history
…-2.440.2-1

Backporting for LTS 2.440.2
  • Loading branch information
krisstern authored Mar 7, 2024
2 parents 3bfef8d + 57ab550 commit c43a863
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
7 changes: 7 additions & 0 deletions core/src/main/resources/hudson/model/Job/buildTimeTrend.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ THE SOFTWARE.
<l:icon src="symbol-status-nobuilt" id="nobuilt" />
<l:icon src="symbol-status-aborted" id="aborted" />
<l:icon src="symbol-status-disabled" id="disabled" />

<l:icon src="symbol-status-blue-anime" id="blue-anime" />
<l:icon src="symbol-status-yellow-anime" id="yellow-anime" />
<l:icon src="symbol-status-red-anime" id="red-anime" />
<l:icon src="symbol-status-nobuilt-anime" id="nobuilt-anime" />
<l:icon src="symbol-status-aborted-anime" id="aborted-anime" />
<l:icon src="symbol-status-disabled-anime" id="disabled-anime" />
</template>
<h1>${%Build Time Trend}</h1>
<div align="center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ window.buildTimeTrend_displayBuilds = function (data) {
*/
function generateSVGIcon(iconName) {
const icons = document.querySelector("#jenkins-build-status-icons");
iconName = iconName.replace("-anime", "");

return icons.content.querySelector(`#${iconName}`).cloneNode(true);
}
Expand Down
6 changes: 6 additions & 0 deletions core/src/main/resources/lib/hudson/buildListTable.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ THE SOFTWARE.
<l:icon src="symbol-status-nobuilt" id="nobuilt" />
<l:icon src="symbol-status-aborted" id="aborted" />
<l:icon src="symbol-status-disabled" id="disabled" />
<l:icon src="symbol-status-blue-anime" id="blue-anime" />
<l:icon src="symbol-status-yellow-anime" id="yellow-anime" />
<l:icon src="symbol-status-red-anime" id="red-anime" />
<l:icon src="symbol-status-nobuilt-anime" id="nobuilt-anime" />
<l:icon src="symbol-status-aborted-anime" id="aborted-anime" />
<l:icon src="symbol-status-disabled-anime" id="disabled-anime" />
<l:icon src="symbol-terminal" id="console" />
</template>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ THE SOFTWARE.
<bridge-method-injector.version>1.29</bridge-method-injector.version>
<spotless.check.skip>false</spotless.check.skip>
<!-- Make sure to keep the jetty-maven-plugin version in war/pom.xml in sync with the Jetty release in Winstone: -->
<winstone.version>6.16</winstone.version>
<winstone.version>6.18</winstone.version>
</properties>

<!--
Expand Down
2 changes: 1 addition & 1 deletion war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ THE SOFTWARE.
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>10.0.18</version>
<version>10.0.20</version>
<configuration>
<!--
Reload webapp when you hit ENTER. (See JETTY-282 for more)
Expand Down
14 changes: 8 additions & 6 deletions war/src/main/js/components/tooltips/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ function registerTooltip(element) {
element._tippy.destroy();
}

const tooltip = element.getAttribute("tooltip");
const htmlTooltip = element.getAttribute("data-html-tooltip");
if (
element.hasAttribute("tooltip") &&
!element.hasAttribute("data-html-tooltip")
tooltip !== null &&
tooltip.trim().length > 0 &&
(htmlTooltip === null || htmlTooltip.trim().length == 0)
) {
tippy(
element,
Object.assign(
{
content: (element) =>
element.getAttribute("tooltip").replace(/<br[ /]?\/?>|\\n/g, "\n"),
content: () => tooltip.replace(/<br[ /]?\/?>|\\n/g, "\n"),
onCreate(instance) {
instance.reference.setAttribute("title", instance.props.content);
},
Expand All @@ -44,12 +46,12 @@ function registerTooltip(element) {
);
}

if (element.hasAttribute("data-html-tooltip")) {
if (htmlTooltip !== null && htmlTooltip.trim().length > 0) {
tippy(
element,
Object.assign(
{
content: (element) => element.getAttribute("data-html-tooltip"),
content: () => htmlTooltip,
allowHTML: true,
onCreate(instance) {
instance.props.interactive =
Expand Down

0 comments on commit c43a863

Please sign in to comment.