Removed empty include templates from forms, and use templates from theme directly

This commit is contained in:
Stian Thorgersen 2013-11-12 15:26:26 +00:00
parent 5916eaad13
commit 794976792a
17 changed files with 16 additions and 31 deletions

View file

@ -104,7 +104,7 @@ public class FormServiceImpl implements FormService {
Configuration cfg = new Configuration();
try {
cfg.setClassForTemplateLoading(FormServiceImpl.class,"/META-INF/resources");
cfg.setClassForTemplateLoading(FormServiceImpl.class,"/META-INF/resources/forms/theme/default");
Template template = cfg.getTemplate(temp);
template.process(input, out);

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/access.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/account.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/error.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-config-totp.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-oauth-grant.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-reset-password.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-totp.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-update-password.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-update-profile.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login-verify-email.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/login.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/password.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/register.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/social.ftl">

View file

@ -1 +0,0 @@
<#include "./theme/" + template.theme + "/totp.ftl">

View file

@ -26,34 +26,34 @@ package org.keycloak.services.resources.flows;
*/
public class Pages {
public final static String ACCESS = "/forms/access.ftl";
public final static String ACCESS = "access.ftl";
public final static String ACCOUNT = "/forms/account.ftl";
public final static String ACCOUNT = "account.ftl";
public final static String LOGIN = "/forms/login.ftl";
public final static String LOGIN = "login.ftl";
public final static String LOGIN_TOTP = "/forms/login-totp.ftl";
public final static String LOGIN_TOTP = "login-totp.ftl";
public final static String LOGIN_CONFIG_TOTP = "/forms/login-config-totp.ftl";
public final static String LOGIN_CONFIG_TOTP = "login-config-totp.ftl";
public final static String LOGIN_VERIFY_EMAIL = "/forms/login-verify-email.ftl";
public final static String LOGIN_VERIFY_EMAIL = "login-verify-email.ftl";
public final static String OAUTH_GRANT = "/forms/login-oauth-grant.ftl";
public final static String OAUTH_GRANT = "login-oauth-grant.ftl";
public final static String PASSWORD = "/forms/password.ftl";
public final static String PASSWORD = "password.ftl";
public final static String LOGIN_RESET_PASSWORD = "/forms/login-reset-password.ftl";
public final static String LOGIN_RESET_PASSWORD = "login-reset-password.ftl";
public final static String LOGIN_UPDATE_PASSWORD = "/forms/login-update-password.ftl";
public final static String LOGIN_UPDATE_PASSWORD = "login-update-password.ftl";
public final static String REGISTER = "/forms/register.ftl";
public final static String REGISTER = "register.ftl";
public final static String ERROR = "/forms/error.ftl";
public final static String ERROR = "error.ftl";
public final static String SOCIAL = "/forms/social.ftl";
public final static String SOCIAL = "social.ftl";
public final static String TOTP = "/forms/totp.ftl";
public final static String TOTP = "totp.ftl";
public final static String LOGIN_UPDATE_PROFILE = "/forms/login-update-profile.ftl";
public final static String LOGIN_UPDATE_PROFILE = "login-update-profile.ftl";
}