aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/home.twig
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/home.twig')
-rw-r--r--tpl/home.twig21
1 files changed, 21 insertions, 0 deletions
diff --git a/tpl/home.twig b/tpl/home.twig
new file mode 100644
index 00000000..8b602a25
--- /dev/null
+++ b/tpl/home.twig
@@ -0,0 +1,21 @@
1 <body class="light-style">
2 <header>
3 <h1><a href="index.php"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1>
4 </header>
5 <div id="main">
6{% block menu %}
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 href="?view=config" {if="$view == 'config'"}class="current"{/if}>config</a></li>
12 <li><a href="?logout" title="Logout">logout</a></li>
13 </ul>
14{% endblock %}
15{% block precontent %}
16 <ul id="sort">
17 <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>
18 <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>
19 </ul>
20{% endblock %}
21 {include="messages"} \ No newline at end of file