Show left/right revision at the top of each diff
authorChuck Hagenbuch <chuck@horde.org>
Mon, 6 Dec 2010 01:21:38 +0000 (20:21 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 6 Dec 2010 01:21:38 +0000 (20:21 -0500)
chora/app/views/diff/diff.html.php
chora/themes/default/screen.css

index 5067524..57a7f28 100644 (file)
@@ -1,11 +1,9 @@
 <div class="diff"<?php if ($id) echo ' id="' . $id . '"' ?>>
  <div class="diff-header"><h4><a href="<?php echo Chora::url('co', $file->queryModulePath(), array('onb' => $r1)) ?>"><?php echo $file->queryModulePath() ?></a></h4></div>
- <!--
- <div class="diff-container">
+ <div class="diff-container diff-subheader">
   <div class="diff-left"><?php echo $this->escape($r1) ?></div>
   <div class="diff-right"><?php echo $this->escape($r2) ?></div>
  </div>
- -->
 
  <div class="diff-container">
   <div class="diff-left">
index 1b43837..23c6cbf 100644 (file)
@@ -286,6 +286,14 @@ div.diff-header h4 {
     font-family: Menlo,Consolas,"Lucida Console","DejaVu Sans Mono",monospace;
     font-size: 110%;
 }
+div.diff-subheader {
+    border-right: 1px solid #ddd;
+    border-bottom: 1px solid #ddd;
+    background: #eee;
+    padding: .5em;
+    font-family: Menlo,Consolas,"Lucida Console","DejaVu Sans Mono",monospace;
+    text-align: center;
+}
 div.diff-container:after {
     content: ".";
     display: block;