]> source.dussan.org Git - gitea.git/commitdiff
template and ui fix
authorfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 09:31:44 +0000 (17:31 +0800)
committerfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 09:31:44 +0000 (17:31 +0800)
public/ng/css/gogs.css
public/ng/less/gogs/issue.less
public/ng/less/gogs/repository.less
templates/repo/home.tmpl
templates/repo/pulls.tmpl

index 7116afc0cdd4318fa6a04ec2f8aa9c1a46b5b81a..2d2ab7f3a08b512dac7afdce21c5967647189ce6 100644 (file)
@@ -1059,6 +1059,10 @@ The register and sign-in page style
 #repo-content {
   padding: 18px 0;
 }
+.repo-wide-wrapper {
+  padding: 18px 0;
+  position: relative;
+}
 #repo-clone-url {
   border-right: none;
   width: 190px;
@@ -1083,6 +1087,9 @@ The register and sign-in page style
 #repo-desc {
   font-size: 1.2em;
 }
+#repo-desc .no-description {
+  color: #999;
+}
 #repo-sidebar-nav .label {
   font-size: 12px;
   line-height: 1.4em;
@@ -1461,6 +1468,10 @@ The register and sign-in page style
 #commits-list {
   padding-top: 20px;
 }
+#commits-list h4 {
+  line-height: 30px;
+  margin-bottom: 0;
+}
 .commit-list th {
   background-color: #FFF;
   line-height: 28px !important;
@@ -1642,10 +1653,6 @@ The register and sign-in page style
 #user-ssh-add-form .field {
   margin-bottom: 24px;
 }
-.repo-issue-wrapper {
-  padding: 18px 0;
-  position: relative;
-}
 .pr-main {
   margin-right: 100px;
 }
index d5ab08176453bddaefb6c8dc2741e5998d3460ad..aaeb1af325cabd5abf57f66b9e01ca94bed3a94e 100644 (file)
@@ -1,23 +1,16 @@
 @import "../ui/var";
-.repo-issue-wrapper {
-  padding: 18px 0;
-  position: relative;
-}
-
 // pull request main content
 .pr-main {
   margin-right: 100px;
 }
-
 // right bar in pull request page
 .pr-sidebar {
   border-left: 1px solid #DDD;
   box-sizing: border-box;
   position: absolute;
-  right:0;
-  top:12px;
+  right: 0;
+  top: 12px;
 }
-
 .pr-title {
   .pr-num {
     font-weight: normal;
index 236271d47c67094d5a82510e1e32bd88064638d1..daa8983bcb416a1852da68797ae3d664d281d1a5 100644 (file)
@@ -6,12 +6,12 @@
 /* repository main */
 
 #repo-wrapper {
-    padding-bottom: 100px;
+  padding-bottom: 100px;
 }
 #repo-header {
-    height: 69px;
-    border-bottom: 1px solid@repoHeaderBorderColor;
-    background-color: @repoHeaderBgColor;
+  height: 69px;
+  border-bottom: 1px solid@repoHeaderBorderColor;
+  background-color: @repoHeaderBgColor;
 }
 #repo-header-name {
   line-height: 66px;
 #repo-content {
   padding: 18px 0;
 }
+.repo-wide-wrapper {
+  padding: 18px 0;
+  position: relative;
+}
 #repo-clone-url {
   border-right: none;
   width: 190px;
 }
 #repo-desc {
   font-size: 1.2em;
+  .no-description{
+    color: #999;
+  }
 }
 #repo-sidebar-nav {
   .label {
     padding-left: 12px;
     width: 24px;
     text-align: center;
-    > i.octicon{
+    > i.octicon {
       font-size: 21px;
     }
   }
-  .num{
+  .num {
     position: absolute;
     font-size: 12px;
-    top:0;
+    top: 0;
     left: 36px;
     padding: 0 2px;
     min-width: 16px;
   box-sizing: border-box;
 }
 #repo-branch-tag {
-    .tab-nav {
-        border-bottom: 1px solid #EAEAEA;
-        a {
-            padding: .3em .8em;
-        }
-        .js-tab-nav-show {
-            background-color: #EEE;
-            font-weight: bold;
-        }
+  .tab-nav {
+    border-bottom: 1px solid #EAEAEA;
+    a {
+      padding: .3em .8em;
     }
-    .switching-list {
-        max-height: 300px;
-        overflow-y: auto;
+    .js-tab-nav-show {
+      background-color: #EEE;
+      font-weight: bold;
     }
+  }
+  .switching-list {
+    max-height: 300px;
+    overflow-y: auto;
+  }
 }
 #repo-branch-list,
 #repo-tag-list {
-    li {
-        i {
-            margin-right: 12px;
-            opacity: 0;
-        }
+  li {
+    i {
+      margin-right: 12px;
+      opacity: 0;
     }
-    li.checked {
-        i {
-            opacity: 1;
-        }
+  }
+  li.checked {
+    i {
+      opacity: 1;
     }
+  }
 }
 #repo-bread {
   .bread {
   }
 }
 #repo-readme,
-#repo-read-file{
+#repo-read-file {
   margin-bottom: 80px;
 }
 #repo-bare-start {
   list-style: none;
 }
 #commits-list {
-    padding-top: 20px;
+  padding-top: 20px;
+  h4{
+    line-height: 30px;
+    margin-bottom: 0;
+  }
 }
 .commit-list {
-    th {
-        background-color: #FFF;
-        line-height: 28px !important;
-    }
-    .date {
-        width: 120px;
-    }
-    .author {
-        padding-left: 20px;
-        min-width: 180px;
-        img {
-            margin-top: -4px;
-        }
-    }
-    .sha a {
-        font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
-        font-size: 14px;
+  th {
+    background-color: #FFF;
+    line-height: 28px !important;
+  }
+  .date {
+    width: 120px;
+  }
+  .author {
+    padding-left: 20px;
+    min-width: 180px;
+    img {
+      margin-top: -4px;
     }
+  }
+  .sha a {
+    font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+    font-size: 14px;
+  }
 }
\ No newline at end of file
index a9d7f3040365cd9078ae28ba1508066080ea6194..476277a807c026f89405633f25415a610aba9d09 100644 (file)
@@ -4,9 +4,11 @@
     {{template "repo/header" .}}
     <div id="repo-content" class="clear container">
         <div id="repo-main" class="left grid-5-6">
-            <p id="repo-desc">
+            <p id="repo-desc">{{if .Repository.DescriptionHtml}}
                 <span class="description">{{.Repository.DescriptionHtml}}</span>
-                <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
+                <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{else}}
+                <span class="no-description text-italic"><i>No Description</i></span>
+                {{end}}
             </p>
             <ul id="repo-file-nav" class="clear menu menu-line">
                 <!-- <li>
index a36c50ab0b4b84b0a264027665f0c11eaf4710ce..bfb09055572d35a0460c62c3e4d48414fe50d96b 100644 (file)
@@ -2,7 +2,7 @@
 {{template "ng/base/header" .}}
 <div id="repo-wrapper">
     {{template "repo/header" .}}
-    <div class="clear container repo-issue-wrapper repo-pr">
+    <div class="clear container repo-wide-wrapper repo-pr">
         <div class="pr-main">
             <div class="pr-title clear">
                 <h2 class="pr-title grid-5-6 left">Fix: Repo Name can not be converted to lower in some cases <span class="pr-num">#256</span></h2>