ui.autopilot.relatedActions.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="autopilotActions" type="java.util.List" -->
<#-- @ftlvariable name="actionsSearchTerm" type="java.lang.String" -->
<#-- @ftlvariable name="maxActions" type="java.lang.Integer" -->
<#import "util.ftl" as autopilotUtil>
<#assign maxActions = maxActions!6>
<#if autopilotActions?size == 0>
----
<#else>
🔍
Action
Target
Time
Result
<#list autopilotActions as actionFlow>
<#if actionFlow?index gte maxActions >
...and ${autopilotActions?size - actionFlow?index} more action(s)
🔍
<#break>
#if>
<#assign actionDescription = actionFlow.metadata.description>
<#assign actionSearch = actionDescription.actionName?remove_ending("Action") + " " + actionDescription.targetType>
<#list actionFlow.metadata.attributes as attrKey, attrVal>
<#assign actionSearch = actionSearch + " " + attrVal>
#list>
🔍
${actionDescription.actionName?remove_ending("Action")}
<#list actionFlow.metadata.attributes as attrKey, attrVal>
${attrVal}
#list>
<@autopilotUtil.outcomeBadge outcomeType=actionFlow.outcomeType/>
#list>
#if>