mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Merge pull request #1286 from wallabag/v2-issue-1283
fix #1283: display the good title for each category
This commit is contained in:
commit
6ecdd48a3f
1 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,17 @@
|
|||
{% 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 pager %}
|
||||
|
|
Loading…
Reference in a new issue