ui.acls.principals.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="principals" type="java.util.List" -->
<#-- @ftlvariable name="principalsOwned" type="java.util.Map" -->
<#-- @ftlvariable name="pendingPrincipalRequests" type="java.util.Map>" -->
<#-- @ftlvariable name="gitStorageEnabled" type="java.lang.Boolean" -->
<#include "../commonResources.ftl"/>
Kafkistry: ACLs
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "util.ftl" as aclUtil>
<#if gitStorageEnabled>
<#assign pendingUpdates = pendingPrincipalRequests>
<#assign entityName = "Principal ACLs">
<#include "../common/pendingChangeRequests.ftl">
#if>
Status of principals ACLs
Principal
Owner
OK
#Rules
Statuses
<#list principals as principalStatus>
<#assign principalUrl = "acls/principal?principal=${principalStatus.principal?url}">
<#assign principalOwned = principalsOwned[principalStatus.principal]>
${principalStatus.principal}
<#if principalStatus.principalAcls??>
${principalStatus.principalAcls.owner}
<#if principalOwned>
<@util.yourOwned what="principal"/>
#if>
<#else>
[none]
#if>
<@util.ok ok = principalStatus.status.ok/>
<#if principalStatus.principalAcls??>
${principalStatus.principalAcls.rules?size}
<#else>
${principalStatus.statuses?size}
#if>
<#list principalStatus.status.statusCounts as statusCount>
<@util.namedTypeStatusAlert type = statusCount.type quantity = statusCount.quantity/>
#list>
#list>
<#include "../common/pageBottom.ftl">