X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=5d657c7e7cb9a8bed158a52d9d01da3e7eb70ea5;hb=3be554c78f1d68c3969a85d163d9bb081ba525d0;hp=a07285bdc213b8ada227a1354b263a6a3ba6f927;hpb=371bcca0f6b18951a15e56daae5bca2558c01851;p=github%2Fwallabag%2Fwallabag.git
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
index a07285bd..5d657c7e 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
@@ -1,36 +1,16 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
- {% set currentRoute = app.request.attributes.get('_route') %}
-
- {% if currentRoute == 'starred' %}
- {{ 'entry.page_titles.starred'|trans }}
- {% elseif currentRoute == 'archive' %}
- {{ 'entry.page_titles.archived'|trans }}
- {% elseif currentRoute == 'all' %}
- {{ 'entry.page_titles.filtered'|trans }}
- {% elseif currentRoute == 'tag_entries' %}
- {{ 'entry.page_titles.filtered_tags'|trans }}
- {% else %}
- {{ 'entry.page_titles.unread'|trans }}
+ {% set currentTag = '' %}
+ {% if tag is defined %}
+ {% set currentTag = tag %}
{% endif %}
+ {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
{% endblock %}
{% block content %}
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
- {% block pager %}
-
@@ -53,16 +33,16 @@
{{ entry.domainName|removeWww }}
{% if entry.previewPicture is null %}
-
{{ entry.content|striptags|slice(0, 300) }}…
{% for tag in entry.tags %}
- - {{ tag.label }}
+ - {{ tag.label }}
{% endfor %}
+
{{ entry.content|striptags|slice(0, 300) }}…
{% else %}
{% for tag in entry.tags | slice(0, 3) %}
- - {{ tag.label }}
+ - {{ tag.label }}
{% endfor %}
![{{ entry.title|raw }}]({{ entry.previewPicture }})
@@ -73,25 +53,29 @@
{% if form is not null %}
-
+
{% endif %}
-
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
{% endblock %}