Browse Source

issues on dashboard title and logo

fixes #2227
well, if someone wants to use a 3-or-more rows title he's screwed anyway
Daniele Bartocci 11 years ago
parent
commit
b15b03e837
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Resources/views/standard_layout.html.twig

+ 3 - 1
Resources/views/standard_layout.html.twig

@@ -78,14 +78,16 @@ file that was distributed with this source code.
         {% block sonata_header %}
         {% block sonata_header %}
             <header class="header">
             <header class="header">
                 {% block logo %}
                 {% block logo %}
+                    {% spaceless %}
                     <a class="logo" href="{{ url('sonata_admin_dashboard') }}">
                     <a class="logo" href="{{ url('sonata_admin_dashboard') }}">
                         {% if 'single_image' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
                         {% if 'single_image' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
-                            <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">{% if 'both' == admin_pool.getOption('title_mode') %}&nbsp;{% endif %}
+                            <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">
                         {% endif %}
                         {% endif %}
                         {% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
                         {% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
                             <span>{{ admin_pool.title }}</span>
                             <span>{{ admin_pool.title }}</span>
                         {% endif %}
                         {% endif %}
                     </a>
                     </a>
+                    {% endspaceless %}
                 {% endblock %}
                 {% endblock %}
                 {% block sonata_nav %}
                 {% block sonata_nav %}
                     {% if admin_pool is defined %}
                     {% if admin_pool is defined %}