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

${msg("applications")}

<#list applications.applications as application>
${msg("application")} ${msg("availablePermissions")} ${msg("grantedPermissions")} ${msg("grantedPersonalInfo")} ${msg("additionalGrants")} ${msg("action")}
<#if application.effectiveUrl?has_content> <#if application.client.name??>${advancedMsg(application.client.name)}<#else>${application.client.clientId} <#if application.effectiveUrl?has_content> <#list application.realmRolesAvailable as role> <#if role.description??>${advancedMsg(role.description)}<#else>${advancedMsg(role.name)} <#if role_has_next>, <#list application.resourceRolesAvailable?keys as resource> <#if application.realmRolesAvailable?has_content>, <#list application.resourceRolesAvailable[resource] as clientRole> <#if clientRole.roleDescription??>${advancedMsg(clientRole.roleDescription)}<#else>${advancedMsg(clientRole.roleName)} ${msg("inResource")} <#if clientRole.clientName??>${advancedMsg(clientRole.clientName)}<#else>${clientRole.clientId} <#if clientRole_has_next>, <#if application.client.consentRequired> <#list application.realmRolesGranted as role> <#if role.description??>${advancedMsg(role.description)}<#else>${advancedMsg(role.name)} <#if role_has_next>, <#list application.resourceRolesGranted?keys as resource> <#if application.realmRolesGranted?has_content>, <#list application.resourceRolesGranted[resource] as clientRole> <#if clientRole.roleDescription??>${advancedMsg(clientRole.roleDescription)}<#else>${advancedMsg(clientRole.roleName)} ${msg("inResource")} <#if clientRole.clientName??>${advancedMsg(clientRole.clientName)}<#else>${clientRole.clientId} <#if clientRole_has_next>, <#else> ${msg("fullAccess")} <#if application.client.consentRequired> <#list application.claimsGranted as claim> ${advancedMsg(claim)}<#if claim_has_next>, <#else> ${msg("fullAccess")} <#list application.additionalGrants as grant> ${advancedMsg(grant)}<#if grant_has_next>, <#if (application.client.consentRequired && application.claimsGranted?has_content) || application.additionalGrants?has_content>