diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-01-13 10:57:11 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-01-13 20:51:44 +0100 |
commit | 50c004f8a5f26ad27f03597b050f9b1a1910cc45 (patch) | |
tree | 09db1b151fd1ef6bd5525aefd4df9761d440fc80 /views | |
parent | 1d79988228a9b08c86d9e595fdc1b92f7ca50424 (diff) | |
download | git-arr-fork-50c004f8a5f26ad27f03597b050f9b1a1910cc45.zip |
embed_image_blob: retire reload of image blob
Historically, the 'blob' view was unconditionally handed cooked
(utf8-encoded) blob content, so embed_image_blob(), which requires raw
blob content, has been forced to reload the blob in raw form, which is
ugly and expensive. However, now that the Blob returned by Repo.blob()
is able to vend raw or cooked content, it is no longer necessary for
embed_image_blob() to reload the blob to gain access to the raw content.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'views')
-rw-r--r-- | views/blob.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/blob.html b/views/blob.html index f744cd9..1849260 100644 --- a/views/blob.html +++ b/views/blob.html @@ -40,7 +40,7 @@ </h3> % if can_embed_image(repo, fname.unicode): -{{!embed_image_blob(repo, dirname.raw, fname.raw)}} +{{!embed_image_blob(fname.raw, blob.raw_content)}} % elif can_markdown(repo, fname.unicode): {{!markdown_blob(blob.utf8_content)}} % elif can_colorize(blob.utf8_content): |