[FIX] auth_oauth_signup: handle the case when there is no providers

bzr revid: chs@openerp.com-20140207184829-qdy0jbx5pku1z072
This commit is contained in:
Christophe Simonis 2014-02-07 19:48:29 +01:00
parent 38b7c38e32
commit 0b831e4df0
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<template id="auth_oauth_signup.signup" inherit_id="auth_signup.signup" name="OAuth Signup buttons">
<xpath expr="//button[@type='submit']" position="before">
<div class="pull-right">
<div t-foreach="providers" t-as="p">
<div t-foreach="providers or []" t-as="p">
<a t-att-href="p['auth_link']" class="btn btn-link">
<i t-att-class="p['css_class']"/>
<t t-esc="p['body']"/>