Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
project-menu: add number-badge at review menu
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 21, 2015
1 parent e8fe8fc commit f43df15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/projectMenu.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
routes.PullRequestApp.pullRequests(project.owner, project.name)
}
}

@reviewCount = @{
CommentThread.countReviewsBy(project.id, null)
}
<div class="project-menu-outer">
<div class="project-menu-inner">
<ul class="project-menu-nav project-menu-gruop">
Expand Down Expand Up @@ -76,7 +80,8 @@
@if(project.menuSetting.review) {
<li class="@isActiveMenu(MenuType.PROJECT_REVIEW)">
<a href="@routes.ReviewThreadApp.reviewThreads(project.owner, project.name)">
@Messages("menu.review")
@Messages("menu.review")
@if(reviewCount > 0){<span class="project-menu-count">@reviewCount</span>}
</a>
</li>
}
Expand Down

0 comments on commit f43df15

Please sign in to comment.