summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-07-17 16:04:32 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-07-17 16:04:32 +0200
commitc9ba238cad3cbfe12e1c0be9e36e1526b759e055 (patch)
tree0300a3222eb5bb3151f4d453e294efb44b6c52f2 /templates
parent53d795fabe64c670bd97c0c0ad929b5a9b3fcd3f (diff)
Added an image section with thumbnails of all uploaded image files.
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