diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/blob.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/views/blob.html b/views/blob.html index 1849260..4526c99 100644 --- a/views/blob.html +++ b/views/blob.html @@ -41,6 +41,14 @@ % if can_embed_image(repo, fname.unicode): {{!embed_image_blob(fname.raw, blob.raw_content)}} +% elif is_binary(blob.raw_content): +<table class="nice"> + <tr> + <td> + binary — {{'{:,}'.format(len(blob.raw_content))}} bytes + </td> + </tr> +</table> % elif can_markdown(repo, fname.unicode): {{!markdown_blob(blob.utf8_content)}} % elif can_colorize(blob.utf8_content): |