From 06e3b605a531ba60990b2b99d0dd676a1b3f5f43 Mon Sep 17 00:00:00 2001 From: Martin Lowe <martin.lowe@eclipse-foundation.org> Date: Mon, 26 Jun 2023 13:15:21 -0400 Subject: [PATCH 1/2] Add project PR context when available to the status page --- src/main/resources/templates/simple_fingerprint_ui.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/templates/simple_fingerprint_ui.html b/src/main/resources/templates/simple_fingerprint_ui.html index c7652fd2..19ff5418 100644 --- a/src/main/resources/templates/simple_fingerprint_ui.html +++ b/src/main/resources/templates/simple_fingerprint_ui.html @@ -24,6 +24,10 @@ .icon-toggle.glyphicon { top: 3px; } + + a.underline { + text-decoration: underline; + } </style>|} <div class="container" id="main-page-content"> @@ -64,6 +68,11 @@ NO {/if} </li> + {#if fullRepoName ne null && pullRequestNumber ne null && statuses.0.provider == ProviderType:GITHUB} + <li> + <strong>Pull request:</strong> <a href="https://github.com/{fullRepoName}/pull/{pullRequestNumber}" target="_blank" >#{pullRequestNumber}</a> + </li> + {/if} </ul> <a href="{repoUrl}" target="_blank" class="btn btn-primary margin-top-10">Project repository</a> </div> -- GitLab From 1d6ae056c7f92eff7e8ae6bef8a2bc0a40192a99 Mon Sep 17 00:00:00 2001 From: Martin Lowe <martin.lowe@eclipse-foundation.org> Date: Wed, 28 Jun 2023 09:49:12 -0400 Subject: [PATCH 2/2] Add missing underline class for PR number link --- src/main/resources/templates/simple_fingerprint_ui.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/simple_fingerprint_ui.html b/src/main/resources/templates/simple_fingerprint_ui.html index 19ff5418..358cefb5 100644 --- a/src/main/resources/templates/simple_fingerprint_ui.html +++ b/src/main/resources/templates/simple_fingerprint_ui.html @@ -70,7 +70,7 @@ </li> {#if fullRepoName ne null && pullRequestNumber ne null && statuses.0.provider == ProviderType:GITHUB} <li> - <strong>Pull request:</strong> <a href="https://github.com/{fullRepoName}/pull/{pullRequestNumber}" target="_blank" >#{pullRequestNumber}</a> + <strong>Pull request:</strong> <a class="underline" href="https://github.com/{fullRepoName}/pull/{pullRequestNumber}" target="_blank" >#{pullRequestNumber}</a> </li> {/if} </ul> -- GitLab