OSDN Git Service

cleaning & image resize
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 15 Jan 2012 15:59:40 +0000 (17:59 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 15 Jan 2012 15:59:40 +0000 (17:59 +0200)
app/assets/images/Gear-UI.PNG
app/assets/images/Home-UI.PNG
app/assets/images/blueprint_notice.png [deleted file]
app/assets/images/git.png [deleted file]
app/assets/images/home.png [deleted file]
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/style.scss
app/models/repository.rb

index 1b4291a..c1d84e0 100644 (file)
Binary files a/app/assets/images/Gear-UI.PNG and b/app/assets/images/Gear-UI.PNG differ
index c6925c0..f57f8d0 100644 (file)
Binary files a/app/assets/images/Home-UI.PNG and b/app/assets/images/Home-UI.PNG differ
diff --git a/app/assets/images/blueprint_notice.png b/app/assets/images/blueprint_notice.png
deleted file mode 100644 (file)
index e002649..0000000
Binary files a/app/assets/images/blueprint_notice.png and /dev/null differ
diff --git a/app/assets/images/git.png b/app/assets/images/git.png
deleted file mode 100644 (file)
index cb5d059..0000000
Binary files a/app/assets/images/git.png and /dev/null differ
diff --git a/app/assets/images/home.png b/app/assets/images/home.png
deleted file mode 100644 (file)
index 316d5d4..0000000
Binary files a/app/assets/images/home.png and /dev/null differ
index ca9001b..b8c938d 100644 (file)
@@ -561,14 +561,10 @@ h4.middle-panel {
       margin:0px;
       font-size: 12px;
 
-      border-radius: 0px;
-      -moz-border-radius: 0px;
+      margin-right:10px;
+      border-radius: 4px;
+      -moz-border-radius: 4px;
 
-      -moz-border-radius-bottomleft: 4px;
-      -moz-border-radius-topleft: 4px;
-
-      border-top-left-radius: 4px;
-      border-bottom-left-radius: 4px;
 
       color: #666; 
       border: 1px solid #AAA;
@@ -595,16 +591,16 @@ h4.middle-panel {
 
   .chzn-single { 
     background:white;
-    -moz-border-radius: 0;
-    border-radius: 0;
-    -moz-border-radius-bottomright: 4px;
-    -moz-border-radius-topright: 4px;
-    border-top-right-radius: 4px;
-    border-bottom-right-radius: 4px;
+    -moz-border-radius: 4px;
+    border-radius: 4px;
 
     div { 
       background:white;
     }
+
+    span { 
+      font-weight: normal;
+    }
   }
 }
 
index 62ed632..8172a45 100644 (file)
@@ -565,7 +565,7 @@ input.search-input{
   background-color: #FFF;
   padding: 5px; 
   padding-left: 26px;
-  margin-top: 4px;
+  margin-top: 2px;
   margin-right: 10px;
 }
 /*input.search-input:focus{ background-color: white; width: 216px;}*/
@@ -637,18 +637,19 @@ body.project-page .project-sidebar aside{width: 109px}
 body.project-page .project-sidebar aside a{
   display: block;
   position: relative; 
-  background: #FFF; 
+  //background: #FFF; 
   padding: 15px 10px; 
-  border: 1px solid #ccc; 
+  //border: 1px solid #ccc; 
   margin: 10px 20px 0 0;
-  border-radius:5px;
+  //border-radius:5px;
 }
-body.project-page .project-sidebar aside a:hover{background-color: #FFFFFF;}
+//body.project-page .project-sidebar aside a:hover{background-color: #FFFFFF;}
 body.project-page .project-sidebar aside a span.number{float: right; border-radius: 5px; text-shadow: none; background: rgba(0,0,0,.12); text-align: center; padding: 5px 8px; position: absolute; top: 10px; right: 10px}
 body.project-page .project-sidebar aside a.current {
   color: white;
   background: #79C3E0;
   border: 1px solid #2FA0BB;
+  border-radius:5px;
 }
 body.project-page .project-content{ padding: 20px; display: block; margin-left: 130px; min-height: 600px}
 body.project-page .project-content h2{ margin-top: 6px}
index d36b458..0bf1bc1 100644 (file)
@@ -74,7 +74,9 @@ class Repository
   end
 
   def repo_exists?
-    repo rescue false
+    repo && !repo.branches.empty?
+  rescue 
+    false
   end
 
   def tags