Minor tweaks to login. Display 'Keycloak Administration' instead of 'Keycloak' when login to admin console. Add link to powered by Keycloak

This commit is contained in:
Stian Thorgersen committed 2014-01-13 15:06:03 +00:00
1 parent 8ef194a205
commit f2c0eed8f2
3 files changed
+5 -11

No files matched your search

@@ -44,7 +44,7 @@ public class RealmBean {
}
public String getName() {
return saas ? "Keycloak" : realm.getName();
return realm.getName();
}
public RealmModel getRealm() {
@@ -51,15 +51,9 @@ public class TemplateBean {
themeConfig.put("styles", themeUrl + "/styles.css");
// TODO move this into CSS
if (realm.isSaas()) {
themeConfig.put("logo", themeUrl + "/img/red-hat-logo.png");
themeConfig.put("background", themeUrl + "/img/login-screen-background.jpg");
themeConfig.put("displayPoweredBy", false);
} else {
themeConfig.put("background", themeUrl + "/img/customer-login-screen-bg2.jpg");
themeConfig.put("displayPoweredBy", true);
}
themeConfig.put("logo", themeUrl + "/img/red-hat-logo.png");
themeConfig.put("background", themeUrl + "/img/login-screen-background.jpg");
themeConfig.put("displayPoweredBy", true);
}
public String getFormsPath() {
@@ -75,7 +75,7 @@
<#if template.themeConfig['displayPoweredBy']>
<p class="powered">
<a href="#">${rb.getString('poweredByKeycloak')}</a>
<a href="http://www.keycloak.org">${rb.getString('poweredByKeycloak')}</a>
</p>
</#if>
</div>