@(labels: List[gitbucket.core.model.Label], 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"Labels - ${repository.owner}/${repository.name}"){ @gitbucket.core.html.menu("labels", repository){ @if(context.loginAccount.isDefined){
New label
}

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

} }