summaryrefslogtreecommitdiff
path: root/templates/images.tmpl
blob: a54bef221530291102ea8673dce8cbaffc89abfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#def title: images
#def header: images
#extends templates.base
#def head
<script type="text/javascript">
	function thumb_onerror(img) {
		var no_thumb = '${settings.virtual_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>
#if len($files)
<div class="image-list">
#for file in $files
	<div class="image">$file.image_html</div>
#end for
</div>
#else
<div><em>(No image uploads yet.)</em></div>
#end if
#end def