From 37bb65c4f62b9da2e6e3c342c6769576eef10810 Mon Sep 17 00:00:00 2001 From: Milka Kuzminski Date: Fri, 30 Oct 2020 09:52:06 +0100 Subject: [PATCH] comments: fixed display of outdated comments at version --- rhodecode/templates/codeblocks/diffs.mako | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako index e56835e6..9f5d916b 100644 --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -636,11 +636,12 @@ return '%s_%s_%i' % (h.md5_safe(commit+filename), type, line) extra_class = '' extra_style = '' - if comments and comments[-1].outdated: + if comments and comments[-1].outdated_at_version(c.at_version_num): extra_class = ' comment-outdated' extra_style = 'display: none;' %> +