提交 ab6d05cd 编写于 作者: K kohsuke

title can be optional.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5453 71c3de6d-444a-0410-be80-ed276b4c234a
上级 358a9cd5
......@@ -7,7 +7,7 @@
<%@ attribute name="varName" required="true" type="java.lang.String" description="used as a variable name as well as block name" %>
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:section title="${title}">
<f:section title="${attrs.title}">
<d:invokeBody />
<j:forEach var="d" items="${descriptors}" varStatus="loop">
<f:optionalBlock name="${varName}${loop.index}" help="${d.helpFile}"
......
<!--
Section header
<%@attribute name="title" required="true" %>
@title becomes the section header. If that is not specified section header becomes no-op.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:block>
<div style="font-weight:bold; border-bottom: 1px solid black; margin-bottom:0.2em; margin-top:0.4em">
${title}
</div>
</f:block>
<j:if test="${attrs.title!=null}">
<f:block>
<div style="font-weight:bold; border-bottom: 1px solid black; margin-bottom:0.2em; margin-top:0.4em">
${attrs.title}
</div>
</f:block>
</j:if>
<d:invokeBody />
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册