From 0440249631164a378981d014bf71b617c082bf5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 21 Jan 2015 16:04:05 +0100 Subject: move templates into resources --- themes/baggy/home.twig | 81 -------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100755 themes/baggy/home.twig (limited to 'themes/baggy/home.twig') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig deleted file mode 100755 index 93515080..00000000 --- a/themes/baggy/home.twig +++ /dev/null @@ -1,81 +0,0 @@ -{% extends "layout.twig" %} -{% block title %} -{% if view == 'fav' %} -{% trans "favorites" %} -{% elseif view == 'archive' %} -{% trans "archive" %} -{% else %} -{% trans "unread" %} -{% endif %} -{% endblock %} -{% block menu %} -{% include '_menu.twig' %} -{% endblock %} -{% block content %} - {% if tag %} -

{% trans "Tag" %}: {{ tag.value }}

- {% endif %} - {% if entries is empty %} -

{% trans "No articles found." %}

- {% else %} -
- {% include '_display-mode.twig' %} - {% include '_sorting.twig' %} -
- {% block pager %} - {% if nb_results > 1 %} -
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% endif %}
- {{ page_links | raw }} -
- {% elseif nb_results == 1 %} - {% if search_term is defined %} -
-
{% trans "Only one result found for " %} « {{ search_term }} »
-
- {% endif %} - {% endif %} - {% endblock %} -
- {% for entry in entries %} -
-

{{ entry.title|raw }}

- {% if entry.content| getReadingTime > 0 %} -
{% trans "estimated reading time :" %} {{ entry.content| getReadingTime }} min
- {% else %} -
{% trans "estimated reading time :" %} < 1 min
- {% endif %} - -

{{ entry.content|striptags|slice(0, 300) }}...

-
- - {% endfor %} -
- {{ block('pager') }} - {% if view == 'home' %}{% if nb_results > 1 %}

{% trans "Mark all the entries as read" %}

{% endif %}{% endif %} - {% if searchterm is defined %}{% trans "Tag these results as" %} {{ searchterm }}{% endif %}
- - {% if searchterm is defined %}{% trans "Delete results matching" %} {{ searchterm }}{% endif %}
- - {% if tag %}{% trans "Mark all articles from this tag as read" %}
{% endif %} - - {% if tag %} - {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} - {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} - {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} - {% elseif searchterm is defined %} - {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} - {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} - {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} - {% else %} - {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} - {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} - {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} - {% endif %} -{% endif %} -{% endblock %} -- cgit v1.2.3