doortts doortts 2014-04-22
fix: change default project bg and some fix
@2cdac96cea473c6af9dadea784a1d9590ecfabf2
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -228,9 +228,8 @@
 }
 
 .project-header-outer {
-    background-color:#ececec;
+    background-color: #565656;
     height:80px;
-    border-bottom:1px solid #ddd;
     background-clip: padding-box;
     background-position: bottom;
     background-repeat: no-repeat;
@@ -253,7 +252,9 @@
                 position:absolute;
                 width: 80px;
                 height: 80px;
-                border:5px solid #fff;
+                border:5px solid #f9f9f9;
+                border-radius: 3px !important;
+                background: #fff;
 
                 img {
                     width: 100%;
@@ -379,7 +380,6 @@
             &.project-menu-gruop {
                 float:left;
                 margin-left:110px;
-                border-left:1px solid #ddd;
             }
 
             li {
app/utils/TemplateHelper.scala
--- app/utils/TemplateHelper.scala
+++ app/utils/TemplateHelper.scala
@@ -152,7 +152,7 @@
   def urlToProjectLogo(project: Project) = {
     models.Attachment.findByContainer(project.asResource) match {
       case files if files.size > 0 => routes.AttachmentApp.getFile(files.head.id)
-      case _ => routes.Assets.at("images/project_default.png")
+      case _ => routes.Assets.at("images/project_default_logo.png")
     }
   }
 
app/views/project/header.scala.html
--- app/views/project/header.scala.html
+++ app/views/project/header.scala.html
@@ -27,7 +27,7 @@
 @import models.enumeration.Operation
 @import controllers.UserApp
 
-<div class="project-header-outer" style="background-image:url(@urlToProjectLogo(project))">
+<div class="project-header-outer" style="background-image:url(@urlToProjectBG(project))">
     <div class="project-header-inner">
         <div class="project-header-wrap">
             <div class="project-header-avatar">
 
public/images/project_default_logo.png (Binary) (added)
+++ public/images/project_default_logo.png
Binary file is not shown
Add a comment
List