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

ui.history.commitsTable.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="allCommits" type="java.util.List>" -->
<#-- @ftlvariable name="gitCommitBaseUrl"  type="java.lang.String" -->
<#-- @ftlvariable name="gitEmbeddedBrowse"  type="java.lang.Boolean" -->
<#-- @ftlvariable name="jiraBaseUrl"  type="java.lang.String" -->

<#-- @ftlvariable name="datatableId"  type="java.lang.String" -->
<#-- @ftlvariable name="useDatatable"  type="java.lang.Boolean" -->

<#import "../common/util.ftl" as util>

id="${datatableId}"
       <#if useDatatable>style="display: none;">
    
    <#assign changesCount = 0>
    <#list allCommits as changeCommit>
        <#list changeCommit.changes as change>
            <#assign changesCount++>
            

                <#-- @ftlvariable name="topicChange" type="com.infobip.kafkistry.service.history.TopicChange" -->
                <#-- @ftlvariable name="clusterChange" type="com.infobip.kafkistry.service.history.ClusterChange" -->
                <#-- @ftlvariable name="aclsChange" type="com.infobip.kafkistry.service.history.AclsChange" -->
                <#-- @ftlvariable name="quotasChange" type="com.infobip.kafkistry.service.quotas.QuotasChange" -->
                <#switch change.class.getSimpleName()>
                    <#case "TopicChange">
                        <#assign topicChange = change>
                        
                        <#break>
                    <#case "ClusterChange">
                        <#assign clusterChange = change>
                        
                        <#break>
                    <#case "AclsChange">
                        <#assign aclsChange = change>
                        
                        <#break>
                    <#case "QuotasChange">
                        <#assign quotasChange = change>
                        
                        <#break>
                    <#default>
                        
                        <#break>
                
    <#if !useDatatable && changesCount == 0>
        
Type Entity Name User Commit Message
<#if changeCommit.commit.merge> MERGE ${change.changeType} TOPIC ${topicChange.topicName} CLUSTER ${clusterChange.identifier} ACLs ${aclsChange.principal} QUOTA ${quotasChange.entityID} ${changeCommit.commit.username} ${util.commitHashUrl(changeCommit.commit.commitId, gitCommitBaseUrl!'', gitEmbeddedBrowse)}
${changeCommit.commit.message}
(no commits)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy