Mercurial > genshi > mirror
view examples/trac/templates/attachment_view.html @ 61:448792ab1303 trunk
Use a different namespace than Kid uses.
author | cmlenz |
---|---|
date | Fri, 07 Jul 2006 17:54:52 +0000 |
parents | 2cb5b54d87ff |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://markup.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="layout.html"><xi:fallback/></xi:include> <head> <title>${attachment.title}</title> </head> <body> <div id="ctxtnav" class="nav"></div> <div id="content" class="attachment"> <h1> <a href="${attachment.parent_href(req)}">${attachment.parent_id}</a>: ${attachment.filename} </h1> <table id="info" summary="Description"><tbody><tr> <th scope="col"> File ${attachment.filename}, ${attachment.size} (added by ${attachment.author}, ${attachment.age} ago) </th></tr><tr> <td class="message">${attachment.description}</td> </tr></tbody></table> <div id="preview"> <div py:choose="" py:strip=""> <div py:when="preview">${Markup(preview)}</div> <div py:when="max_file_size_reached"> <strong>HTML preview not available</strong>, since the file size exceeds ${max_file_size} bytes. You may <a href="${attachment.raw_href}">download the file</a> instead. </div> <div py:otherwise=""> <strong>HTML preview not available</strong>. To view the file, <a href="${attachment.raw_href}">download the file</a>. </div> </div> </div> <div class="buttons" py:if="can_delete"> <form method="get" action=""><div id="delete"> <input type="hidden" name="action" value="delete" /> <input type="submit" value="Delete attachment" /> </div></form> </div> </div> </body> </html>