Skip to content

Commit 167c280

Browse files
authored
Merge pull request #805 from alecharp/bug/fixes-branches-tab-duplication
New dashboard page UX duplicates branches button
2 parents 7fc9bfa + 1acd6cc commit 167c280

File tree

1 file changed

+8
-3
lines changed
  • src/main/resources/jenkins/branch/BaseView

1 file changed

+8
-3
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<?jelly escape-by-default='true'?>
2-
<j:jelly xmlns:j="jelly:core" xmlns:t="/lib/hudson" xmlns:st="jelly:stapler">
2+
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:st="jelly:stapler">
33
<j:set var="views" value="${it.owner.views}"/>
44
<j:set var="currentView" value="${it}"/>
5+
<l:userExperimentalFlag var="newDashboardPage" flagClassName="jenkins.model.experimentalflags.NewDashboardPageUserExperimentalFlag"/>
56
<j:if test="${items.isEmpty()}">
6-
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
7+
<j:if test="${!newDashboardPage}">
8+
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
9+
</j:if>
710
<st:include it="${it}" page="noJob.jelly"/>
811
</j:if>
912
<j:if test="${!items.isEmpty()}">
1013
<t:projectView jobs="${items}" showViewTabs="true" columnExtensions="${it.columns}" indenter="${it.indenter}" itemGroup="${it.owner.itemGroup}">
11-
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
14+
<j:if test="${!newDashboardPage}">
15+
<st:include it="${it.owner.viewsTabBar}" page="viewTabs"/>
16+
</j:if>
1217
</t:projectView>
1318
</j:if>
1419
</j:jelly>

0 commit comments

Comments
 (0)