Merge pull request #1286 from wallabag/v2-issue-1283

fix #1283: display the good title for each category
This commit is contained in:
Danilow Alexandr 2015-08-06 04:38:04 +03:00
commit 6ecdd48a3f

View file

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