diff options
-rw-r--r-- | views/blob.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/blob.html b/views/blob.html index 521fe74..ef20328 100644 --- a/views/blob.html +++ b/views/blob.html @@ -39,7 +39,13 @@ <a href="">{{!fname.html}}</a> </h3> -% if can_embed_image(repo, fname.unicode): +% if len(blob.raw_content) == 0: +<table class="nice"> + <tr> + <td>empty — 0 bytes</td> + </tr> +</table> +% elif can_embed_image(repo, fname.unicode): {{!embed_image_blob(fname.raw, blob.raw_content)}} % elif is_binary(blob.raw_content): <table class="nice blob-binary"> |