comparison examples/trac/templates/attachment_view.html @ 60:94154a39c986

Migrate attachment templates to Markup.
author cmlenz
date Wed, 05 Jul 2006 21:32:27 +0000
parents
children 33c2702cf6da
comparison
equal deleted inserted replaced
59:352d176b4f06 60:94154a39c986
1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://purl.org/kid/ns#"
6 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <xi:include href="layout.html"><xi:fallback/></xi:include>
8 <head>
9 <title>${attachment.title}</title>
10 </head>
11
12 <body>
13 <div id="ctxtnav" class="nav"></div>
14
15 <div id="content" class="attachment">
16 <h1>
17 <a href="${attachment.parent_href(req)}">${attachment.parent_id}</a>:
18 ${attachment.filename}
19 </h1>
20 <table id="info" summary="Description"><tbody><tr>
21 <th scope="col">
22 File ${attachment.filename}, ${attachment.size}
23 (added by ${attachment.author}, ${attachment.age} ago)
24 </th></tr><tr>
25 <td class="message">${attachment.description}</td>
26 </tr></tbody></table>
27 <div id="preview">
28 <div py:choose="" py:strip="">
29 <div py:when="preview">${Markup(preview)}</div>
30 <div py:when="max_file_size_reached">
31 <strong>HTML preview not available</strong>, since the file size
32 exceeds ${max_file_size} bytes. You may
33 <a href="${attachment.raw_href}">download the file</a> instead.
34 </div>
35 <div py:otherwise="">
36 <strong>HTML preview not available</strong>. To view the file,
37 <a href="${attachment.raw_href}">download the file</a>.
38 </div>
39 </div>
40 </div>
41 <div class="buttons" py:if="can_delete">
42 <form method="get" action=""><div id="delete">
43 <input type="hidden" name="action" value="delete" />
44 <input type="submit" value="Delete attachment" />
45 </div></form>
46 </div>
47 </div>
48
49 </body>
50 </html>
Copyright (C) 2012-2017 Edgewall Software