summaryrefslogtreecommitdiff
path: root/examples/filebrowser
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-07-17 22:56:30 +0000
committerianb <devnull@localhost>2005-07-17 22:56:30 +0000
commitae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd (patch)
treed5aed0a3cf89568eeff010124e14327f95d43a20 /examples/filebrowser
parent52b40a398aed35edfc135bf30410c7823593d85c (diff)
downloadpaste-ae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd.tar.gz
Include file size in view
Diffstat (limited to 'examples/filebrowser')
-rw-r--r--examples/filebrowser/templates/view_file.pt5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/filebrowser/templates/view_file.pt b/examples/filebrowser/templates/view_file.pt
index 6872ffa..c65551b 100644
--- a/examples/filebrowser/templates/view_file.pt
+++ b/examples/filebrowser/templates/view_file.pt
@@ -9,7 +9,10 @@ Parent: <a tal:attributes="href options/parent/url"
tal:content="options/parent/name">name</a><br>
</tal:if>
</tal:if>
-Mimetype: <span tal:replace="servlet/mimetype"/><br>
+Mimetype: <tt tal:content="servlet/mimetype"/>
+<tal:if condition="servlet/size_text | nothing">
+&nbsp; &nbsp; Size: <tt tal:content="servlet/size_text"/></tal:if>
+<br>
<a tal:attributes="href servlet/pathurl/action=download">download</a>
<tal:if condition="options/allow_edit"> |
<a tal:attributes="href servlet/pathurl/action=edit">edit</a></tal:if>