aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorVanya Sergeev <vsergeev@gmail.com>2013-10-13 15:30:25 +0200
committerAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 20:07:59 +0100
commit21522f8a3a4a010ad717f5bdcbbc6584d9ba7527 (patch)
treefd2327266ab4fb524bb03b5ea933a621367c7f3e /views
parentf62ca211ebf8badd17fef5d15d61eb8ff00875c1 (diff)
downloadgit-arr-fork-21522f8a3a4a010ad717f5bdcbbc6584d9ba7527.zip
Add embed data URI image blob support
Diffstat (limited to 'views')
-rw-r--r--views/blob.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/blob.html b/views/blob.html
index 6244fc7..320cc89 100644
--- a/views/blob.html
+++ b/views/blob.html
@@ -36,7 +36,9 @@
<a href="">{{!fname.html}}</a>
</h3>
-% if can_markdown(fname.unicode):
+% if can_embed_image(fname.unicode):
+{{!embed_image_blob(repo, dirname.raw, fname.raw)}}
+% elif can_markdown(fname.unicode):
{{!markdown_blob(blob)}}
% elif can_colorize(blob):
{{!colorize_blob(fname.unicode, blob)}}