forked from jenkinsci/branch-api-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.jelly
More file actions
36 lines (34 loc) · 1.53 KB
/
main.jelly
File metadata and controls
36 lines (34 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:t="/lib/hudson" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:userExperimentalFlag var="newDashboardPage" flagClassName="jenkins.model.experimentalflags.NewDashboardPageUserExperimentalFlag" />
<j:set var="views" value="${it.owner.views}"/>
<j:set var="currentView" value="${it}"/>
<j:if test="${items.isEmpty()}">
<j:if test="${!newDashboardPage}">
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
</j:if>
<st:include it="${it}" page="noJob.jelly"/>
</j:if>
<j:if test="${!items.isEmpty()}">
<j:choose>
<j:when test="${newDashboardPage}">
<div class="jenkins-inline-page">
<div class="jenkins-inline-page__side-panel">
<j:if test="${h.hasPermission(app.READ)}">
<j:forEach var="w" items="${it.widgets}">
<j:set var="view" value="${it}" />
<st:include it="${w}" page="index.jelly" />
</j:forEach>
</j:if>
</div>
<t:projectView jobs="${items}" showViewTabs="true" columnExtensions="${it.columns}" indenter="${it.indenter}" itemGroup="${it.owner.itemGroup}" />
</div>
</j:when>
<j:otherwise>
<t:projectView jobs="${items}" showViewTabs="true" columnExtensions="${it.columns}" indenter="${it.indenter}" itemGroup="${it.owner.itemGroup}">
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
</t:projectView>
</j:otherwise>
</j:choose>
</j:if>
</j:jelly>