@(commitId: String, fileName: Option[String] = None, oldLineNumber: Option[Int] = None, newLineNumber: Option[Int] = None, issueId: Option[Int] = None, hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, focus: Boolean = false, uid: Long = new java.util.Date().getTime())(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @if(context.loginAccount.isDefined){ @if(!fileName.isDefined){

}
@gitbucket.core.helper.html.preview( repository = repository, content = "", enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission, completionContext = "issues", style = "height: 100px; max-height: 150px;", elastic = true, focus = focus, uid = uid ) @if(fileName.isDefined){
}
@if(!fileName.isDefined){
} @issueId.map { issueId => } @fileName.map { fileName => } @oldLineNumber.map { oldLineNumber => } @newLineNumber.map { newLineNumber => }
}