diff options
| author | ianb <devnull@localhost> | 2005-07-17 22:56:30 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-07-17 22:56:30 +0000 |
| commit | ae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd (patch) | |
| tree | d5aed0a3cf89568eeff010124e14327f95d43a20 /examples | |
| parent | 52b40a398aed35edfc135bf30410c7823593d85c (diff) | |
| download | paste-ae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd.tar.gz | |
Include file size in view
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/filebrowser/templates/view_file.pt | 5 |
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"> + 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> |
