keycloak/themes/src/main/resources/theme/unixdog/account/template.ftl

69 lines
2.7 KiB
Plaintext

<#macro mainLayout active bodyClass>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="robots" content="noindex, nofollow">
<title>${msg("accountManagementTitle")}</title>
<link rel="icon" href="${url.resourcesPath}/img/favicon.ico">
<#if properties.stylesCommon?has_content>
<#list properties.stylesCommon?split(' ') as style>
<link href="${url.resourcesCommonPath}/${style}" rel="stylesheet"/>
</#list>
</#if>
<#if properties.styles?has_content>
<#list properties.styles?split(' ') as style>
<link href="${url.resourcesPath}/${style}" rel="stylesheet"/>
</#list>
</#if>
<#if properties.scripts?has_content>
<#list properties.scripts?split(' ') as script>
<script type="text/javascript" src="${url.resourcesPath}/${script}"></script>
</#list>
</#if>
</head>
<body class="admin-console user ${bodyClass}">
<header>
<div id="header-content">
<img src="${url.resourcesPath}/img/favicon.ico" width="32" height="32" alt="UNIX.dog"/>
<h1>UNIX.dog Account</h1>
<div id="nav">
<a href="${url.accountUrl}">${msg("account")}</a>
<a href="${url.authenticationUrl}">${msg("authentication")}</a>
<a href="${url.sessionsUrl}">${msg("sessions")}</a>
<a href="${url.applicationsUrl}">${msg("applications")}</a>
<#if features.log><a href="${url.logUrl}">${msg("log")}</a></#if>
<#if realm.userManagedAccessAllowed && features.authorization><a
href="${url.resourceUrl}">${msg("myResources")}</a></#if>
</div>
</div>
</header>
<main>
<#if message?has_content>
<section class="alert alert-${message.type}">
<p>
${kcSanitize(message.summary)?no_esc}
</p>
</section>
</#if>
<section class="content">
<#nested "content">
</section>
</main>
<footer>
&#x1F12F; <a href="https://git.unix.dog/UNIX.dog/website">Copyleft</a> UNIX.dog, 2022. All pages licensed under
CC BY-NC-SA 4.0.
<br>
Please follow <a href="/rules">all rules</a> while using these services.
<br>
<a href="${url.getLogoutUrl()}">${msg("doSignOut")}.</a>
<#if referrer?has_content && referrer.url?has_content><a
href="${referrer.url}" id="referrer">${msg("backTo",referrer.name)}.</a></#if>
</footer>
</body>
</html>
</#macro>