From c9e1eb0a0d9e6bdafa158442158c762b7f188177 Mon Sep 17 00:00:00 2001
From: FuXiaoHei <fuxiaohei@hexiaz.com>
Date: Mon, 24 Mar 2014 22:23:55 +0800
Subject: [PATCH] diff page ui

---
 public/css/gogs.css      | 12 +++++++++++-
 templates/repo/diff.tmpl | 30 ++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/public/css/gogs.css b/public/css/gogs.css
index ec37721fd6..434af03590 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -711,6 +711,12 @@ html, body {
     width: 1%;
 }
 
+.file-content .file-body.file-code .lines-ellipsis {
+    background-color: #FAFAFA;
+    color: #999;
+    width: 1%;
+}
+
 .file-content .file-body.file-code .lines-num span {
     font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
     line-height: 1.6;
@@ -896,7 +902,7 @@ html, body {
     background-color: #e9aeae;
 }
 
-.diff-detail-box span.status.rename{
+.diff-detail-box span.status.rename {
     background-color: #dad8ff;
 }
 
@@ -962,6 +968,10 @@ html, body {
     border-color: #f0db88 !important;
 }
 
+.diff-file-box .ellipsis-code pre {
+    color: #AAA;
+}
+
 /* wrapper and footer */
 
 #wrapper {
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 0c6f4febcd..b0836127ff 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -387,6 +387,36 @@
                             <pre>	"github.com/youtube/vitess/go/bson"</pre>
                         </td>
                     </tr>
+                    <tr class="ellipsis-code">
+                        <td class="text-center lines-ellipsis" colspan="2">
+                            <i class="fa fa-ellipsis-h"></i>
+                        </td>
+                        <td class="lines-code">
+                            <pre>	"github.com/youtube/vitess/go/bson"</pre>
+                        </td>
+                    </tr>
+                    <tr class="same-code nl-8 ol-10">
+                        <td class="lines-num lines-num-old">
+                            <span rel="L1">10</span>
+                        </td>
+                        <td class="lines-num lines-num-new">
+                            <span rel="L1">8</span>
+                        </td>
+                        <td class="lines-code">
+                            <pre>	"github.com/youtube/vitess/go/bson"</pre>
+                        </td>
+                    </tr>
+                    <tr class="same-code nl-8 ol-10">
+                        <td class="lines-num lines-num-old">
+                            <span rel="L1">10</span>
+                        </td>
+                        <td class="lines-num lines-num-new">
+                            <span rel="L1">8</span>
+                        </td>
+                        <td class="lines-code">
+                            <pre>	"github.com/youtube/vitess/go/bson"</pre>
+                        </td>
+                    </tr>
                     </tbody>
                 </table>
             </div>