Move experimental run sidepanel to overflow (#11127)

This commit is contained in:
Jan Faracik 2025-10-01 16:16:43 +01:00 committed by GitHub
parent 865bff5565
commit f7c1f67dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 67 additions and 20 deletions

View File

@ -30,7 +30,17 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:userExperimentalFlag var="newBuildPage" flagClassName="jenkins.model.experimentalflags.NewBuildPageUserExperimentalFlag" />
<j:set var="buildUrl" value="${h.decompose(request2)}" />
<j:choose>
<j:when test="${newBuildPage}">
<st:include page="tasks.jelly"/>
<st:include page="actions.jelly" />
<t:actions actions="${it.transientActions}"/>
<st:include page="delete.jelly" />
</j:when>
<j:otherwise>
<st:include page="tasks.jelly"/>
<st:include page="delete.jelly" />
<st:include page="actions.jelly" />
@ -41,6 +51,8 @@ THE SOFTWARE.
<j:if test="${it.nextBuild!=null}">
<l:task contextMenu="false" href="${buildUrl.nextBuildUrl}" icon="icon-next icon-md" title="${%Next Build}"/>
</j:if>
</j:otherwise>
</j:choose>
</l:tasks>
</l:side-panel>
</j:jelly>

View File

@ -27,6 +27,20 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:p="/lib/hudson/project">
<j:choose>
<j:when test="${newBuildPage}">
<l:task href="${buildUrl.baseUrl}/changes" icon="symbol-changes" title="${%Changes}"/>
<p:console-link/>
<j:choose>
<j:when test="${h.hasPermission(it,it.UPDATE)}">
<l:task icon="symbol-edit-note" href="${buildUrl.baseUrl}/configure" title="${%Edit Build Information}"/>
</j:when>
<j:otherwise>
<l:task icon="symbol-view" href="${buildUrl.baseUrl}/configure" title="${%View Build Information}"/>
</j:otherwise>
</j:choose>
</j:when>
<j:otherwise>
<l:task contextMenu="false" href="${buildUrl.baseUrl}/" icon="symbol-details" title="${%Status}"/>
<l:task href="${buildUrl.baseUrl}/changes" icon="symbol-changes" title="${%Changes}"/>
<p:console-link/>
@ -38,4 +52,6 @@ THE SOFTWARE.
<l:task icon="symbol-view" href="${buildUrl.baseUrl}/configure" title="${%View Build Information}"/>
</j:otherwise>
</j:choose>
</j:otherwise>
</j:choose>
</j:jelly>

View File

@ -24,18 +24,23 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:x="jelly:xml">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:dd="/lib/layout/dropdowns">
<l:layout title="${it.fullDisplayName}">
<st:include page="sidepanel.jelly" />
<!-- no need for additional breadcrumb here as we're on an index page already including breadcrumb -->
<l:main-panel>
<script src="${resURL}/jsbundles/pages/job.js" type="text/javascript" defer="true" />
<j:set var="controls">
<l:hasPermission permission="${it.UPDATE}">
<st:include page="logKeep.jelly" />
</l:hasPermission>
<l:overflowButton>
<dd:custom>
<div class="app-build-overflow">
<j:set var="mode" value="side-panel" />
<st:include page="sidepanel.jelly" />
</div>
</dd:custom>
</l:overflowButton>
</j:set>
<t:buildCaption controls="${controls}">${it.displayName}</t:buildCaption>

View File

@ -94,6 +94,20 @@
}
}
.app-build-overflow {
#side-panel {
width: 250px !important;
#tasks {
margin: 0;
.task {
margin-left: unset !important;
}
}
}
}
.app-console-output-widget {
overflow-y: auto;
margin: 0 -1rem -1rem;