ui.topics.topic.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="topic" type="com.infobip.kafkistry.service.topic.TopicStatuses" -->
<#-- @ftlvariable name="topicOwned" type="java.lang.Boolean" -->
<#-- @ftlvariable name="pendingTopicRequests" type="java.util.List" -->
<#-- @ftlvariable name="gitStorageEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="autopilotEnabled" type="java.lang.Boolean" -->
<#-- @ftlvariable name="autopilotActions" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: Topic
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "../common/infoIcon.ftl" as info>
<#import "../common/documentation.ftl" as doc>
<#assign topicName = topic.topicName>
<#assign existInRegistry = topic.topicDescription??>
Topic: ${topicName}
Name
${topicName}
Topic in registry
<@util.inRegistry flag = existInRegistry/>
Owner
<#if existInRegistry>
${topic.topicDescription.owner}
<#if topicOwned>
<@util.yourOwned what="topic"/>
#if>
<#else>
[none]
#if>
<#if existInRegistry>
Description
${topic.topicDescription.description}
Labels
<#if topic.topicDescription.labels?size == 0>
---
<#else>
<#list topic.topicDescription.labels as label>
${label.category}
${label.name}
#list>
#if>
Producer
${topic.topicDescription.producer}
Presence
<@util.presence presence = topic.topicDescription.presence/>
Frozen properties
<#if topic.topicDescription.freezeDirectives?size == 0>
---
<#else>
<#assign padlockSymol>🔒#assign>
<#list topic.topicDescription.freezeDirectives as freezeDirectve>
-
Reason: ${freezeDirectve.reasonMessage}
<#if freezeDirectve.partitionCount>
- Partition count ${padlockSymol}
#if>
<#if freezeDirectve.replicationFactor>
- Replication factor ${padlockSymol}
#if>
<#list freezeDirectve.configProperties as frozenProperty>
${frozenProperty}
${padlockSymol}
#list>
#list>
#if>
#if>
Status over
all clusters
<#assign statusFlags = topic.aggStatusFlags>
<#assign clusterStatusFlags = util.clusterStatusFlags(topic.statusPerClusters)>
<#include "../common/statusFlags.ftl">
<#if gitStorageEnabled>
Pending changes
<#assign pendingRequests = (pendingTopicRequests![]) >
<#include "../common/pendingChanges.ftl" >
#if>
<#if autopilotEnabled>
Autopilot
<#assign actionsSearchTerm = topicName>
<#include "../autopilot/relatedActions.ftl">
#if>
Actions
<#assign topicActions = util.enumListToStringList(topic.availableActions)>
<#if existInRegistry>
<#if topicActions?seq_contains("CREATE_TOPIC")>
#if>
<#if topicActions?seq_contains("ALTER_TOPIC_CONFIG")>
#if>
<#else>
<#if topicActions?seq_contains("IMPORT_TOPIC")>
#if>
#if>
<#if topicActions?seq_contains("DELETE_TOPIC_ON_KAFKA")>
#if>
Statuses per clusters
<#if existInRegistry>
<#if gitStorageEnabled>
<#assign historyUrl = appUrl.topics().showTopicHistory(topicName)>
<#include "../git/entityHistoryContainer.ftl">
#if>
Topic description in registry
File name:
#if>
<#include "../common/pageBottom.ftl">