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 May 12, 2015
1 parent f43df15 commit bff6f04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//--- common
.prj {
color:#202020;
color:#555;
}

.unsupported {
Expand Down Expand Up @@ -439,6 +439,7 @@
li {
float:left;
font-size: 14px;
font-weight: bold;
position: relative;

a {
Expand Down Expand Up @@ -503,6 +504,15 @@
vertical-align: top;
.border-radius(10px);
font-family: @fixed-font-family;
font-weight: normal;
}

.project-new-posting {
font-size: 12px;
line-height: 14px;
font-family: @fixed-font-family;
color: @yobi-primary;
vertical-align: top;
}

.project-page-wrap {
Expand Down
4 changes: 4 additions & 0 deletions app/views/projectMenu.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
@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 @@ -96,6 +97,9 @@
<li class="@isActiveMenu(MenuType.BOARD)">
<a href="@routes.BoardApp.posts(project.owner, project.name)">
@Messages("menu.board")
@if(Posting.countPostings(project) > 0){
<span class="project-menu-count">@Posting.countPostings(project)</span>
}
</a>
</li>
}
Expand Down

0 comments on commit bff6f04

Please sign in to comment.