ui.quotas.util.ftl Maven / Gradle / Ivy
<#macro entity entity>
<#-- @ftlvariable name="entity" type="com.infobip.kafkistry.model.QuotaEntity" -->
<#if !entity.userIsAny()>
User
<#if entity.userIsDefault()>
DEFAULT
<#else>
${entity.user}
#if>
#if>
<#if !entity.userIsAny() && !entity.clientIsAny()>|#if>
<#if !entity.clientIsAny()>
ClientId
<#if entity.clientIsDefault()>
DEFAULT
<#else>
${entity.clientId}
#if>
#if>
#macro>
<#macro quotaValue inspection source name suffix>
<#if (inspection[source])??>
<#if (inspection[source][name])??>
<#assign value = inspection[source][name]>
${value}${suffix}
<#else>
NONE
#if>
<#else>
---
#if>
#macro>