From 54026b7585badf3736ad97f6f6e1d656d9f469e2 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 2 Nov 2013 21:12:50 +0000 Subject: Make embedding markdown and images configurable per-repo This patch introduces the embed_markdown and embed_images configuration options, so users can enable and disable those features on a per-repository basis. Signed-off-by: Alberto Bertogli --- views/blob.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/blob.html') diff --git a/views/blob.html b/views/blob.html index 320cc89..9d0e9ff 100644 --- a/views/blob.html +++ b/views/blob.html @@ -36,9 +36,9 @@ {{!fname.html}} -% if can_embed_image(fname.unicode): +% if can_embed_image(repo, fname.unicode): {{!embed_image_blob(repo, dirname.raw, fname.raw)}} -% elif can_markdown(fname.unicode): +% elif can_markdown(repo, fname.unicode): {{!markdown_blob(blob)}} % elif can_colorize(blob): {{!colorize_blob(fname.unicode, blob)}} -- cgit v1.2.3