# HG changeset patch # User Mads Kiilerich # Date 2015-08-05 12:29:41 # Node ID 42c1a1c7ffddeca8513b9c89dcfcdefbd9402c42 # Parent 68bdd7646187345dc8606ed124f8837f6c42e1ef comments: cleanup of full_f_path - just put data attribute on div around diff of each file diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -654,8 +654,7 @@ var injectInlineForm = function(tr){ return } $tr.addClass('form-open hl-comment'); - var $node = $tr.parent().parent().parent().find('.full_f_path'); - var f_path = $node.attr('path'); + var f_path = $tr.parent().closest('.full_f_path').data('f_path'); var lineno = _getLineNo(tr); var $form = _createInlineForm(tr, f_path, lineno, submit_url); 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 @@ -41,8 +41,7 @@ -
-
+
${diff|n} %if path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images
@@ -104,8 +103,7 @@
-
-
+
${diff|n} %if filenode_path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images