bodhi/static/css/layout.css | 8 ++++++++
bodhi/templates/show.kid | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit efb6ec6dc6256a8c1b7aa99cbcc0861755b8e4a7
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Feb 11 10:44:30 2010 -0500
Float our comment image to ensure it's on the same line as the author
diff --git a/bodhi/templates/show.kid b/bodhi/templates/show.kid
index 7a10e8e..4c3e99d 100644
--- a/bodhi/templates/show.kid
+++ b/bodhi/templates/show.kid
@@ -245,7 +245,7 @@ karma = "<img src=\"%s\" align=\"top\"
/> <b>%d</b>" % (tg.url('/static/images/k
<blockquote>
<div py:if="update.comments">
<div py:for="comment in update.get_comments()">
- <img py:attrs="{'src' :
tg.url('/static/images/comment-%d.png' % comment.karma)}"
hspace="3"/>
+ <img py:attrs="{'src' :
tg.url('/static/images/comment-%d.png' % comment.karma)}"
hspace="3" style="float:left"/>
<div py:if="comment.anonymous">
<div py:if="tg.identity.anonymous">
<b>Anonymous Tester</b> -
${comment.timestamp}<br/>
commit 9fb86158ffc27e88873fd0a8058bb64bc1877dea
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Feb 11 10:43:01 2010 -0500
Apply a patch from David Timms to fix comment formatting (#290)
diff --git a/bodhi/static/css/layout.css b/bodhi/static/css/layout.css
index 13d07c6..f546154 100644
--- a/bodhi/static/css/layout.css
+++ b/bodhi/static/css/layout.css
@@ -449,6 +449,14 @@ div.flash {
background: #ffb200;
}
+div.comment-text {
+ font-family: monospace;
+ white-space: pre-wrap; /* 2009-01-03: best effort for current browsers*/
+ white-space: pre-line; /* css 2.1, enable later when moz 3.1+ available*/
+/*https://developer.mozilla.org/en/CSS/white-space*/
+/*http://www.w3.org/TR/CSS21/text.html#white-space-prop*/
+}
+
/*
** Login CSS (login.kid)
*/
diff --git a/bodhi/templates/show.kid b/bodhi/templates/show.kid
index 486dc96..7a10e8e 100644
--- a/bodhi/templates/show.kid
+++ b/bodhi/templates/show.kid
@@ -257,7 +257,7 @@ karma = "<img src=\"%s\" align=\"top\"
/> <b>%d</b>" % (tg.url('/static/images/k
<div py:if="not comment.anonymous">
<b>${comment.author}</b> - ${comment.timestamp}<br/>
</div>
- <pre><div
py:replace="comment.text">Comment</div></pre>
+ <div class="comment-text"
py:replace="comment.text">Comment</div>
</div>
</div>
<div py:if="not update.comments">
Show replies by date