% 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'] %>
⇒
|
<%= review.user.name -%> <%= link_to h(review.title), :controller => "reviews", :action => "view", :id => review.id -%> <% if comment %>
<%= comment.user.name -%> :
<%= comment.excerpt -%>
|
<%= distance_of_time_in_words_to_now(review.updated_at) -%> |