78cd41b87ea2 webui

More small style changes.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Oct 2009 21:12:15 -0400
parents 87c14b34e264
children efc3c9173ce1
branches/tags webui
files review/web_media/style.css review/web_templates/review.html

Changes

--- a/review/web_media/style.css	Tue Oct 13 21:06:14 2009 -0400
+++ b/review/web_media/style.css	Tue Oct 13 21:12:15 2009 -0400
@@ -27,12 +27,12 @@
 div.diff {
     overflow: auto;
 }
-table tr {
+div.diff table tr {
     white-space: pre;
 }
 table tr.add {
     background: #beb;
 }
-table tr.remove {
+table tr.rem {
     background: #fcc;
 }
\ No newline at end of file
--- a/review/web_templates/review.html	Tue Oct 13 21:06:14 2009 -0400
+++ b/review/web_templates/review.html	Tue Oct 13 21:12:15 2009 -0400
@@ -23,8 +23,9 @@
                         $ max_line = diff['max']
                         $ content = diff['content']
                         $for n, line in content:
-                            <tr class="${ 'remove' if line[0] == '-' else 'add' if line[0] == '+' else ''}">
-                                <td class="diff-line"><code>${ line[1:] if line.strip() else ' ' }</code></td>
+                            $ kind = 'rem' if line[0] == '-' else 'add' if line[0] == '+' else ''
+                            <tr class="${ kind }">
+                                <td class="diff-line"><code>${ line[1:] or ' ' }</code></td>
                             </tr>
                     </table>
                 </div>