ui.history.commitsTable.ftl Maven / Gradle / Ivy
<#-- @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>
<#if useDatatable>style="display: none;"#if>>
Type
Entity
Name
User
Commit
Message
<#assign changesCount = 0>
<#list allCommits as changeCommit>
<#list changeCommit.changes as change>
<#assign changesCount++>
<#if changeCommit.commit.merge>
MERGE
#if>
${change.changeType}
<#-- @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>
TOPIC
${topicChange.topicName}
<#break>
<#case "ClusterChange">
<#assign clusterChange = change>
CLUSTER
${clusterChange.identifier}
<#break>
<#case "AclsChange">
<#assign aclsChange = change>
ACLs
${aclsChange.principal}
<#break>
<#case "QuotasChange">
<#assign quotasChange = change>
QUOTA
${quotasChange.entityID}
<#break>
<#default>
<#break>
#switch>
${changeCommit.commit.username}
${util.commitHashUrl(changeCommit.commit.commitId, gitCommitBaseUrl!'', gitEmbeddedBrowse)}
#list>
#list>
<#if !useDatatable && changesCount == 0>
(no commits)
#if>