fix #1283: display the good title for each category

This commit is contained in:
Nicolas Lœuillet 2015-08-05 21:10:20 +02:00
parent 8d9b8912af
commit b1a65df9df

View file

@ -1,6 +1,17 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title "Unread" %}
{% block title %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% if currentRoute == 'unread' %}
{% trans %}Unread{% endtrans %}
{% elseif currentRoute == 'starred' %}
{% trans %}Starred{% endtrans %}
{% elseif currentRoute == 'archive' %}
{% trans %}Archive{% endtrans %}
{% endif %}
{% endblock %}
{% block content %}
{% block pager %}