From fd15b97426234529a7138647362010ac1b43c5b6 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Sat, 13 Jul 2024 13:59:05 +0200 Subject: [PATCH] use header taglib to decouple from core (#101) * use header taglib since 2.459 core provides the logo, search box and login parts of the header via a taglib for easier reuse in plugins. This avoids that we have to duplicate the code and do double maintenance. --- pom.xml | 2 +- .../CustomHeaderDecorator/header.jelly | 1 - .../headers/JenkinsHeader/headerContent.jelly | 8 ++- .../headers/LogoHeader/headerContent.jelly | 63 ++----------------- 4 files changed, 11 insertions(+), 63 deletions(-) diff --git a/pom.xml b/pom.xml index 46212eb..e953299 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ 999999-SNAPSHOT - 2.440.3 + 2.459 jenkinsci/customizable-header-plugin 20.8.0 1.22.19 diff --git a/src/main/resources/io/jenkins/plugins/customizable_header/CustomHeaderDecorator/header.jelly b/src/main/resources/io/jenkins/plugins/customizable_header/CustomHeaderDecorator/header.jelly index 7adf0b3..6569975 100644 --- a/src/main/resources/io/jenkins/plugins/customizable_header/CustomHeaderDecorator/header.jelly +++ b/src/main/resources/io/jenkins/plugins/customizable_header/CustomHeaderDecorator/header.jelly @@ -15,6 +15,5 @@ - diff --git a/src/main/resources/io/jenkins/plugins/customizable_header/headers/JenkinsHeader/headerContent.jelly b/src/main/resources/io/jenkins/plugins/customizable_header/headers/JenkinsHeader/headerContent.jelly index 2274cfd..acd2c1d 100644 --- a/src/main/resources/io/jenkins/plugins/customizable_header/headers/JenkinsHeader/headerContent.jelly +++ b/src/main/resources/io/jenkins/plugins/customizable_header/headers/JenkinsHeader/headerContent.jelly @@ -1,6 +1,10 @@ - - + + diff --git a/src/main/resources/io/jenkins/plugins/customizable_header/headers/LogoHeader/headerContent.jelly b/src/main/resources/io/jenkins/plugins/customizable_header/headers/LogoHeader/headerContent.jelly index 0841701..c416908 100644 --- a/src/main/resources/io/jenkins/plugins/customizable_header/headers/LogoHeader/headerContent.jelly +++ b/src/main/resources/io/jenkins/plugins/customizable_header/headers/LogoHeader/headerContent.jelly @@ -1,9 +1,9 @@ - + -