X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fdefault%2Fhome.twig;h=093c2dc5e20b04076dc767143b89ec1b01c9de6b;hb=refs%2Fpull%2F819%2Fhead;hp=21013ec816c9a127b085fc7e74163cd22a77d20b;hpb=a71dc5d7d093e0986d184c4e024eba5901938242;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/home.twig b/themes/default/home.twig old mode 100644 new mode 100755 index 21013ec8..093c2dc5 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -12,23 +12,34 @@ {% include '_menu.twig' %} {% endblock %} {% block precontent %} - {% if entries|length > 1 %} -
- {% endif %} + +{% include '_sorting.twig' %} {% endblock %} {% block content %} + + {% if includeImport %} + {% include '_import.twig' %} + {% endif %} + + {% if tag %} +{{ entry.content|striptags|slice(0, 300) }}...
{% endfor %} - {% endif %} + {{ block('pager') }} + {% if view == 'home' %}{% if nb_results > 1 %}{% trans "mark all the entries as read" %}{% endif %}{% endif %} + + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} + + {% endif %} {% endblock %}