Show the number of commits of selected branch

This commit is contained in:
Naoki Takezoe
2016-12-17 20:22:30 +09:00
parent 87fb136b85
commit 4f4afc5686
6 changed files with 35 additions and 35 deletions

View File

@@ -23,7 +23,7 @@
<div class="sidebar">
<ul class="sidebar-menu">
@menuitem("", "files", "Files", "code")
@if(repository.commitCount != 0) {
@if(repository.branchList.nonEmpty) {
@menuitem("/branches", "branches", "Branches", "git-branch", repository.branchList.length)
@menuitem("/tags", "tags", "Tags", "tag", repository.tags.length)
}