]> git.immae.eu Git - github/wallabag/wallabag.git/blob - tpl/home.twig
6d0f1a66c8177780ff0c6ad7884b4eb4316aa2e5
[github/wallabag/wallabag.git] / tpl / home.twig
1 {% extends "layout.twig" %}
2 {% block title %}{% trans "home" %}{% endblock %}
3 {% block menu %}
4 {% include '_menu.twig' %}
5 {% endblock %}
6 {% block precontent %}
7 <ul id="sort">
8 <li><a href="./?sort=ia"><img src="./tpl/img/up.png" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id"><img src="./tpl/img/down.png" title="{% trans "by date desc" %}" /></a></li>
9 <li><a href="./?sort=ta"><img src="./tpl/img/up.png" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td"><img src="./tpl/img/down.png" title="{% trans "by title desc" %}" /></a></li>
10 </ul>
11 {% endblock %}
12 {% block messages %}
13 {% include '_messages.twig' %}
14 {% endblock %}
15 {% block content %}
16 <div id="content">
17 {% for entry in entries %}
18 <div id="entry-{{ entry.id|e }}" class="entrie mb2">
19 <span class="content">
20 <h2 class="h6-like">
21 <a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|e }}</a>
22 </h2>
23 <div class="tools">
24 <ul>
25 <li>
26 <a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span></span></a></li>
27 <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span></span></a></li>
28 <li><form method="post" style="display: inline;"><input type="hidden" name="token" id="token" value="{{ token }}" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="view" name="view" value="{{ view }}" /><input type="hidden" id="id" name="id" value="{{ entry.id|e }}" /><input type="submit" class="delete" title="{% trans "toggle delete" %}" /></form>
29 </li>
30 </ul>
31 </div>
32 <div class="url">{{ entry.url | e | getDomain }}</div>
33 </span>
34 </div>
35 {% endfor %}
36 </div>
37 {% endblock %}
38
39 {% block js %}
40 <script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script>
41 <script type="text/javascript" src="./tpl/js/jquery.masonry.min.js"></script>
42 <script type="text/javascript">$(window).load(function(){var e=3,t=function(){e=$(window).width()>640?3:$(window).width()>320?2:1};t();$(window).resize(t);$("#content").masonry({itemSelector:".entrie",columnWidth:function(t){return t/e}})})</script>
43 {% endblock %}