]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2450 Display the last comment of review in the Reviews page
authorFabrice Bellingard <bellingard@gmail.com>
Wed, 25 May 2011 08:48:06 +0000 (10:48 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Wed, 25 May 2011 08:48:06 +0000 (10:48 +0200)
- Fix alignment of comment with title
- Replaces '\n' by a space

sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb
sonar-server/src/main/webapp/stylesheets/style.css

index 20113db2c3510ad3aee87745168c20b3ad167f1e..ca8c4f192e31e64eb89bdfa1708b09fd61f68d76 100644 (file)
@@ -34,9 +34,9 @@ class ReviewComment < ActiveRecord::Base
   end
   
   def excerpt
-    text = plain_text
+    text = plain_text.gsub("\\n", " ")
     if text.size > 101
-      plain_text[0..100] + " ..."
+      text[0..100] + " ..."
     else
       text 
     end
index 958e9b6eb4ea74acdce91c9324d8407ceada7033..c3d24f1689f14c01357558f507c14868b676c039 100644 (file)
@@ -899,8 +899,8 @@ div.discussionComment li {
 }
 div.comment-excerpt {
        background-color: transparent;
-       margin: 5px;
-       padding: 0px 10px;
+       margin-top: 5px;
+       margin-bottom: 5px;
        color: #777777;
        font-size: 90%;
 }