summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.tmpl18
-rw-r--r--templates/help.tmpl2
-rw-r--r--templates/login.tmpl2
-rw-r--r--templates/register.tmpl2
-rw-r--r--templates/upload.tmpl2
5 files changed, 13 insertions, 13 deletions
diff --git a/templates/base.tmpl b/templates/base.tmpl
index 307aaec..6c1cb4f 100644
--- a/templates/base.tmpl
+++ b/templates/base.tmpl
@@ -4,26 +4,26 @@
<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" />
+ <link rel="StyleSheet" href="${root}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>
+ <h1><a href="$root">$header</a></h1>
<div id="page-menu">
<ul>
- <li><a href="/u">upload</a></li>
+ <li><a href="${root}u">upload</a></li>
#if $user
- <li><a href="/o">logout</a></li>
- <li><a href="/m">myfiles</a></li>
- <li><a href="/i">images</a></li>
+ <li><a href="${root}o">logout</a></li>
+ <li><a href="${root}m">myfiles</a></li>
+ <li><a href="${root}i">images</a></li>
#else
- <li><a href="/l">login</a></li>
- <li><a href="/r">register</a></li>
+ <li><a href="${root}l">login</a></li>
+ <li><a href="${root}r">register</a></li>
#end if
- <li><a href="/h">help</a></li>
+ <li><a href="${root}h">help</a></li>
</ul>
</div>
</div>
diff --git a/templates/help.tmpl b/templates/help.tmpl
index bdf95d4..bb59424 100644
--- a/templates/help.tmpl
+++ b/templates/help.tmpl
@@ -2,7 +2,7 @@
#def header: help
#extends templates.base
#def content
- <p>Usage: POST to <a href="$scheme://$host/u">$scheme://$host/u</a> with filedata given to "file" and original filename to "filename".
+ <p>Usage: POST to <a href="$scheme://${host}${root}u">$scheme://${host}${root}u</a> with filedata given to "file" and original filename to "filename".
Login is sent by cookies with either:
<ul>
<li>user id in "uid" and an identifier which is sha1(uid+sha1(password))</li>
diff --git a/templates/login.tmpl b/templates/login.tmpl
index 306b0aa..d8aaded 100644
--- a/templates/login.tmpl
+++ b/templates/login.tmpl
@@ -4,7 +4,7 @@
#def content
#set error = $error or ''
<div class="error">$error</div>
- <form method="post" action="/l">
+ <form method="post" action="${root}l">
<p>username</p>
<p><input type="text" id="username" name="username" /></p>
<p>password</p>
diff --git a/templates/register.tmpl b/templates/register.tmpl
index 2a9d1a9..cb371a7 100644
--- a/templates/register.tmpl
+++ b/templates/register.tmpl
@@ -4,7 +4,7 @@
#def content
#set error = $error or ''
<div class="error">$error</div>
- <form method="post" action="/r">
+ <form method="post" action="${root}r">
<p>username</p>
<p><input type="text" id="username" name="username" /></p>
<p>password</p>
diff --git a/templates/upload.tmpl b/templates/upload.tmpl
index 49b0212..ab0bddb 100644
--- a/templates/upload.tmpl
+++ b/templates/upload.tmpl
@@ -15,7 +15,7 @@
</script>
#end def
#def content
- <form method="post" action="/u" enctype="multipart/form-data">
+ <form method="post" action="${root}u" enctype="multipart/form-data">
<input type="hidden" id="filename" name="filename" />
<p><input type="file" id="file" name="file" onchange="file_changed()" /></p>
<p><input type="submit" value="Upload" /></p>