ui.commonMenu.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="kafkistryUser" type="com.infobip.kafkistry.webapp.security.User" -->
<#-- @ftlvariable name="_csrf" type="org.springframework.security.web.csrf.CsrfToken" -->
<#-- @ftlvariable name="autopilotEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="gitStorageEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="securityEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="menuItems" type="java.util.List" -->
<#-- @ftlvariable name="backgroundJobIssueGroups" type="java.util.List" -->
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="imageProps" type="com.infobip.kafkistry.webapp.ImageProperties" -->
<#-- @ftlvariable name="customUserDetailsTemplate" type="java.lang.String" -->
<#import "common/documentation.ftl" as _doc>
<#import "common/infoIcon.ftl" as _info>
<#import "common/util.ftl" as _util>
<#assign maxShown = 6>
<#assign issuesCount = 0>
<#list backgroundJobIssueGroups as issuesGroup>
<#assign issuesCount += issuesGroup.issues?size>
#list>
<#assign elemIndex = 0>
<#assign shownCount = 0>
<#list backgroundJobIssueGroups as issuesGroup>
<#if issuesGroup.issues?size gt 1>
style="display: none;" #if>>
▼
△
<#list issuesGroup.issues as issue>
-
#list>
<#if elemIndex lt maxShown>
<#assign shownCount += issuesGroup.issues?size>
#if>
<#assign elemIndex++>
<#else>
<#list issuesGroup.issues as issue>
style="display: none;" #if>>
▼
△
<#if elemIndex lt maxShown>
<#assign shownCount++>
#if>
<#assign elemIndex++>
#list>
#if>
#list>
<#assign leftIssues = issuesCount - shownCount>
<#if leftIssues gt 0>
#if>