提交 507af4ee 编写于 作者: M mindless

[FIXED HUDSON-2908] Show view tabs even when view shows no jobs


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15039 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f0322414
<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="" showViewTabs="true" columnExtensions="${it.columns}">
<j:choose xmlns:local="local">
<d:taglib uri="local">
<d:tag name="viewTabs">
<!-- view tab bar -->
<l:tabBar>
<j:forEach var="v" items="${app.views}">
......@@ -15,7 +11,18 @@
<l:tab name="+" href="${rootURL}/newView" active="false" />
</j:if>
</l:tabBar>
</d:tag>
</d:taglib>
<j:when test="${empty(items)}">
<local:viewTabs/>
<br/>
<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="" showViewTabs="true" columnExtensions="${it.columns}">
<local:viewTabs/>
</t:projectView>
</j:otherwise>
</j:choose>
</j:jelly>
\ No newline at end of file
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册