]>
Commit | Line | Data |
---|---|---|
8cbb2a88 NL |
1 | {% extends "layout.twig" %} |
2 | ||
3 | {% block title %}Home{% endblock %} | |
a4565e88 | 4 | {% block menu %} |
8046748b | 5 | <ul id="links"> |
8cbb2a88 NL |
6 | <li><a href="index.php" {% if view == 'home' %}class="current"{% endif %}>home</a></li> |
7 | <li><a href="?view=fav" {% if view == 'fav' %}class="current"{% endif %}>favorites</a></li> | |
8 | <li><a href="?view=archive" {% if view == 'archive' %}class="current"{% endif %}>archive</a></li> | |
9 | <li><a href="?view=config" {% if view == 'config' %}class="current"{% endif %}>config</a></li> | |
e4d2565e | 10 | <li><a href="?logout" title="Logout">logout</a></li> |
8046748b | 11 | </ul> |
a4565e88 NL |
12 | {% endblock %} |
13 | {% block precontent %} | |
9fee2e72 | 14 | <ul id="sort"> |
8cbb2a88 NL |
15 | <li><img src="img/up.png" onclick="sort_links('{{ view }}', 'ia');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{{ view }}', 'id');" title="by date desc" /></li> |
16 | <li><img src="img/up.png" onclick="sort_links('{{ view }}', 'ta');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{{ view }}', 'td');" title="by title desc" /></li> | |
9fee2e72 | 17 | </ul> |
a4565e88 | 18 | {% endblock %} |
8cbb2a88 NL |
19 | {% block content %} |
20 | <div id="content"> | |
21 | {% for entry in entries %} | |
22 | <div id="entry-{{ entry.id|e }}" class="entrie mb2"> | |
23 | <span class="content"> | |
24 | <h2 class="h6-like"> | |
25 | <a href="index.php?&view=view&id={{ entry.id|e }}">{{ entry.title|e }}</a> | |
26 | </h2> | |
27 | <div class="tools"> | |
28 | <ul> | |
29 | <li> | |
30 | <a title="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> | |
31 | <li><a title="toggle favorite" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" onclick="toggle_favorite(this, {{ entry.id|e }})"><span></span></a></li> | |
32 | <li><form method="post" onsubmit="return confirm('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="toggle delete" /></form> | |
33 | </li> | |
34 | </ul> | |
35 | </div> | |
36 | <div class="url">{{ entry.url|e }}</div> | |
37 | </span> | |
38 | </div> | |
39 | {% endfor %} | |
40 | </div> | |
41 | {% endblock %} |