main.jelly 1.1 KB
Newer Older
1
<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">
2 3 4
  <j:choose xmlns:local="local">
    <d:taglib uri="local">
      <d:tag name="viewTabs">
5 6 7 8 9 10 11 12 13
        <!-- view tab bar -->
        <l:tabBar>
          <j:forEach var="v" items="${app.views}">
            <l:tab name="${v.viewName}" active="${v==it}" href="${rootURL}/${v.url}" />
          </j:forEach>
          <j:if test="${it.hasPermission(it.CREATE)}">
            <l:tab name="+" href="${rootURL}/newView" active="false" />
          </j:if>
        </l:tabBar>
14 15 16 17 18 19 20 21 22 23 24
      </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/>
25 26 27
      </t:projectView>
    </j:otherwise>
  </j:choose>
28
</j:jelly>