@(priorities: List[gitbucket.core.model.Priority], counts: Map[String, Int], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"Priorities - ${repository.owner}/${repository.name}"){ @gitbucket.core.html.menu("priorities", repository){ @if(hasWritePermission){
New priority
}

@priorities.size priorities
@priorities.map { priority => @gitbucket.core.issues.priorities.html.priority(priority, counts, repository, hasWritePermission) }
No priorities to show. @if(hasWritePermission){ Click on the "New priority" button above to create one. }

} }