Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | [define category_css]css/ph_detail.css[end] |
| 2 | [define page_css]css/d_sb.css[end] |
| 3 | [# Use raw format because filename will be escaped when title variable is used.] |
| 4 | [define title][format "raw"][filename][end] ([filesize])[end] |
| 5 | [include "../framework/header.ezt" "showtabs"] |
| 6 | |
| 7 | <link type="text/css" rel="stylesheet" |
| 8 | href="[version_base]/static/css/prettify.css"> |
| 9 | |
| 10 | <h3 style="margin-bottom: 0">Issue <a href="detail?id=[local_id][#TODO(jrobbins): comment number]">[local_id]</a> attachment: [filename] <small>([filesize])</small> |
| 11 | </h3> |
| 12 | |
| 13 | |
| 14 | |
| 15 | <div class="fc"> |
| 16 | [if-any too_large] |
| 17 | <p><em>This file is too large to display.</em></p> |
| 18 | |
| 19 | [else][if-any is_binary] |
| 20 | |
| 21 | <p><em> |
| 22 | This file is not plain text (only UTF-8 and Latin-1 text encodings are currently supported). |
| 23 | </em></p> |
| 24 | [else] |
| 25 | |
| 26 | [include "../framework/file-content-part.ezt"] |
| 27 | [include "../framework/file-content-js.ezt"] |
| 28 | |
| 29 | [end][end] |
| 30 | |
| 31 | </div> |
| 32 | |
| 33 | |
| 34 | [if-any should_prettify] |
| 35 | <script src="[version_base]/static/js/prettify.js" nonce="[nonce]"></script> |
| 36 | <script type="text/javascript" nonce="[nonce]"> |
| 37 | runOnLoad(function() { |
| 38 | prettyPrint(); |
| 39 | }); |
| 40 | </script> |
| 41 | [end] |
| 42 | |
| 43 | [include "../framework/footer.ezt"] |