@(active: String, newButton: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, condition: Option[gitbucket.core.service.IssuesService.IssueSearchCondition] = None)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._
@condition.map { condition => @if(loginAccount.isDefined){
} else { } } @if(loginAccount.isDefined){ @if(newButton){ @if(active == "issues"){ New issue } @if(active == "pulls"){ New pull request } @if(active == "labels"){ New label } @if(active == "milestones"){ New milestone } } }