Added tag label in the page title

Fix #2472
This commit is contained in:
Nicolas Lœuillet
2016-10-26 13:53:23 +02:00
parent c68720d40e
commit 7a5043f187
16 changed files with 24 additions and 15 deletions

View File

@ -1,7 +1,11 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" %}
{% set params = {} %}
{% if tag is defined %}
{% set params = {'label': tag} %}
{% endif %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
{% endblock %}
{% block content %}

View File

@ -7,7 +7,7 @@
{% elseif currentRoute == 'all' %}
{{ 'entry.page_titles.filtered'|trans }}
{% elseif currentRoute == 'tag_entries' %}
{{ 'entry.page_titles.filtered_tags'|trans }}
{{ 'entry.page_titles.filtered_tags'|trans }} {{ params['label'] }}
{% elseif currentRoute == 'untagged' %}
{{ 'entry.page_titles.untagged'|trans }}
{% else %}

View File

@ -1,7 +1,11 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" %}
{% set params = {} %}
{% if tag is defined %}
{% set params = {'label': tag} %}
{% endif %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
{% endblock %}
{% block content %}