43047ad3e2fa webui

Tweak a few styles.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 21 Oct 2009 18:49:25 -0400
parents 41cb7a791e50
children c5932df8f4a8
branches/tags webui
files review/web_media/style.css review/web_templates/review.html review/web_ui.py

Changes

--- a/review/web_media/style.css	Wed Oct 21 18:37:21 2009 -0400
+++ b/review/web_media/style.css	Wed Oct 21 18:49:25 2009 -0400
@@ -48,6 +48,20 @@
     text-align: right;
 }
 
+/* Review pages. */
+div.filename-header {
+    background-color: #ccc;
+    border: 1px solid #c5c5c5;
+    padding: 1em;
+    width: 75em;
+    margin-left: -5em;
+    margin-bottom: 1.5em;
+    margin-top: 1.5em;
+}
+div.filename-header h3 {
+    margin: 0em;
+}
+
 /* Comments. */
 .comment {
     white-space: normal;
@@ -65,6 +79,9 @@
     margin-top: 1.5em;
     white-space: pre;
 }
+div#comment-review {
+    margin-bottom: 3em;
+}
 
 /* Diffs. */
 div.diff {
--- a/review/web_templates/review.html	Wed Oct 21 18:37:21 2009 -0400
+++ b/review/web_templates/review.html	Wed Oct 21 18:49:25 2009 -0400
@@ -26,7 +26,9 @@
 </div>
     
 $for filename, diff in rcset.diffs().iteritems():
-    <h3>${ filename }</h3>
+    <div class="filename-header">
+        <h3>${ filename }</h3>
+    </div>
     
     $ file_level_comments = filter(lambda c: c.filename == filename and not c.lines, rcset.comments)
     $for comment in file_level_comments:
@@ -38,7 +40,7 @@
             </div>
         </div>
     
-    <div id="comment-review">
+    <div id="comment-file">
         <form id="comment-file-form" method="post" action="">
             <div class="field">
                 <label for="body">Add a comment on this file:</label>
--- a/review/web_ui.py	Wed Oct 21 18:37:21 2009 -0400
+++ b/review/web_ui.py	Wed Oct 21 18:49:25 2009 -0400
@@ -36,7 +36,7 @@
 }
 render = web.template.render(template_path, globals=g)
 
-LOG_PAGE_LEN = 15
+LOG_PAGE_LEN = 25
 
 def render_in_base(fn):
     def _fn(*args, **kwargs):