author | Eric Sunshine
<sunshine@sunshineco.com> 2015-01-13 09:57:16 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2015-01-13 19:51:45 UTC |
parent | c91beccdb04f0437ac6cd8f13c09117ea9766296 |
views/blob.html | +7 | -1 |
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">