diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 8406bb0..819540b 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -30,7 +30,8 @@ } -@issueOrPullRequest()={ @if(issue.isDefined && issue.get.isPullRequest)( "pull request" )else( "issue" ) } +@issueOrPullRequest() = { +@if(issue.exists(_.isPullRequest)) ("pull request")else( "issue" ) } @comments.map { case comment: gitbucket.core.model.IssueComment => { @@ -46,7 +47,7 @@ } else { referenced the @issueOrPullRequest() } - + @gitbucket.core.helper.html.datetimeago(comment.registeredDate)