]>
Commit | Line | Data |
---|---|---|
8046748b | 1 | {include="head"} |
2 | <body> | |
3 | <header> | |
4 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | |
5 | </header> | |
6 | <div id="main"> | |
7 | <ul id="links"> | |
8 | <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li> | |
9 | <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li> | |
10 | <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</a></li> | |
cf3180f6 | 11 | <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> |
8046748b | 12 | </ul> |
13 | <div id="content"> | |
14 | {loop="entries"} | |
15 | <div id="entry-{$value.id}" class="entrie mb2"> | |
16 | <span class="content"> | |
17 | <h2 class="h6-like"> | |
18 | <a href="view.php?id={$value.id}">{$value.title}</a> | |
19 | </h2> | |
20 | <div class="tools"> | |
cf3180f6 | 21 | <ul> |
22 | <li><a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id}, '{$token}')"><span></span></a></li> | |
23 | <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id}, '{$token}')"><span></span></a></li> | |
24 | <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="id" name="id" value="{$value.id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> | |
25 | </ul> | |
8046748b | 26 | </div> |
27 | </span> | |
28 | </div> | |
29 | {/loop} | |
30 | </div> | |
31 | </div> | |
32 | {include="footer"} | |
33 | {include="js"} | |
34 | </body> | |
35 | </html> |