summaryrefslogtreecommitdiff
path: root/templates/images.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/images.tmpl')
-rw-r--r--templates/images.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/images.tmpl b/templates/images.tmpl
index 4cd3752..1dcfc46 100644
--- a/templates/images.tmpl
+++ b/templates/images.tmpl
@@ -1,6 +1,15 @@
#def title: images
#def header: images
#extends templates.base
+#def head
+<script type="text/javascript">
+ function thumb_onerror(img) {
+ var no_thumb = '${root}s/no-thumbnail.png';
+ if(img.src != no_thumb)
+ img.src = no_thumb;
+ }
+</script>
+#end def
#def content
<p>You have $len($files) uploaded images totaling $total_size.</p>
<ul class="image-list">