Skip to content

Commit

Permalink
add app bar and move edit description
Browse files Browse the repository at this point in the history
this also adds an icon to the app bar as we have it for freestyle
projects.
  • Loading branch information
mawinter69 committed May 30, 2024
1 parent 084e85a commit 8133b07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<jenkins.version>2.440.3</jenkins.version>
<jenkins.version>2.461-rc34998.da_5964da_3eb_b_</jenkins.version>
<spotbugs.skip>true</spotbugs.skip> <!-- Clean up redundant null check warnings and re-enable after SECURITY-1339 is released -->
</properties>
<licenses>
Expand Down
17 changes: 15 additions & 2 deletions src/main/resources/hudson/matrix/MatrixProject/index.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@ THE SOFTWARE.
<l:layout title="${it.name}">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1 class="matrix-project-headline page-headline">${%Project} <l:breakable value="${it.displayName}"/></h1>
<div class="jenkins-app-bar">
<div class="jenkins-app-bar__content jenkins-build-caption">
<j:set var="lastBuild" value="${it.lastBuild}" />
<j:if test="${lastBuild != null}">
<a href="${rootURL + '/' + lastBuild.url}" class="jenkins-!-display-contents" tabindex="-1">
<l:icon src="symbol-status-${lastBuild.iconColor.iconName}" tooltip="${lastBuild.iconColor.description}"/>
</a>
</j:if>
<h1 class="matrix-project-headline page-headline"><l:breakable value="${it.displayName}"/></h1>
</div>
<div class="jenkins-app-bar__controls">
<t:editDescriptionButton permission="${it.CONFIGURE}"/>
</div>
</div>
<j:if test="${it.name!=it.displayName}">
${%Project name}: ${it.fullName}
</j:if>
<t:editableDescription permission="${it.CONFIGURE}"/>
<t:editableDescription permission="${it.CONFIGURE}" hideButton="true"/>

<st:include page="makeDisabled.jelly" />

Expand Down

0 comments on commit 8133b07

Please sign in to comment.