- complete the Derby DDL file used for unit tests : sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl
*/
- public static final int LAST_VERSION = 190;
+ public static final int LAST_VERSION = 191;
public final static String TABLE_NAME = "schema_migrations";
<td width="30px" valign="top">
<% if current_user && violation.reviews.blank? %>
- <%= link_to_remote image_tag("reviews/add.png"),
+ <%= link_to_remote image_tag("reviews/+review.png"),
:url => { :controller => "reviews", :action => "form", :violation_id => violation.id },
:update => "reviewFailure" + violation.id.to_s,
- :html => { :id => "createReviewLink" + violation.id.to_s },
+ :html => { :id => "createReviewLink" + violation.id.to_s, :title => "Add a review" },
+ :complete => "$('reviewFailure" + violation.id.to_s + "').style.display='';$('reviewText').focus();" -%>
+ <%= link_to_remote image_tag("reviews/+false-positive.png"),
+ :url => { :controller => "reviews", :action => "form", :violation_id => violation.id },
+ :update => "reviewFailure" + violation.id.to_s,
+ :html => { :id => "createReviewLink" + violation.id.to_s, :title => "Flag as false-positive" },
:complete => "$('reviewFailure" + violation.id.to_s + "').style.display='';$('reviewText').focus();" -%>
<% end %>
</td>
<span class="violation_date"><%= duration==0 ? 'today' : "#{duration} days ago" -%></span>
<% end %>
- <div id="reviewFailure<%= violation.id -%>" style="padding:5px; background:white; display:<%= displayReviewFailureDiv -%>">
+ <div id="reviewFailure<%= violation.id -%>" style="display:<%= displayReviewFailureDiv -%>">
<%= render :partial => "reviews/list", :locals => { :reviews => violation.reviews } %>
</div>
</td>
<% form_for :review_comment, @review_comment do |f| %>
<%= f.hidden_field :review_id %>
- Review by: <%= @review_comment.user.name -%>
- <br/>
- Comment:
- <br/>
- <%= f.text_area :review_text, :rows => 10, :id => "commentText" + @review_comment.review_id.to_s %>
+ <%= f.text_area :review_text, :rows => 8,
+ :id => "commentText" + @review_comment.review_id.to_s,
+ :style => "width:100%" %>
<br/>
<%= submit_to_remote 'create_btn', 'Add comment',
:url => { :action => 'create_comment', :rule_failure_id => @rule_failure_id } %>
- <div id="review<%= review.id -%>" style="border:solid 1px black; margin:2px">\r
- User name: <%= h(review.user.name) -%>\r
- <br/>\r
- Status: <%= h(review.status) -%>\r
- <br/>\r
- Severity: <%= h(review.severity) -%>\r
- <br/>\r
+ <div id="review<%= review.id -%>" style="margin: 5px 5px 5px 20px">\r
+ <div>\r
+ <b>Reviewed by <%= h(review.user.name) -%></b> - <%= l review.created_at -%>\r
+ <br/>\r
+ Status: <%= h(review.status) -%> / Severity: <%= h(review.severity) -%> \r
+ </div>\r
\r
- <div>\r
+ <div style="margin: 5px 0px 0px 30px">\r
+ <table style="border-left:solid 3px grey">\r
<% unless review.review_comments.blank? \r
review.review_comments.each do |review_comment|\r
%>\r
- <div id="commentReview" style="border:solid 1px grey; margin:2px">\r
- <%= l review_comment.created_at -%>, by <%= h(review_comment.user.name) -%>\r
- » \r
- <%= h(review_comment.review_text) -%>\r
- <br/>\r
- </div>\r
+ <tr>\r
+ <td style="width:180px; vertical-align:top; padding: 5px; border:solid 1px grey">\r
+ <%= image_tag("user.png") -%> <b><%= h(review_comment.user.name) -%></b> »\r
+ <br/><%= l review_comment.created_at -%>\r
+ </td>\r
+ <td style="width:1000px; vertical-align:top; padding: 5px; border:solid 1px grey; background: white">\r
+ <%= h(review_comment.review_text) -%>\r
+ </td>\r
+ </tr>\r
<% \r
end\r
end\r
%>\r
- </div>\r
+ </table>\r
\r
- <% if current_user %>\r
- <%= link_to_remote "Add a comment", \r
+ <% if current_user %>\r
+ <div style="width:1200px; text-align: right; padding: 5px">\r
+ <%= link_to_remote "Add a comment", \r
:url => { :controller => "reviews", :action => "form_comment", :review_id => review.id, :rule_failure_id => review.rule_failure_id },\r
:update => "createComment" + review.id.to_s, \r
:complete => "$('commentText" + review.id.to_s + "').focus()" -%>\r
- \r
- <div id="createComment<%= review.id -%>"></div>\r
- <% end %>\r
+ </div>\r
+ <div id="createComment<%= review.id -%>"></div>\r
+ <% end %>\r
+ </div>\r
\r
</div>\r