summaryrefslogtreecommitdiff
path: root/templates/base.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.tmpl')
-rw-r--r--templates/base.tmpl43
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/base.tmpl b/templates/base.tmpl
new file mode 100644
index 0000000..5b710f8
--- /dev/null
+++ b/templates/base.tmpl
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>$title</title>
+ <link rel="StyleSheet" href="/s/style.css" type="text/css" />
+#block head
+#end block
+ </head>
+ <body>
+ <div id="page">
+ <div id="page-header">
+ <h1><a href="/">$header</a></h1>
+ </div>
+ <p class="login">#slurp
+#if $user
+Logged in as $user.username.#slurp
+#else
+Not logged in.#slurp
+#end if
+</p>
+ <div id="page-content">
+#block content
+#end block
+ <div id="page-wrapper"></div>
+ </div>
+ </div>
+ <div id="page-footer">
+ <ul>
+ <li><a href="/u">upload</a></li>
+#if $user
+ <li><a href="/o">logout</a></li>
+ <li><a href="/m">myfiles</a></li>
+#else
+ <li><a href="/l">login</a></li>
+ <li><a href="/r">register</a></li>
+#end if
+ <li><a href="/h">help</a></li>
+ </ul>
+ </div>
+ </body>
+</html>