aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/home.twig
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-12 21:58:40 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-12 21:58:40 +0100
commit943ac3c77ec1dd93d14a780b25fa147d0f882760 (patch)
tree2c22e26e4066a97f0548d97531aabccbd3fe7abd /themes/baggy/home.twig
parent83b47311ba0b8383da7955723a694b0fb3819062 (diff)
downloadwallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.tar.gz
wallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.tar.zst
wallabag-943ac3c77ec1dd93d14a780b25fa147d0f882760.zip
new theme, baggy one cf #448
Diffstat (limited to 'themes/baggy/home.twig')
-rw-r--r--themes/baggy/home.twig49
1 files changed, 49 insertions, 0 deletions
diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig
new file mode 100644
index 00000000..d58e53ce
--- /dev/null
+++ b/themes/baggy/home.twig
@@ -0,0 +1,49 @@
1{% extends "layout.twig" %}
2{% block title %}
3{% if view == 'fav' %}
4{% trans "favorites" %}
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 content %}
15 {% if entries is empty %}
16 <div class="messages warning"><p>{% trans "No articles found." %}</p></div>
17 {% else %}
18 {% block pager %}
19 {% if nb_results > 1 %}
20 <div class="results">
21 <div class="nb-results">{{ nb_results }} {% trans "results" %}</div>
22 {{ page_links | raw }}
23 </div>
24 {% endif %}
25 {% endblock %}
26 <div class="list-entries">
27 {% for entry in entries %}
28 <div id="entry-{{ entry.id|e }}" class="entrie">
29 <h2><a href="index.php?view=view&amp;id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2>
30 {% if entry.content| getReadingTime > 0 %}
31 <div class="estimatedTime"><a target="_blank" title="{% trans "estimated reading time:" %} {{ entry.content| getReadingTime }} min" class="tool reading-time"><span>{% trans "estimated reading time :" %} {{ entry.content| getReadingTime }} min</span></div>
32 {% else %}
33 <div class="estimatedTime"><a target="_blank" title="{% trans "estimated reading time:" %} {{ entry.content| getReadingTime }} min" class="tool reading-time"><span>{% trans "estimated reading time :" %} <small class="inferieur"><</small> 1 min</span></div>
34 {% endif %}
35 <ul class="tools links">
36 <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&amp;id={{ entry.id|e }}"><span>{% trans "Toggle mark as read" %}</span></a></li>
37 <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&amp;id={{ entry.id|e }}"><span>{% trans "toggle favorite" %}</span></a></li>
38 <li><a title="{% trans "delete" %}" class="tool delete icon-trash icon" href="./?action=delete&amp;id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li>
39 <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>
40 </ul>
41 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
42 </div>
43
44 {% endfor %}
45 </div>
46 {% if view == 'home' %}{% if nb_results > 1 %}<a title="{% trans "Mark all the entries as read" %}" href="./?action=archive_all">{{ "Mark all the entries as read" }} {% trans "" %}</a>{% endif %}{% endif %}
47 {% endif %}
48 {{ block('pager') }}
49{% endblock %}