]>
Commit | Line | Data |
---|---|---|
4cc3c2ac NL |
1 | {% extends "layout.twig" %} |
2 | {% block title %} | |
3 | {% if view == 'fav' %} | |
4 | {% trans "favoris" %} | |
5 | {% elseif view == 'archive' %} | |
6 | {% trans "archive" %} | |
7 | {% else %} | |
8 | {% trans "unread" %} | |
9 | {% endif %} | |
10 | {% endblock %} | |
11 | {% block menu %} | |
12 | {% include '_menu.twig' %} | |
13 | {% endblock %} | |
14 | {% block precontent %} | |
15 | {% if entries|length > 1 %} | |
16 | <ul id="sort"> | |
032e0ca1 MR |
17 | <li><a href="./?sort=ia&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> |
18 | <li><a href="./?sort=ta&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | |
4cc3c2ac NL |
19 | </ul> |
20 | {% endif %} | |
21 | {% endblock %} | |
22 | {% block content %} | |
032e0ca1 MR |
23 | {% if tag %} |
24 | <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> | |
25 | {% endif %} | |
26 | ||
4cc3c2ac | 27 | {% if entries is empty %} |
db75a442 | 28 | <div class="messages warning"><p>{% trans "No articles found." %}</p></div> |
4cc3c2ac NL |
29 | {% else %} |
30 | {% block pager %} | |
31 | {% if nb_results > 1 %} | |
32 | <div class="results"> | |
33 | <div class="nb-results">{{ nb_results }} {% trans "results" %}</div> | |
34 | {{ page_links | raw }} | |
35 | </div> | |
36 | {% endif %} | |
37 | {% endblock %} | |
38 | {% for entry in entries %} | |
39 | <div id="entry-{{ entry.id|e }}" class="entrie"> | |
40 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> | |
41 | <ul class="tools"> | |
5df72bb4 | 42 | <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> |
4cc3c2ac NL |
43 | <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> |
44 | <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li> | |
45 | <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> | |
07ae20ee | 46 | <li><a target="_blank" title="{% trans "estimated reading time:" %} {{ entry.content| getReadingTime }} min" class="reading-time"><span>{{ entry.content| getReadingTime }} min</span></a></li> |
4cc3c2ac NL |
47 | </ul> |
48 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | |
49 | </div> | |
50 | {% endfor %} | |
51 | {% endif %} | |
52 | {{ block('pager') }} | |
01cd4434 | 53 | {% if view == 'home' %}{% if nb_results > 1 %}<a title="{% trans "mark all the entries as read" %}" href="./?action=archive_all">{% trans "mark all the entries as read" %}</a>{% endif %}{% endif %} |
db75a442 | 54 | {% endblock %} |