@(issue: Option[gitbucket.core.model.Issue], comments: List[gitbucket.core.model.Comment], isManageable: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, pullreq: Option[gitbucket.core.model.PullRequest] = None, commitId: Option[String] = None, renderScript: Boolean = true)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @import gitbucket.core.util.StringUtil._ @issueOrPullRequest()={ @if(issue.exists(_.isPullRequest))( "pull request" )else( "issue" ) } @showFormattedComment(comment: gitbucket.core.model.IssueComment)={
@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)
}
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@pullreq.map(_.requestBranch)
branch
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@comment.content
label
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@comment.content
label
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@comment.content.split(":")(0)
to @comment.content.split(":")(1)
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@comment.content.split(":")(0)
to @comment.content.split(":")(1)
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@comment.content.split(":")(0)
to @comment.content.split(":")(1)
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
@convertLineSeparator(comment.content, "LF").split("\n")(0)
to @convertLineSeparator(comment.content, "LF").split("\n")(1)
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)