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

Commit

Permalink
project-menu: change menu number-badge style
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 21, 2015
1 parent 4166f0c commit e8fe8fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 7 additions & 11 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -495,18 +495,14 @@
}

.project-menu-count {
font-size:12px;
border:2px solid #FFF;
line-height:20px;
padding:0 5px;
background-color:@yobi-primary;
color:#ECF0F1;
font-size: 12px;
line-height: 20px;
padding: 1px 5px;
background-color: @yobi-primary;
color: #ECF0F1;
vertical-align: top;
.border-radius(10px);

-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(0,0,0,0.1);
-o-box-shadow: 0 1px 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(0,0,0,0.1);
box-shadow: 0 1px 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(0,0,0,0.1);
font-family: @fixed-font-family;
}

.project-page-wrap {
Expand Down
6 changes: 5 additions & 1 deletion app/models/CommentThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.annotation.Nullable;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
Expand Down Expand Up @@ -168,7 +169,10 @@ public ReviewComment getFirstReviewComment() {
* @return
*/

public static int countReviewsBy(Long projectId, ReviewSearchCondition cond) {
public static int countReviewsBy(Long projectId, @Nullable ReviewSearchCondition cond) {
if(cond == null){
cond = new ReviewSearchCondition();
}
return cond.asExpressionList(Project.find.byId(projectId)).findRowCount();
}

Expand Down

0 comments on commit e8fe8fc

Please sign in to comment.