ui.clusters.pendingBranches.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="pendingBranches" type="java.util.List>" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="gitBranchBaseUrl" type="java.lang.String" -->
<#-- @ftlvariable name="gitCommitBaseUrl" type="java.lang.String" -->
<#-- @ftlvariable name="gitEmbeddedBrowse" type="java.lang.Boolean" -->
<#import "../common/infoIcon.ftl" as hInfo>
Pending branches
<#if pendingBranches?size == 0>
(no pending changes)
<#else>
Branch
Clusters
Commit
<#list pendingBranches as branchChanges>
<#if gitBranchBaseUrl??>
<#assign url = gitBranchBaseUrl + branchChanges.branch?url>
${branchChanges.branch}
<#elseif gitEmbeddedBrowse>
${branchChanges.branch}
<#else>
branch '${branchChanges.branch}'
#if>
<#list branchChanges.requests as clusterRequest>
${clusterRequest.identifier}<#if !clusterRequest?is_last>, #if>
#list>
<#list branchChanges.commits as commitChanges>
<#assign commit = commitChanges.commit>
<#assign tooltipHtml>
${commit.username}
${(commit.timestampSec*1000)?number_to_datetime} UTC
${commit.message}
#assign>
<@hInfo.icon tooltip=tooltipHtml/>
<#if gitCommitBaseUrl??>
<#assign commitUrl = gitCommitBaseUrl + commit.commitId>
target="_blank"#if>
href="${commitUrl}">${commit.commitId?substring(0, 6)}<#if !commitChanges?is_last>, #if>
<#else>
${commit.commitId?substring(0, 6)}<#if !commitChanges?is_last>, #if>
#if>
#list>
Edit from...
#list>
#if>