@(commitId: String, fileName: Option[String] = None, oldLineNumber: Option[Int] = None, newLineNumber: Option[Int] = None, issueId: Option[Int] = None, hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._ @if(loginAccount.isDefined){ @if(!fileName.isDefined){

} @if(!fileName.isDefined){
@avatar(loginAccount.get.userName, 48)
}
@helper.html.preview(repository, "", false, true, true, hasWritePermission, "width: 635px; height: 100px; max-height: 150px;", elastic = true)
@if(fileName.isDefined){
}
@if(!fileName.isDefined){
} @issueId.map { issueId => } @fileName.map { fileName => } @oldLineNumber.map { oldLineNumber => } @newLineNumber.map { newLineNumber => }
}