ui.common.pendingChanges.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="pendingRequests" type="java.util.List" -->
<#-- @ftlvariable name="gitBranchBaseUrl" type="java.lang.String" -->
<#-- @ftlvariable name="gitCommitBaseUrl" type="java.lang.String" -->
<#-- @ftlvariable name="gitEmbeddedBrowse" type="java.lang.Boolean" -->
<#import "documentation.ftl" as doc>
<#import "infoIcon.ftl" as info>
<#import "util.ftl" as _util_>
<#if pendingRequests?? && pendingRequests?size != 0>
<#list pendingRequests as request>
<#assign branchName = "refs/heads/" + request.branch>
<#if request.errorMsg??>
Corrupted content!
#if>
${request.type.name()} in
<#if gitBranchBaseUrl??>
<#assign url = gitBranchBaseUrl + branchName?url>
${request.branch}
<#elseif gitEmbeddedBrowse>
${request.branch}
<#else>
branch '${request.branch}'
#if>
<#if (request.commitChanges?size > 1)>
commits:
<#else>
commit:
#if>
<#list request.commitChanges as commitChange>
<#assign commit = commitChange.commit>
<#assign tooltipHtml>
${commit.username}
${(commit.timestampSec*1000)?number_to_datetime} UTC
${commit.message}
#assign>
<@info.icon tooltip=tooltipHtml/>
<#if gitCommitBaseUrl??>
<#assign commitUrl = gitCommitBaseUrl + commit.commitId>
target="_blank"#if>
href="${commitUrl}">${commit.commitId?substring(0, 6)}<#if !commitChange?is_last>, #if>
<#else>
${commit.commitId?substring(0, 6)}<#if !commitChange?is_last>, #if>
#if>
#list>
<#if request.class.getSimpleName() == "ClusterRequest">
<#-- @ftlvariable name="clusterRequest" type="com.infobip.kafkistry.service.history.ClusterRequest" -->
<#assign clusterRequest = request>
#if>
<#if request.class.getSimpleName() == "TopicRequest">
<#-- @ftlvariable name="topicRequest" type="com.infobip.kafkistry.service.history.TopicRequest" -->
<#assign topicRequest = request>
#if>
<#if request.class.getSimpleName() == "AclsRequest">
<#-- @ftlvariable name="aclsRequest" type="com.infobip.kafkistry.service.history.AclsRequest" -->
<#assign aclsRequest = request>
#if>
<#if request.class.getSimpleName() == "QuotasRequest">
<#-- @ftlvariable name="quotasRequest" type="com.infobip.kafkistry.service.quotas.QuotasRequest" -->
<#assign quotasRequest = request>
#if>
<#if !request?is_last>
#if>
#list>
<#else>
-----
#if>