Просмотр исходного кода

Move {% if admin_pool is defined %} up to catch another admin_pool usage

Matthew J Mucklo 12 лет назад
Родитель
Сommit
1ee13037ab
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Resources/views/standard_layout.html.twig

+ 2 - 2
Resources/views/standard_layout.html.twig

@@ -78,9 +78,9 @@ file that was distributed with this source code.
                         <span class="icon-bar"></span>
                     </a>
 
-                    <div class="navbar-text pull-right">{% include admin_pool.getTemplate('user_block') %}</div>
-
                     {% if admin_pool is defined %}
+                        <div class="navbar-text pull-right">{% include admin_pool.getTemplate('user_block') %}</div>
+
                         {% block logo %}
                             <a href="{{ url('sonata_admin_dashboard') }}" class="brand">
                                 <img src="{{ asset(admin_pool.titlelogo) }}"  alt="{{ admin_pool.title }}" />