Only display social logins on main login page

This commit is contained in:
Stian Thorgersen 2014-02-05 15:24:40 +00:00
parent 48b3b9a7fc
commit 455aca9dc0
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<#ftl strip_whitespace=true strip_text=true>
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass=""; section>
<@layout.registrationLayout bodyClass="" displaySocial=social.displaySocialProviders; section>
<#if section = "title">${rb.loginTitle} ${realm.name}
<#elseif section = "header">

View file

@ -1,4 +1,4 @@
<#macro registrationLayout bodyClass isSeparator=false forceSeparator=false>
<#macro registrationLayout bodyClass isSeparator=false forceSeparator=false displaySocial=false>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@ -28,7 +28,7 @@
<#else>
<#assign drawSeparator = isSeparator>
</#if>
<div class="form-area ${(realm.social && bodyClass != "register")?string('social','')} ${(drawSeparator)?string('separator','')} clearfix">
<div class="form-area ${displaySocial?string('social','')} ${(drawSeparator)?string('separator','')} clearfix">
<div class="section app-form">
<#if message?has_content>
<div class="feedback ${message.type} bottom-left show">
@ -37,7 +37,7 @@
</#if>
<#nested "form">
</div>
<#if social.displaySocialProviders>
<#if displaySocial>
<div class="section social-login"> <span>or</span>
<p>${rb.logInWith}</p>
<ul>