anchor.diff:     snapshots = Snapshot.find(:all, :conditions =>{:islast => "1"})
      
         
  -   #variable that holds the points value
  +   #variable that holds metric values
      pointsValue = nil
  +   coverageValue = nil
  +   rulesComplianceValue = nil
      
     
   %>
  
positive.code: <% end %>
  <% end %>
  <% end %>
  
  </table>
  
  
  
negative.code: 	<% snapshotId = @Snapshot %>
  	
  	
  	<!--Loop through all the project measures and if the snapshot id for the project 
  	 equals the snapshot id from the snapshot table then retrieve
  	 metric values for all the projects in the group -->
  	
  	<!--points value-->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => pointsMetric}) %>
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% pointsValue = @ProjectMeasure %>
  	
  	<!--coverage value-->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => coverageMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% coverageValue = @ProjectMeasure %>
  	
  	<!--rules compliance value -->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => rulesComplianceMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% rulesComplianceValue = @ProjectMeasure %>
  	
  	<!--drill down on each project's points -->
  	<td><%= format_measure( pointsValue, :suffix => '', :url =>url_for_drilldown( pointsValue ))-%>
  	<td><%= format_measure( coverageValue, :suffix => '', :url =>url_for_drilldown( coverageValue ))-%>
  	<td><%= format_measure( rulesComplianceValue, :suffix => '', :url =>url_for_drilldown( rulesComplianceValue ))-%>
  	</tr>
  
  <% end %>
  