Browse Source

Fix clearfix when seeing the login page while logged in

Jordi Boggiano 9 years ago
parent
commit
fac55100ef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Resources/HWIOAuthBundle/views/Connect/login.html.twig

+ 3 - 1
app/Resources/HWIOAuthBundle/views/Connect/login.html.twig

@@ -60,7 +60,9 @@
         {% endif %}
 
         {% for owner in hwi_oauth_resource_owners() %}
-            <div class="clearfix"></div>
+            {% if not app.user %}
+                <div class="clearfix"></div>
+            {% endif %}
             <div class="col-md-6">
                 <a class="btn btn-block btn-{{ owner }} btn-primary btn-lg" href="{{ hwi_oauth_login_url(owner) }}"><span class="icon-{{ owner }}"></span>Login with {{ owner | trans({}, 'HWIOAuthBundle') }}</a>{% if not loop.last %}<br />{% endif %}
             </div>