From 74dc6069fab030ab488f21aaa70406072284b04b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 02:28:05 +0000 Subject: [PATCH] Style to diff system --- templates/default/diff.css | 25 ++++++++++++++++++++++ templates/default/diff.tpl | 37 +-------------------------------- templates/default/diff_file.tpl | 5 +---- templates/default/diff_hunk.tpl | 4 ++-- templates/default/diff_line.tpl | 16 +++++++------- 5 files changed, 37 insertions(+), 50 deletions(-) diff --git a/templates/default/diff.css b/templates/default/diff.css index 447a3e5..40eaeae 100644 --- a/templates/default/diff.css +++ b/templates/default/diff.css @@ -14,6 +14,31 @@ 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$ diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl index 618bda2..7275f5f 100644 --- a/templates/default/diff.tpl +++ b/templates/default/diff.tpl @@ -2,6 +2,7 @@ $doctype $headinclude + Diff @@ -13,42 +14,6 @@ $navbar View Log - - $changes $footer \ No newline at end of file diff --git a/templates/default/diff_file.tpl b/templates/default/diff_file.tpl index fdd371a..3249f0a 100644 --- a/templates/default/diff_file.tpl +++ b/templates/default/diff_file.tpl @@ -1,5 +1,2 @@ -

$filename

- +
$filename
$hunktpl - -
diff --git a/templates/default/diff_hunk.tpl b/templates/default/diff_hunk.tpl index 6fd47da..19d6a19 100644 --- a/templates/default/diff_hunk.tpl +++ b/templates/default/diff_hunk.tpl @@ -1,3 +1,3 @@ - +
$lines -
\ No newline at end of file + diff --git a/templates/default/diff_line.tpl b/templates/default/diff_line.tpl index 3aef0c8..20dd2b6 100644 --- a/templates/default/diff_line.tpl +++ b/templates/default/diff_line.tpl @@ -1,13 +1,13 @@ - - r$low - r$high -   + + r$low + r$high +   - - $line[oldlineno] - $line[newlineno] - $line[line_clean] + + $line[oldlineno] + $line[newlineno] + $line[line_clean] \ No newline at end of file -- 2.43.5