@(issue: model.Issue, hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._ @if(loginAccount.isDefined){
@avatar(loginAccount.get.userName, 48)
@helper.html.preview(repository, "", false, true, "width: 680px; height: 100px;")
@if((!issue.isPullRequest || !issue.closed) && (hasWritePermission || issue.openedUserName == loginAccount.get.userName)){ }
}