]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove on login and home views useless link "back to home"
authorNumEricR <eric.github@gmail.com>
Fri, 30 Aug 2013 13:31:33 +0000 (15:31 +0200)
committerNumEricR <eric.github@gmail.com>
Tue, 3 Sep 2013 21:56:37 +0000 (23:56 +0200)
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