Child: [71a206] (diff)

Download this file

attachment.html    20 lines (19 with data), 801 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
py:strip="True">
<a href="${value.url()}">${value.metadata.filename}</a>
($value.length bytes)
<form py:if="c.user._id and post.author_id==c.user._id"
method="POST" action="${value.url()}"
style="display:inline">
<input class="submit" type="submit" name="delete" value="Delete"/>
</form>
<br style="clear:both"/>
<div py:if="value.contentType.startswith('image/') or value.contentType.startswith('text/')">
<img py:if="value.contentType.startswith('image/')"
style="max-width:100%" src="${value.url()}"/>
<iframe width="100%" py:if="value.contentType.startswith('text/')"
src="${value.url()}?embed=True"/>
</div>
<br style="clear:both"/>
</div>