aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/home.html')
-rw-r--r--tpl/home.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/tpl/home.html b/tpl/home.html
new file mode 100644
index 00000000..70a35a7f
--- /dev/null
+++ b/tpl/home.html
@@ -0,0 +1,33 @@
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>
11 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
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">
21 <a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id})"><span></span></a>
22 <a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id})"><span></span></a>
23 <a href="?action=delete&id={$value.id}" title="toggle delete" onclick="return confirm('Are you sure?')" class="tool delete"><span></span></a>
24 </div>
25 </span>
26 </div>
27 {/loop}
28 </div>
29 </div>
30 {include="footer"}
31 {include="js"}
32 </body>
33</html>