All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.common.topicOnClusterAction.ftl Maven / Gradle / Ivy

The newest version!
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="availableActions"  type="java.util.List" -->
<#-- @ftlvariable name="topicName"  type="java.lang.String" -->
<#-- @ftlvariable name="clusterIdentifier"  type="java.lang.String" -->

<#import "documentation.ftl" as doc>
<#import "infoIcon.ftl" as info>

<#list availableActions as action>
    <#switch action>
        <#case "CREATE_TOPIC">
            <#assign url = appUrl.topicsManagement().showCreateMissingTopic(topicName, clusterIdentifier)>
            <#assign btnText>
                Create topic on kafka... <@info.icon tooltip=doc.createTopicOnKafkaBtn/>
            
            
            <#break>
        <#case "SUGGESTED_EDIT">
            <#assign url = appUrl.topics().showSuggestEditTopic(topicName)>
            <#assign btnText>
                Suggested edit... <@info.icon tooltip=doc.suggestedEditBtn/>
            
            
            <#break>
        <#case "MANUAL_EDIT">
            <#assign url = appUrl.topics().showEditTopic(topicName)>
            <#assign btnText>
                Manual edit... <@info.icon tooltip=doc.manualEditBtn/>
            
            
            <#break>
        <#case "FIX_VIOLATIONS_EDIT">
            <#assign url = appUrl.topics().showFixViolationsEdit(topicName)>
            <#assign btnText>
                Fix violations edit... <@info.icon tooltip=doc.fixViolationsEditBtn/>
            
            
            <#break>
        <#case "DELETE_TOPIC_ON_KAFKA">
            <#assign url = appUrl.topicsManagement().showDeleteTopicOnCluster(topicName, clusterIdentifier)>
            <#assign btnText>
                Delete topic on kafka... <@info.icon tooltip=doc.deleteClusterTopicBtn/>
            
            
            <#break>
        <#case "IMPORT_TOPIC">
            <#assign url = appUrl.topics().showImportTopic(topicName)>
            <#assign btnText>
                Import topic... <@info.icon tooltip=doc.importTopicBtn/>
            
            
            <#break>
        <#case "ALTER_TOPIC_CONFIG">
            <#assign url = appUrl.topicsManagement().showTopicConfigUpdate(topicName, clusterIdentifier)>
            <#assign btnText>
                Update topic config... <@info.icon tooltip=doc.alterTopicConfigBtn/>
            
            
            <#break>
        <#case "ALTER_PARTITION_COUNT">
            <#assign url = appUrl.topicsManagement().showTopicPartitionCountChange(topicName, clusterIdentifier)>
            <#assign btnText>
                Apply partition count change... <@info.icon tooltip=doc.alterTopicPartitionCountBtn/>
            
            
            <#break>
        <#case "ALTER_REPLICATION_FACTOR">
            <#assign url = appUrl.topicsManagement().showTopicReplicationFactorChange(topicName, clusterIdentifier)>
            <#assign btnText>
                Apply replication factor change... <@info.icon tooltip=doc.alterTopicReplicationFactorBtn/>
            
            
            <#break>
        <#case "RE_BALANCE_ASSIGNMENTS">
            <#assign url = appUrl.topicsManagement().showTopicReBalance(topicName, clusterIdentifier, "REPLICAS_THEN_LEADERS")>
            <#assign btnText>
                Re-balance replica assignments... <@info.icon tooltip=doc.reBalanceTopicReplicaAssignments/>
            
            
            <#break>
        <#case "INSPECT_TOPIC">
            <#assign url = appUrl.topics().showInspectTopicOnCluster(topicName, clusterIdentifier)>
            <#assign btnText>
                Show topic assignment inspection... <@info.icon tooltip=doc.showTopicInspectionBtn/>
            
            
            <#break>
    

<#if availableActions?size == 0>
    ----





© 2015 - 2025 Weber Informatics LLC | Privacy Policy