# HG changeset patch # User Mads Kiilerich # Date 2014-08-12 13:08:23 # Node ID 2911a8e61d131afa3e225658cc7d14fa3d397335 # Parent 9c02f53ca13b17649a88e157f0c64a9fba94bad3 diff: use different hack for hiding space around img diff --git a/kallithea/templates/changeset/diff_block.html b/kallithea/templates/changeset/diff_block.html --- a/kallithea/templates/changeset/diff_block.html +++ b/kallithea/templates/changeset/diff_block.html @@ -47,12 +47,11 @@ %if path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images
-
+
+ realsrc="${h.url('files_raw_home',repo_name=c.repo_name,revision=cs1,f_path=path) if change in 'DM' else ''}" /> +
%endif
@@ -100,12 +99,11 @@ %if filenode_path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images
-
+
+ realsrc="${h.url('files_raw_home',repo_name=c.other_repo.repo_name,revision=c.other_rev,f_path=filenode_path) if op in 'DM' else ''}" /> +
%endif