Renamed variable for page title

This commit is contained in:
Nicolas Lœuillet 2016-10-26 15:49:44 +02:00
parent 7a5043f187
commit 73e8df9e44
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
3 changed files with 9 additions and 9 deletions

View file

@ -1,11 +1,11 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
{% set params = {} %}
{% set currentTag = '' %}
{% if tag is defined %}
{% set params = {'label': tag} %}
{% set currentTag = tag %}
{% endif %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
{% 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 }} {{ params['label'] }}
{{ 'entry.page_titles.filtered_tags'|trans }} {{ currentTag }}
{% elseif currentRoute == 'untagged' %}
{{ 'entry.page_titles.untagged'|trans }}
{% else %}

View file

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