From b6b36e1b5a37cfddc025efdbd816acbde70eafb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 26 Aug 2013 17:18:08 +0200 Subject: [PATCH] fix bug #182: Wrong title on favorites and archives pages --- tpl/home.twig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tpl/home.twig b/tpl/home.twig index a2fa9a93..6b80c6ed 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,5 +1,13 @@ {% extends "layout.twig" %} -{% block title %}{% trans "home" %}{% endblock %} +{% block title %} +{% if view == 'fav' %} +{% trans "favoris" %} +{% elseif view == 'archive' %} +{% trans "archive" %} +{% else %} +{% trans "unread" %} +{% endif %} +{% endblock %} {% block menu %} {% include '_menu.twig' %} {% endblock %} -- 2.41.0