Style to diff system
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Sep 2005 02:28:05 +0000 (02:28 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Sep 2005 02:28:05 +0000 (02:28 +0000)
templates/default/diff.css
templates/default/diff.tpl
templates/default/diff_file.tpl
templates/default/diff_hunk.tpl
templates/default/diff_line.tpl

index 447a3e57afd33cdbeb3f27309855e4cbb0e9445a..40eaeae16618e61bca6d99187080bef34847ab29 100644 (file)
        background-color: rgb(222, 231, 248);
 }
 
+.diff_add
+{
+       background-color: #99EE99;
+}
+
+.diff_del
+{
+       background-color: #EE9999;
+}
+
+.diff_add_bit
+{
+       background-color: #DDFFDD;
+}
+
+.diff_del_bit
+{
+       background-color: #FFDDDD;
+}
+
+.diff_norm
+{
+       background-color: white;
+}
+
 /*=====================================================================*\
 || ###################################################################
 || # $HeadURL$
index 618bda20d8acce7d3d9ab16f455f122e32b37ff6..7275f5fcaf4433f798f4fd507093645d1d013e6c 100644 (file)
@@ -2,6 +2,7 @@ $doctype
 <html lang="##LANG##" xml:lang="##XML-LANG##">
 <head>
 $headinclude
+       <link rel="stylesheet" href="/viewsvn/templates/default/diff.css" media="screen" />
        <title>Diff</title>
 </head>
 
@@ -13,42 +14,6 @@ $navbar
 
 <a href="/viewsvn/$link[log]">View Log</a>
 
-<style type="text/css">
-<!--
-       
-       .diff_add
-       {
-               background-color: #99EE99;
-       }
-       
-       .diff_del
-       {
-               background-color: #EE9999;
-       }
-       
-       table
-       {
-               font: normal 11px monospace;
-       }
-       
-       .diff_add_bit
-       {
-               background-color: #DDFFDD;
-       }
-       
-       .diff_del_bit
-       {
-               background-color: #FFDDDD;
-       }
-       
-       .diff_norm
-       {
-               background-color: white;
-       }
-       
-//-->
-</style>
-
 $changes
 
 $footer
\ No newline at end of file
index fdd371ac59bb80989c2173f5dc08821256055da1..3249f0ad7666e59ff6fe62a20c112f1edd98b461 100644 (file)
@@ -1,5 +1,2 @@
-<h2>$filename</h2>
-
+<div class="head">$filename</div>
 $hunktpl
-
-<hr />
index 6fd47dacd77af33bf8e2a0d754179181176e0e6a..19d6a19f16c51dee12e39eee9b5b65511ff40d2e 100644 (file)
@@ -1,3 +1,3 @@
-<table cellspacing="1" cellpadding="1" width="100%">
+<table width="100%" cellspacing="0" cellpadding="0" border="0">
 $lines
-</table>
\ No newline at end of file
+</table>
index 3aef0c8720131b77431cf7c8f55059ede8e25520..20dd2b663c7e9bca6ec4f322369bd525ce0d02de 100644 (file)
@@ -1,13 +1,13 @@
 <if condition="$show['hunk']">
-       <tr style="background-color: #F7F7F7">
-               <td><a href="/viewsvn/$rlow">r$low</a></td>
-               <td><a href="/viewsnv/$rhigh">r$high</a></td>
-               <td>&nbsp;</td>
+       <tr>
+               <td class="subhead" style="border-width: 0px 1px 1px 1px; width: 1%"><a href="/viewsvn/$rlow">r$low</a></td>
+               <td class="subhead" style="border-width: 0px 1px 1px 0px; width: 1%"><a href="/viewsnv/$rhigh">r$high</a></td>
+               <td class="subhead" style="border-width: 0px 1px 1px 0px">&nbsp;</td>
        </tr>
 <else />
-       <tr style="background-color: #EEEEDD; border-width: 0px 1px 1px 0px">
-               <td>$line[oldlineno]</td>
-               <td>$line[newlineno]</td>
-               <td class="$class">$line[line_clean]</td>
+       <tr>
+               <td class="lineheader" style="border-width: 0px 1px 1px 1px">$line[oldlineno]</td>
+               <td class="lineheader" style="border-width: 0px 1px 1px 0px">$line[newlineno]</td>
+               <td class="code + $class" style="border-width: 0px 1px 1px 0px">$line[line_clean]</td>
        </tr>
 </if>
\ No newline at end of file