diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-02-12 21:58:40 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-02-12 21:58:40 +0100 |
commit | 943ac3c77ec1dd93d14a780b25fa147d0f882760 (patch) | |
tree | 2c22e26e4066a97f0548d97531aabccbd3fe7abd /themes/baggy/tag.twig | |
parent | 83b47311ba0b8383da7955723a694b0fb3819062 (diff) | |
download | wallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.tar.gz wallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.tar.zst wallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.zip |
new theme, baggy one cf #448
Diffstat (limited to 'themes/baggy/tag.twig')
-rw-r--r-- | themes/baggy/tag.twig | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/themes/baggy/tag.twig b/themes/baggy/tag.twig new file mode 100644 index 00000000..141ac909 --- /dev/null +++ b/themes/baggy/tag.twig | |||
@@ -0,0 +1,34 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}tag {% endblock %} | ||
3 | {% block menu %} | ||
4 | {% include '_menu.twig' %} | ||
5 | {% endblock %} | ||
6 | {% block content %} | ||
7 | <h3>{% trans "Tag" %} {{ tag.value }}</h3> | ||
8 | {% if entries is empty %} | ||
9 | <div class="messages warning"><p>{% trans "No link available here!" %}</p></div> | ||
10 | {% else %} | ||
11 | {% block pager %} | ||
12 | {% if nb_results > 1 %} | ||
13 | <div class="results"> | ||
14 | <div class="nb-results">{{ nb_results }} {% trans "results" %}</div> | ||
15 | {{ page_links | raw }} | ||
16 | </div> | ||
17 | {% endif %} | ||
18 | {% endblock %} | ||
19 | <div class="list-entries"> | ||
20 | {% for entry in entries %} | ||
21 | <div id="entry-{{ entry.id|e }}" class="entrie"> | ||
22 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> | ||
23 | <ul class="tools links"> | ||
24 | <li><a title="{% trans "Toggle mark as read" %}" class="tool icon-check icon {% 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> | ||
25 | <li><a title="{% trans "toggle favorite" %}" class="tool icon-star icon {% 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> | ||
26 | <li><a title="{% trans "delete" %}" class="tool delete icon-trash icon" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li> | ||
27 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | getDomain }}</span></a></li> | ||
28 | </ul> | ||
29 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | ||
30 | </div> | ||
31 | {% endfor %} | ||
32 | </div> | ||
33 | {% endif %} | ||
34 | {% endblock %} \ No newline at end of file | ||