From 163ed5c4a00e1ea7004b633fdd0edca4d3be4493 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Fri, 27 Apr 2018 19:10:14 +0900 Subject: [PATCH] Fold outdated comments --- .../gitbucket/core/helper/commitcomments.scala.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html index 945acdcf5..622a1c12f 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomments.scala.html @@ -6,11 +6,16 @@
@comments.fileName + @if(!latestCommitId.contains(comments.comments.head.commitId)) { + + }
- @comments.diff.map(helpers.diff) -
+
+ @comments.diff.map(helpers.diff) +
@comments.comments.map { comment => @gitbucket.core.helper.html.commitcomment(comment, hasWritePermission, repository, latestCommitId) } +