aboutsummaryrefslogtreecommitdiffstats
path: root/beweb
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2005-12-03 22:54:57 -0500
committerAaron Bentley <aaron.bentley@utoronto.ca>2005-12-03 22:54:57 -0500
commit5ee65b8f921c77b781a252fccbfac699993ef2ce (patch)
treefa85f5044abb4e59608c9992a58410b10036894d /beweb
parent8f4d14c254683a4fcee714ead159c3bef402f2dc (diff)
downloadbugseverywhere-5ee65b8f921c77b781a252fccbfac699993ef2ce.tar.gz
Switched to inset boxes for comments
Diffstat (limited to 'beweb')
-rw-r--r--beweb/beweb/static/css/style.css12
-rw-r--r--beweb/beweb/templates/edit_bug.kid2
-rw-r--r--beweb/beweb/templates/master.kid4
3 files changed, 10 insertions, 8 deletions
diff --git a/beweb/beweb/static/css/style.css b/beweb/beweb/static/css/style.css
index 858fd74..76a3092 100644
--- a/beweb/beweb/static/css/style.css
+++ b/beweb/beweb/static/css/style.css
@@ -45,15 +45,10 @@ body
{
font-family: "Verdana";
font-size:11pt;
+ background-color: white;
}
.comment
{
- margin-top: 1em;
- margin-bottom; 60px;
- padding: 0.5em;
- border: dashed thin black;
- background-color: #ffa;
- width:60%
}
.comment table
{
@@ -77,3 +72,8 @@ body
background-repeat: no-repeat;
background-color: #ff0;
}
+table.insetbox
+{
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+}
diff --git a/beweb/beweb/templates/edit_bug.kid b/beweb/beweb/templates/edit_bug.kid
index 4001253..d55ab2e 100644
--- a/beweb/beweb/templates/edit_bug.kid
+++ b/beweb/beweb/templates/edit_bug.kid
@@ -29,11 +29,13 @@ def select_among(name, options, default):
<tr><td>${select_among("status", ["open", "closed", "in-progress"], bug.status)}</td><td>${select_among("severity", severity_levels, bug.severity)}</td><td>${bug.assigned}</td><td><input name="summary" value="${bug.summary}" size="80" /></td></tr>
</table>
<div py:for="comment in bug.list_comments()" class="comment">
+ <insetbox>
<table>
<tr><td>From</td><td>${comment.From}</td></tr>
<tr><td>Date</td><td>${time_to_str(comment.date)}</td></tr>
</table>
<pre>${comment.body}</pre>
+ </insetbox>
</div>
<p><input type="submit" name="action" value="Update"/></p>
</form>
diff --git a/beweb/beweb/templates/master.kid b/beweb/beweb/templates/master.kid
index 4f44fba..743634a 100644
--- a/beweb/beweb/templates/master.kid
+++ b/beweb/beweb/templates/master.kid
@@ -15,14 +15,14 @@
<div py:replace="item[:]"/>
</body>
-<table py:match="item.tag=='{http://www.w3.org/1999/xhtml}innerbox'" cellspacing="0" cellpadding="0">
+<table py:match="item.tag=='{http://www.w3.org/1999/xhtml}insetbox'" cellspacing="0" cellpadding="0" class="insetbox">
<tr><td><img src="/static/images/is-tl.png" /></td>
<td background="/static/images/is-t.png" />
<td><img src="/static/images/is-tr.png"/></td>
</tr>
<tr>
<td background="/static/images/is-l.png"/>
- <td py:content="item.text"> Hello, this is some random text</td>
+ <td py:content="item[:]"> Hello, this is some random text</td>
<td background="/static/images/is-r.png"/>
</tr>
<tr>