summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/__init__.py1
-rw-r--r--templates/base.tmpl1
-rw-r--r--templates/images.tmpl14
3 files changed, 16 insertions, 0 deletions
diff --git a/templates/__init__.py b/templates/__init__.py
index b8f3f17..3f11c65 100644
--- a/templates/__init__.py
+++ b/templates/__init__.py
@@ -3,4 +3,5 @@ from uploaded import uploaded
from help import help
from login import login
from my import my
+from images import images
from register import register
diff --git a/templates/base.tmpl b/templates/base.tmpl
index aca2011..307aaec 100644
--- a/templates/base.tmpl
+++ b/templates/base.tmpl
@@ -18,6 +18,7 @@
#if $user
<li><a href="/o">logout</a></li>
<li><a href="/m">myfiles</a></li>
+ <li><a href="/i">images</a></li>
#else
<li><a href="/l">login</a></li>
<li><a href="/r">register</a></li>
diff --git a/templates/images.tmpl b/templates/images.tmpl
new file mode 100644
index 0000000..34c8e78
--- /dev/null
+++ b/templates/images.tmpl
@@ -0,0 +1,14 @@
+#def title: images
+#def header: images
+#extends templates.base
+#def content
+<p>Your uploaded images:</p>
+<ul class="image-list">
+#for file in $files
+ <li>$file.image_html</li>
+#end for
+#if not len($files)
+ <li><em>(No image uploads yet.)</em></li>
+#end if
+</ul>
+#end def