ui.common.pendingChangeRequests.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="pendingUpdates" type="java.util.Map>" -->
<#-- @ftlvariable name="entityName" type="java.lang.String" -->
Pending ${entityName} updates
<#if pendingUpdates?size == 0>
(no pending update requests)
<#else>
${entityName}
Pending branch/commits
<#list pendingUpdates as id, pendingRequests>
<#assign onlyAdd = true>
<#list pendingRequests as pendingRequest>
<#if pendingRequest.type.name() != "ADD">
<#assign onlyAdd = false>
<#break>
#if>
#list>
<#if onlyAdd>
${id}
<#elseif pendingRequests?first.class.getSimpleName() == "TopicRequest">
${id}
<#elseif pendingRequests?first.class.getSimpleName() == "ClusterRequest">
${id}
<#elseif pendingRequests?first.class.getSimpleName() == "AclsRequest">
${id}
<#elseif pendingRequests?first.class.getSimpleName() == "QuotasRequest">
${id}
<#else>
${id}
#if>
<#include "pendingChanges.ftl">
#list>
#if>