@(labels: List[model.Label], counts: Map[String, Int], repository: service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main(s"Labels - ${repository.owner}/${repository.name}"){ @html.menu("issues", repository){ @issues.html.tab("labels", hasWritePermission, repository)

@labels.size labels
@labels.map { label =>
@label.labelName @counts.get(label.labelName).getOrElse(0) open issues @if(hasWritePermission){ Edit Delete }
} @if(labels.isEmpty){
No labels to show. @if(hasWritePermission){ Create a new label. }
}

} }