浏览代码

Fix clearfix when seeing the login page while logged in

Jordi Boggiano 9 年之前
父节点
当前提交
fac55100ef
共有 1 个文件被更改,包括 3 次插入1 次删除
  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>