diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 9ddc095..d616cb5 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -30,10 +30,12 @@ } +@issueOrPullRequest()={ @if(issue.isDefined && issue.get.isPullRequest)( "pull request" )else( "issue" ) } @comments.map { case comment: gitbucket.core.model.IssueComment => { - @if(comment.action != "close" && comment.action != "reopen" && comment.action != "delete_branch"){ + @if(comment.action != "close" && comment.action != "reopen" && comment.action != "delete_branch" + && comment.action != "commit" && comment.action != "refer"){
@pullreq.map(_.commitIdTo.substring(0, 7))
into
- @if(pullreq.get.requestUserName == repository.owner){
- @pullreq.map(_.branch) from @pullreq.map(_.requestBranch)
- } else {
- @pullreq.map(_.userName):@pullreq.map(_.branch) from @pullreq.map(_.requestUserName):@pullreq.map(_.requestBranch)
- }
- @helper.html.datetimeago(comment.registeredDate)
+ @pullreq.map(_.commitIdTo.substring(0, 7))
into
+ @if(pullreq.get.requestUserName == repository.owner){
+ @pullreq.map(_.branch)
from @pullreq.map(_.requestBranch)
+ } else {
+ @pullreq.map(_.userName):@pullreq.map(_.branch)
from @pullreq.map(_.requestUserName):@pullreq.map(_.requestBranch)
+ }
+ @helper.html.datetimeago(comment.registeredDate)
+ @pullreq.map(_.requestBranch)
branch
+ @helper.html.datetimeago(comment.registeredDate)
+