mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-25 00:50:29 +00:00
fix #1283: display the good title for each category
This commit is contained in:
parent
8d9b8912af
commit
b1a65df9df
1 changed files with 12 additions and 1 deletions
|
@ -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 == 'unread' %}
|
||||||
|
{% trans %}Unread{% endtrans %}
|
||||||
|
{% elseif currentRoute == 'starred' %}
|
||||||
|
{% trans %}Starred{% endtrans %}
|
||||||
|
{% elseif currentRoute == 'archive' %}
|
||||||
|
{% trans %}Archive{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% block pager %}
|
{% block pager %}
|
||||||
|
|
Loading…
Reference in a new issue