提交 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: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:choose xmlns:local="local">
<j:when test="${empty(items)}"> <d:taglib uri="local">
<st:include page="noJob.jelly" /> <d:tag name="viewTabs">
</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}">
<!-- view tab bar --> <!-- view tab bar -->
<l:tabBar> <l:tabBar>
<j:forEach var="v" items="${app.views}"> <j:forEach var="v" items="${app.views}">
...@@ -15,7 +11,18 @@ ...@@ -15,7 +11,18 @@
<l:tab name="+" href="${rootURL}/newView" active="false" /> <l:tab name="+" href="${rootURL}/newView" active="false" />
</j:if> </j:if>
</l:tabBar> </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> </t:projectView>
</j:otherwise> </j:otherwise>
</j:choose> </j:choose>
</j:jelly> </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.
先完成此消息的编辑!
想要评论请 注册