diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-02 19:44:40 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-02 19:44:40 +0000 |
commit | 8e5be76ddb381879a272936aada4083958c351ec (patch) | |
tree | cec035701b6bf4b091ec51d8b33d62ea1de03f62 | |
parent | 4cbb5ea19b1423b57abc7c8a6b6f5f34603c44f5 (diff) | |
download | bugseverywhere-8e5be76ddb381879a272936aada4083958c351ec.tar.gz |
Display comments in view/edit bug display
-rw-r--r-- | beweb/beweb/static/css/style.css | 21 | ||||
-rw-r--r-- | beweb/beweb/templates/edit_bug.kid | 10 |
2 files changed, 30 insertions, 1 deletions
diff --git a/beweb/beweb/static/css/style.css b/beweb/beweb/static/css/style.css index 6f43777..9abc144 100644 --- a/beweb/beweb/static/css/style.css +++ b/beweb/beweb/static/css/style.css @@ -46,3 +46,24 @@ body font-family: "Verdana"; font-size:11pt; } +.comment +{ + margin-top: 1em; + margin-bottom; 60px; + padding: 0.5em; + border: dashed thin black; + background-color: #ffa; + width:60% +} +.comment table +{ + background-color: transparent; +} +.comment td +{ + background-color: transparent; +} +.comment pre +{ + font-family: "Verdana"; +} diff --git a/beweb/beweb/templates/edit_bug.kid b/beweb/beweb/templates/edit_bug.kid index 9581dac..4001253 100644 --- a/beweb/beweb/templates/edit_bug.kid +++ b/beweb/beweb/templates/edit_bug.kid @@ -1,6 +1,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?python from libbe.bugdir import severity_levels +from libbe.utility import time_to_str def select_among(name, options, default): output = ['<select name="%s">' % name] for option in options: @@ -27,7 +28,14 @@ def select_among(name, options, default): <tr><td>Status</td><td>Severity</td><td>Assigned To</td><td>Summary</td></tr> <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> -<input type="submit" name="action" value="Update"/> +<div py:for="comment in bug.list_comments()" class="comment"> + <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> +</div> +<p><input type="submit" name="action" value="Update"/></p> </form> <a href="/${project_id}/">Bug List</a> </body> |