1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-17 17:08:37 +00:00

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" %} {% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %} {% block title %}
{% set params = {} %} {% set currentTag = '' %}
{% if tag is defined %} {% if tag is defined %}
{% set params = {'label': tag} %} {% set currentTag = tag %}
{% endif %} {% endif %}
{% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %} {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View file

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

View file

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