<%= user_autocomplete_field "assignee_id", @assignee_id, { :class => "max-width" } -%>
<br/>
<br/>
- <select name="false_positives" id="false_positives" class="withIcons" onchange="if(this.value=='only' || this.value=='with') {$('assignee_id').value = ''; $('autocompleteText-assignee_id').value = '';};">
- <option <%= 'selected' if @false_positives=='without' -%> value="without" class="sel-without-false-positives">Without false positives</option>
- <option <%= 'selected' if @false_positives=='only' -%> value="only" class="sel-only-false-positives">Only false positives</option>
- <option <%= 'selected' if @false_positives=='with' -%> value="with" class="sel-with-false-positives">With false positives</option>
+ <select name="false_positives" id="false_positives" onchange="if(this.value=='only' || this.value=='with') {$('assignee_id').value = ''; $('autocompleteText-assignee_id').value = '';};">
+ <option <%= 'selected' if @false_positives=='without' -%> value="without">Without false positives</option>
+ <option <%= 'selected' if @false_positives=='only' -%> value="only">Only false positives</option>
</select>
</td>
<td width="1%" style="padding-left: 20px" nowrap>
<%
if @reviews && !@reviews.empty?
%>
+ <% if @false_positives=='only' %>
+ <div style="color:#777777; font-size:93%; padding: 4px 0px 4px 10px;">Showing <span class="falsePositive">false positives</span> only</div>
+ <% end %>
<table id="reviews-list" class="data width100">
<thead>
<tr>
<a href="#" onClick="launchSearch('updated_at', this)">Age</a>
<%= image_tag(@asc ? "asc12.png" : "desc12.png") if @sort == 'updated_at' -%>
</th>
-
</tr>
</thead>
<tfoot>
<td>
<%= link_to h(review.title), :controller => "reviews", :action => "view", :id => review.id -%>
<div class="comment-excerpt">
- <img src="<%= ApplicationController.root_context -%>/images/reviews/<%= review.false_positive ? "false_positive" : "comment" -%>.png" title="<%= 'False positive' if review.false_positive -%>"/>
+ <img src="<%= ApplicationController.root_context -%>/images/reviews/comment.png"/>
<b><%= comment.user.name -%> :</b>
<%= comment.excerpt -%>
</div>
.max-width {
width: 100%;
}
-option.sel-with-false-positives {
- background-image: url('../images/reviews/with_false_positives.png');
-}
-option.sel-only-false-positives {
- background-image: url('../images/reviews/false_positive.png');
-}
-option.sel-without-false-positives {
- background-image: url('../images/reviews/comment.png');
-}
/* AUTOCOMPLETE FIELDS */