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

${msg("myResources")}

<#if authorization.resourcesWaitingApproval?size != 0>

${msg("needMyApproval")}

<#list authorization.resourcesWaitingApproval as resource> <#list resource.permissions as permission>
${msg("resource")} ${msg("requestor")} ${msg("permissionRequestion")} ${msg("action")}
<#if resource.displayName??>${resource.displayName}<#else>${resource.name} <#if permission.requester.email??>${permission.requester.email}<#else>${permission.requester.username} <#list permission.scopes as scope> <#if scope.scope??> <#else> ${msg("anyPermission")} ${msg("doApprove")} ${msg("doDeny")}

${msg("myResourcesSub")}

<#if authorization.resources?size != 0> <#list authorization.resources as resource> <#else>
${msg("resource")} ${msg("application")} ${msg("peopleSharingThisResource")}
<#if resource.displayName??>${resource.displayName}<#else>${resource.name} <#if resource.resourceServer.baseUri??> ${resource.resourceServer.name} <#else> ${resource.resourceServer.name} <#if resource.shares?size != 0> ${resource.shares?size} <#else> ${msg("notBeingShared")}
${msg("notHaveAnyResource")}

${msg("resourcesSharedWithMe")}

<#if authorization.sharedResources?size != 0> <#list authorization.sharedResources as resource> <#else>
disabled="true" ${msg("resource")} ${msg("owner")} ${msg("application")} ${msg("permission")} ${msg("date")}
<#if resource.displayName??>${resource.displayName}<#else>${resource.name} ${resource.ownerName} <#if resource.resourceServer.baseUri??> ${resource.resourceServer.name} <#else> ${resource.resourceServer.name} <#if resource.permissions?size != 0>
    <#list resource.permissions as permission> <#list permission.scopes as scope> <#if scope.granted && scope.scope??>
  • <#if scope.scope.displayName??> ${scope.scope.displayName} <#else> ${scope.scope.name}
  • <#else> ${msg("anyPermission")}
<#else> Any action
${resource.permissions[0].grantedDate?datetime}
${msg("noResourcesSharedWithYou")}
<#if authorization.sharedResources?size != 0>
${msg("doRemoveSharing")}
<#if authorization.resourcesWaitingOthersApproval?size != 0>

${msg("requestsWaitingApproval")}

${msg("havePermissionRequestsWaitingForApproval",authorization.resourcesWaitingOthersApproval?size)} ${msg("clickHereForDetails")}