提交 2b47a0fe 编写于 作者: K Kohsuke Kawaguchi

moving this logic to <layout> tag as it doesn't have anything to do with View.

上级 73d3b851
......@@ -23,19 +23,6 @@ THE SOFTWARE.
-->
<st:compress xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<j:new var="h" className="hudson.Functions" /><!-- instead of JSP functions -->
<j:if test="${request.servletPath=='/' || request.servletPath==''}">
<st:header name="X-Hudson" value="1.395" />
<st:header name="X-Jenkins" value="${servletContext.getAttribute('version')}" />
<j:if test="${app.tcpSlaveAgentListener!=null}">
<!-- advertise the CLI TCP port -->
<st:header name="X-Hudson-CLI-Port" value="${app.tcpSlaveAgentListener.port}" />
<st:header name="X-Jenkins-CLI-Port" value="${app.tcpSlaveAgentListener.port}" />
</j:if>
<j:forEach var="pd" items="${h.pageDecorators}">
<st:include it="${pd}" page="httpHeaders.jelly" optional="true" />
</j:forEach>
</j:if>
<l:layout title="${it.class.name=='hudson.model.AllView' ? '%Dashboard' : it.viewName}">
<st:include page="sidepanel.jelly" />
<l:main-panel>
......
......@@ -69,7 +69,19 @@ THE SOFTWARE.
-->
<j:set var="resURL" value="${rootURL}${h.resourcePath}" />
<j:set var="imagesURL" value="${rootURL}${h.resourcePath}/images" />
<html>
<j:if test="${request.servletPath=='/' || request.servletPath==''}">
<st:header name="X-Hudson" value="1.395"/>
<st:header name="X-Jenkins" value="${servletContext.getAttribute('version')}"/>
<j:if test="${app.tcpSlaveAgentListener!=null}">
<!-- advertise the CLI TCP port -->
<st:header name="X-Hudson-CLI-Port" value="${app.tcpSlaveAgentListener.port}"/>
<st:header name="X-Jenkins-CLI-Port" value="${app.tcpSlaveAgentListener.port}"/>
</j:if>
<j:forEach var="pd" items="${h.pageDecorators}">
<st:include it="${pd}" page="httpHeaders.jelly" optional="true"/>
</j:forEach>
</j:if>
<html>
<head>
${h.checkPermission(it,permission)}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册