| 1 | <?cs set:html.stylesheet = 'css/browser.css' ?> |
|---|
| 2 | <?cs include "header.cs"?> |
|---|
| 3 | <?cs include "macros.cs"?> |
|---|
| 4 | |
|---|
| 5 | <div id="ctxtnav" class="nav"> |
|---|
| 6 | <?cs if:args.mode != 'attachment' && trac.acl.LOG_VIEW ?><ul> |
|---|
| 7 | <li class="last"><a href="<?cs var:file.logurl ?>">Revision Log</a></li> |
|---|
| 8 | </ul><?cs /if ?> |
|---|
| 9 | </div> |
|---|
| 10 | |
|---|
| 11 | <div id="content" class="file"> |
|---|
| 12 | |
|---|
| 13 | <?cs if file.attachment_parent ?> |
|---|
| 14 | <h1><a href="<?cs var:file.attachment_parent_href ?>"><?cs |
|---|
| 15 | var:file.attachment_parent ?></a>: <?cs var:file.filename ?></h1> |
|---|
| 16 | |
|---|
| 17 | <?cs else ?> |
|---|
| 18 | <?cs call:browser_path_links(file.path, file) ?> |
|---|
| 19 | <div id="jumprev"> |
|---|
| 20 | <form action="" method="get"> |
|---|
| 21 | <div> |
|---|
| 22 | <label for="rev">View revision:</label> |
|---|
| 23 | <input type="text" id="rev" name="rev" value="<?cs |
|---|
| 24 | var:file.rev ?>" size="4" /> |
|---|
| 25 | </div> |
|---|
| 26 | </form> |
|---|
| 27 | </div> |
|---|
| 28 | <table id="info" summary="Revision info"> |
|---|
| 29 | <tr> |
|---|
| 30 | <th scope="row"> |
|---|
| 31 | Revision <a href="<?cs var:file.chgset_href ?>"><?cs var:file.rev ?></a> |
|---|
| 32 | (by <?cs var:file.rev_author ?>, <?cs var:file.rev_date ?>) |
|---|
| 33 | </th> |
|---|
| 34 | <td class="message"><?cs var:file.rev_msg ?></td> |
|---|
| 35 | </tr> |
|---|
| 36 | </table> |
|---|
| 37 | <?cs /if ?> |
|---|
| 38 | |
|---|
| 39 | <div id="preview"> |
|---|
| 40 | <?cs if:file.highlighted_html ?> |
|---|
| 41 | <?cs var:file.highlighted_html ?> |
|---|
| 42 | <?cs elif:file.max_file_size_reached ?> |
|---|
| 43 | <strong>HTML preview not available</strong>, since file-size exceeds |
|---|
| 44 | <?cs var:file.max_file_size ?> bytes. |
|---|
| 45 | Try <a href="?format=raw">downloading the file</a> instead. |
|---|
| 46 | <?cs else ?> |
|---|
| 47 | <strong>HTML preview not available</strong>. To view, <a href="<?cs |
|---|
| 48 | var:file.filename + '?rev=' + file.rev ?>&format=raw">download the |
|---|
| 49 | file</a>. |
|---|
| 50 | <?cs /if ?> |
|---|
| 51 | </div> |
|---|
| 52 | |
|---|
| 53 | <?cs if:attachment.delete_href ?><div class="buttons"> |
|---|
| 54 | <form method="get" action=""><div id="delete"> |
|---|
| 55 | <input type="hidden" name="delete" value="yes" /> |
|---|
| 56 | <input type="submit" value="Delete Attachment" onclick="return confirm('Do you really want to delete this attachment?\nThis is an irreversible operation.')" /> |
|---|
| 57 | </div></form> |
|---|
| 58 | </div><?cs /if ?> |
|---|
| 59 | |
|---|
| 60 | <?cs if:!file.attachment_parent ?> |
|---|
| 61 | <div id="help"> |
|---|
| 62 | <strong>Note:</strong> See <a href="<?cs var:trac.href.wiki |
|---|
| 63 | ?>/TracBrowser">TracBrowser</a> for help on using the browser. |
|---|
| 64 | </div> |
|---|
| 65 | <?cs /if ?> |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | </div> |
|---|
| 69 | |
|---|
| 70 | <?cs include "footer.cs"?> |
|---|