aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/home.twig
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-03 19:26:54 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-03 19:26:54 +0200
commit4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch)
tree6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /tpl/home.twig
parent2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff)
downloadwallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz
wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst
wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip
twig implementation
Diffstat (limited to 'tpl/home.twig')
-rw-r--r--tpl/home.twig21
1 files changed, 15 insertions, 6 deletions
diff --git a/tpl/home.twig b/tpl/home.twig
index c79d4276..5752b2cf 100644
--- a/tpl/home.twig
+++ b/tpl/home.twig
@@ -11,10 +11,19 @@
11{% endblock %} 11{% endblock %}
12{% block precontent %} 12{% block precontent %}
13 <ul id="sort"> 13 <ul id="sort">
14 <li><img src="img/up.png" onclick="sort_links('{{ view }}', 'ia');" title="{% trans "by date asc" %}" /> {% trans "by date" %} <img src="img/down.png" onclick="sort_links('{{ view }}', 'id');" title="{% trans "by date desc" %}" /></li> 14 <li><img src="./tpl/img/up.png" onclick="sort_links('{{ view }}', 'ia');" title="{% trans "by date asc" %}" /> {% trans "by date" %} <img src="./tpl/img/down.png" onclick="sort_links('{{ view }}', 'id');" title="{% trans "by date desc" %}" /></li>
15 <li><img src="img/up.png" onclick="sort_links('{{ view }}', 'ta');" title="{% trans "by title asc" %}" /> {% trans "by title" %} <img src="img/down.png" onclick="sort_links('{{ view }}', 'td');" title="{% trans "by title desc" %}" /></li> 15 <li><img src="./tpl/img/up.png" onclick="sort_links('{{ view }}', 'ta');" title="{% trans "by title asc" %}" /> {% trans "by title" %} <img src="./tpl/img/down.png" onclick="sort_links('{{ view }}', 'td');" title="{% trans "by title desc" %}" /></li>
16 </ul> 16 </ul>
17{% endblock %} 17{% endblock %}
18{% block notices %}
19 <div class="messages">
20 <ul>
21 {% for notice in notices %}
22 <li>{{ notice.value|e }}</li>
23 {% endfor %}
24 </ul>
25 </div>
26{% endblock %}
18{% block content %} 27{% block content %}
19 <div id="content"> 28 <div id="content">
20 {% for entry in entries %} 29 {% for entry in entries %}
@@ -28,7 +37,7 @@
28 <li> 37 <li>
29 <a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" onclick="toggle_archive(this, {{ entry.id|e }})"><span></span></a></li> 38 <a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" onclick="toggle_archive(this, {{ entry.id|e }})"><span></span></a></li>
30 <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" onclick="toggle_favorite(this, {{ entry.id|e }})"><span></span></a></li> 39 <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" onclick="toggle_favorite(this, {{ entry.id|e }})"><span></span></a></li>
31 <li><form method="post" onsubmit="return confirm('{% trans "are you sure?" %}')" 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> 40 <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>
32 </li> 41 </li>
33 </ul> 42 </ul>
34 </div> 43 </div>
@@ -40,9 +49,9 @@
40{% endblock %} 49{% endblock %}
41 50
42{% block js %} 51{% block js %}
43 <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script> 52 <script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script>
44 <script type="text/javascript" src="js/poche.js"></script> 53 <script type="text/javascript" src="./tpl/js/poche.js"></script>
45 <script type="text/javascript" src="js/jquery.masonry.min.js"></script> 54 <script type="text/javascript" src="./tpl/js/jquery.masonry.min.js"></script>
46 <script type="text/javascript"> 55 <script type="text/javascript">
47 $( window ).load( function() 56 $( window ).load( function()
48 { 57 {