]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tpl/_top.twig
Remove on login and home views useless link "back to home"
[github/wallabag/wallabag.git] / tpl / _top.twig
index ae01cc3ffb24f98b96ac86336d6043e2e72e0809..dc20081e9151cc340512e63aa7e4df75b373338e 100644 (file)
@@ -1,3 +1,7 @@
         <header class="w600p center mbm">
-            <h1><a href="./" title="{% trans "back to home" %}" ><img src="./tpl/img/logo.png" alt="logo poche" /></a></h1>
+            <h1>
+                {% if view == 'home' %}{% block logo %}<img src="./tpl/img/logo.png" alt="logo poche" />{% endblock %}
+                {% else %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }}</a>
+                {% endif %}
+            </h1>
         </header>
\ No newline at end of file