<#import "template.ftl" as layout> <@layout.mainLayout active='authorization' bodyClass='authorization'; section>

${msg("myResources")} <#if authorization.resource.displayName??>${authorization.resource.displayName}<#else>${authorization.resource.name}

<#if authorization.resource.iconUri??>

${msg("peopleAccessResource")}

<#if authorization.resource.shares?size != 0> <#list authorization.resource.shares as permission> <#else>
${msg("user")} ${msg("permission")} ${msg("date")} ${msg("action")}
<#if permission.requester.email??>${permission.requester.email}<#else>${permission.requester.username} <#if permission.scopes?size != 0> <#list permission.scopes as scope> <#if scope.granted && scope.scope??> <#else> ${msg("anyPermission")} <#else> Any action ${permission.createdDate?datetime} ${msg("doRevoke")}
${msg("resourceIsNotBeingShared")}

${msg("resourceManagedPolicies")}

<#if authorization.resource.policies?size != 0> <#list authorization.resource.policies as permission> <#else>
${msg("description")} ${msg("permission")} ${msg("action")}
<#if permission.description??> ${permission.description} <#if permission.scopes?size != 0> <#list permission.scopes as scope> <#else> ${msg("anyAction")} ${msg("doRevoke")}
${msg("resourceNoPermissionsGrantingAccess")}

${msg("shareWithOthers")}

*

<#list authorization.resource.scopes as scope>