Commit 09c72a1f9e7850317e45decce98714251d6adecc
- Date: Sun Jan 27 17:05:01 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 09c72a1f9e7850317e45decce98714251d6adecc
- Tree SHA1: fbac7215334ac00eaca3fd02c08ee632b076f510
simple_format() comments on dashboard page as well
Commit diff
| |   |
| 4 | 4 | <h2>Recent comments on your commits</h2> |
| 5 | 5 | <% @recent_comments.each do |comment| -%> |
| 6 | 6 | <div class="comment"> |
| 7 | | <p class="body"><%= sanitize(comment.body) -%></p> |
| 7 | <div class="body"><%= simple_format(sanitize(comment.body)) -%></div> |
| 8 | 8 | <p class="byline hint"> |
| 9 | 9 | on <%= link_to h(comment.repository.name), project_repository_comments_path(comment.project, comment.repository, :anchor => dom_id(comment)) -%> |
| 10 | 10 | <% unless comment.sha1.blank? -%> |
| toggle raw diff |
--- a/app/views/site/dashboard.html.erb
+++ b/app/views/site/dashboard.html.erb
@@ -4,7 +4,7 @@
<h2>Recent comments on your commits</h2>
<% @recent_comments.each do |comment| -%>
<div class="comment">
- <p class="body"><%= sanitize(comment.body) -%></p>
+ <div class="body"><%= simple_format(sanitize(comment.body)) -%></div>
<p class="byline hint">
on <%= link_to h(comment.repository.name), project_repository_comments_path(comment.project, comment.repository, :anchor => dom_id(comment)) -%>
<% unless comment.sha1.blank? -%> |
| |   |
| 739 | 739 | padding-right: 10px; |
| 740 | 740 | border-right: 1px dotted #dedede; |
| 741 | 741 | } |
| 742 | | |
| 742 | #site #recent_comments .comment { width: 100%;} |
| 743 | 743 | #site #recent_comments .comment .body { |
| 744 | 744 | font-size: 90%; |
| 745 | 745 | } |
| toggle raw diff |
--- a/public/stylesheets/base.css
+++ b/public/stylesheets/base.css
@@ -739,7 +739,7 @@ table.codediff col.lines {
padding-right: 10px;
border-right: 1px dotted #dedede;
}
-
+#site #recent_comments .comment { width: 100%;}
#site #recent_comments .comment .body {
font-size: 90%;
} |