1 {% extends "layout.twig" %}
5 {% elseif view == 'archive' %}
12 {% include '_menu.twig' %}
14 {% block precontent %}
16 {% include '_sorting.twig' %}
20 {% if includeImport %}
21 {% include '_import.twig' %}
25 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3>
28 {% if entries is empty%}
29 {% if view == 'home' %}<div class="messages success"><p>{% trans "No articles unread. Good job !" %}
30 {% elseif view == 'fav' %}<div class="messages warning"><p>{% trans "No articles favourited" %}
31 {% elseif view == 'archive' %}<div class="messages warning"><p>{% trans "No articles marked as read" %}
32 {% elseif view == 'tags' %}<div class="messages warning"><p>{% trans "No articles with this tag found" %}
33 {% elseif searchterm is defined %}<div class="messages warning"><p>{% trans %}No articles found for « {{ searchterm }} »{% endtrans %}
34 {% else %}<div class="messages warning"><p>{% trans "No articles found" %}{% endif %}
38 {% if nb_results > 1 %}
40 <div class="nb-results">
41 {% if view == 'home' %}
42 {{ nb_results }} {% trans "articles unread" %}
43 {% elseif view == 'fav' %}
44 {{ nb_results }} {% trans "articles favourited" %}
45 {% elseif view == 'archive' %}
46 {{ nb_results }} {% trans "articles marked as read" %}
47 {% elseif view == 'tag' %}
48 {{ nb_results }} {% trans "articles with this tag" %}
49 {% elseif searchterm is defined %}{{ nb_results }}
50 {% trans %}articles found for « {{ searchterm }} »{% endtrans %}
52 {{ nb_results }} {% trans "articles" %}
54 {% if view == 'home' or view == 'fav' or view == 'archive' %}
55 <a href="?action=random&view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
57 {{ page_links | raw }}
59 {% elseif nb_results == 1 %}
61 <div class="nb-results">
62 {% if view == 'home' %}{% trans "Only one article unread. Way to go !" %}
63 {% elseif view == 'fav' %}{% trans "Just one article favourited" %}
64 {% elseif view == 'archive' %}{% trans "One article marked as read" %}
65 {% elseif view == 'tag' %}{% trans "One article with this tag" %}
66 {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %}
67 {% else %}{% trans "One article found" %}{% endif %}</div>
71 {% for entry in entries %}
72 <div id="entry-{{ entry.id|e }}" class="entrie">
73 <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2>
75 <li><a title="{% trans "Toggle mark as read" %}" class="tool {% if entry.is_read == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span>{% trans "Toggle mark as read" %}</span></a></li>
76 <li><a title="{% trans "toggle favorite" %}" class="tool {% if entry.is_fav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span>{% trans "toggle favorite" %}</span></a></li>
77 <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li>
78 <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.url | e | getDomain }}</span></a></li>
79 <li><a target="_blank" title="{% trans "estimated reading time:" %} {{ entry.content| getReadingTime }} min" class="reading-time"><span>{{ entry.content| getReadingTime }} min</span></a></li>
81 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
86 {% if view == 'home' %}{% if nb_results > 1 %}<p><a title="{% trans "Mark all the entries as read" %}" href="./?action=archive_all">{% trans "Mark all the entries as read" %}</a></p>{% endif %}{% endif %}
87 {% if searchterm is defined %}<a title="{% trans "Tag these results as" %} {{ searchterm }}" href="./?action=add_tag&search={{ searchterm }}">{% trans "Tag these results as" %} {{ searchterm }}</a>{% endif %}<br />
89 {% if searchterm is defined %}<a title="{% trans "Delete results matching" %} {{ searchterm }}" href="./?action=delete&search={{ searchterm }}">{% trans "Delete results matching" %} {{ searchterm }}</a>{% endif %}<br />
91 {% if tag %}<a title="{% trans "Mark all articles from this tag as read" %}" href="./?action=toggle_archive&tag_id={{ tag.id }}">{% trans "Mark all articles from this tag as read" %}</a><br />{% endif %}
94 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this tag in an epub file" %}" href="./?epub&method=tag&value={{ tag.value }}">{% trans "Download as ePub3" %}</a>{% endif %}
95 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this tag in a mobi file" %}" href="./?mobi&method=tag&value={{ tag.value }}">{% trans "Download as Mobi" %}</a>{% endif %}
96 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this tag in a pdf file" %}" href="./?pdf&method=tag&value={{ tag.value }}">{% trans "Download as PDF" %}</a>{% endif %}
97 {% elseif searchterm is defined %}
98 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&value={{ searchterm }}">{% trans "Download as ePub3" %}</a>{% endif %}
99 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&method=search&value={{ searchterm }}">{% trans "Download as Mobi" %}</a>{% endif %}
100 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&method=search&value={{ searchterm }}">{% trans "Download as PDF" %}</a>{% endif %}
102 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&value={{ view }}">{% trans "Download as ePub3" %}</a>{% endif %}
103 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&method=category&value={{ view }}">{% trans "Download as Mobi" %}</a>{% endif %}
104 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&method=category&value={{ view }}">{% trans "Download as PDF" %}</a>{% endif %}