<% search_options = {} search_options['projects'] = @project.key search_options['manual_severity'] = true search_options['sort'] = 'updated_at' search_options['statuses'] = "#{Review::STATUS_OPEN},#{Review::STATUS_REOPENED}" manualSeverityReviews = []; found_reviews = Review.search(search_options) unless found_reviews.empty? reviews = select_authorized(:user, found_reviews, :project) unless reviews.empty? reviews.each do |review| if review.manual_severity == true && review.manual_violation != true manualSeverityReviews << review end #if end #each end #unless reviews.empty end #unless found_reviews.empty priorities=['Info','Minor','Major','Blocker','Critical'] %>

<%= message('widget.manual_severity_reviews.title') -%>

<% if manualSeverityReviews.size ==0 %> No review. <% else %> <% manualSeverityReviews.each do |review| comment = review.comments.last origPriority = review.violation.rule.priority %> <% end %>
<%= review.user.name -%>
<%= link_to h(review.title), :controller => "reviews", :action => "view", :id => review.id -%> <% if comment %>
 <%= comment.user.name -%> : <%= comment.excerpt -%>
<% end %>
<%= distance_of_time_in_words_to_now(review.updated_at) -%>
<% end %>