From: Fabrice Bellingard Date: Wed, 25 May 2011 08:48:06 +0000 (+0200) Subject: SONAR-2450 Display the last comment of review in the Reviews page X-Git-Tag: 2.9~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf8b475a7131211bed8015a3f6ea93f72db502ed;p=sonarqube.git SONAR-2450 Display the last comment of review in the Reviews page - Fix alignment of comment with title - Replaces '\n' by a space --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb index 20113db2c35..ca8c4f192e3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/review_comment.rb @@ -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 diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 958e9b6eb4e..c3d24f1689f 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -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%; }