提交 006cdddb 编写于 作者: K kohsuke

rendering nested views

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14033 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0fe86ccb
<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" xmlns:i="jelly:fmt">
<j:choose>
<j:when test="${empty(items)}">
<st:include page="noJob.jelly" />
</j:when>
<j:otherwise>
<!-- set @jobBaseUrl="" so that links to jobs will be under this view. -->
<t:projectView jobs="${items}" jobBaseUrl="" views="${it.views}" />
</j:otherwise>
</j:choose>
</j:jelly>
\ No newline at end of file
......@@ -7,6 +7,8 @@
@indenter:
optional Indenter instance used to indent items.
@views:
if non-null, render nested views
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson" xmlns:f="/lib/form">
......@@ -34,8 +36,21 @@
</th>
</tr>
<j:forEach var="v" items="${attrs.views}">
<tr>
<td colspan="2" style="text-align: center">
<img src="${imagesURL}/${iconSize}/folder.gif" alt="" />
</td>
<td colspan="5">
<a href="${rootURL}/${v.url}">
${v.viewName}
</a>
</td>
</tr>
</j:forEach>
<j:forEach var="job" items="${jobs}">
<t:projectViewRow job="${job}" indenter="${indenter}"/>
<t:projectViewRow />
</j:forEach>
</table>
<t:rssBar-with-iconSize/>
......
<!--
Variables:
job : job to draw
indenter
Attributes:
@job : job to draw
@indenter
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson" xmlns:f="/lib/form">
......
此差异由.gitattributes 抑制。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册