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

${msg("applicationsHtmlTitle")}

<#list applications.applications as application>
${msg("application")} ${msg("availableRoles")} ${msg("grantedPermissions")} ${msg("additionalGrants")} ${msg("action")}
<#if application.effectiveUrl?has_content> <#if application.client.name?has_content>${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.clientScopesGranted 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.clientScopesGranted?has_content) || application.additionalGrants?has_content>