@(issue: gitbucket.core.model.Issue, reopenable: Boolean, hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @if(loginAccount.isDefined){

@avatarLink(loginAccount.get.userName, 48)
@helper.html.preview( repository = repository, content = "", enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission, style = "", elastic = true, tabIndex = 1 )
@if((reopenable || !issue.closed) && (hasWritePermission || issue.openedUserName == loginAccount.get.userName)){ }
}