From e1c7cd0965a06c7830f6d113f5928e7937f4223d Mon Sep 17 00:00:00 2001 From: KOUNOIKE Yuusuke Date: Thu, 24 May 2018 00:29:30 +0900 Subject: [PATCH] show "edited" in edited comment --- src/main/twirl/gitbucket/core/helper/commitcomment.scala.html | 3 +++ src/main/twirl/gitbucket/core/issues/commentlist.scala.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html index 63f099b78..ff09bae50 100644 --- a/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html +++ b/src/main/twirl/gitbucket/core/helper/commitcomment.scala.html @@ -13,6 +13,9 @@ @helpers.avatarLink(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + @if(comment.updatedDate.getTime > comment.registeredDate.getTime){ + - edited + } @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){   diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 6fdecdd1a..57390dec3 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -20,6 +20,9 @@ @gitbucket.core.helper.html.datetimeago(comment.registeredDate) + @if(comment.updatedDate.getTime > comment.registeredDate.getTime) { + - edited + } @if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer" && (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){