Suwon Chae 2015-03-23
project-menu: change menu number-badge style
@e8fe8fc90af0530a8e7f10ef6f8f126b76df541b
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -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 {
app/models/CommentThread.java
--- app/models/CommentThread.java
+++ app/models/CommentThread.java
@@ -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;
@@ -168,7 +169,10 @@
      * @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();
     }
 
Add a comment
List