From 93fd4692f6eb753cae16358131c8049d84cfbb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 22 Jan 2015 08:30:07 +0100 Subject: symfony is there --- app/Resources/views/baggy/home.twig | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100755 app/Resources/views/baggy/home.twig (limited to 'app/Resources/views/baggy/home.twig') diff --git a/app/Resources/views/baggy/home.twig b/app/Resources/views/baggy/home.twig new file mode 100755 index 00000000..93515080 --- /dev/null +++ b/app/Resources/views/baggy/home.twig @@ -0,0 +1,81 @@ +{% 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