anchor.diff:  	<% snapshotId = @Snapshot %>
   	
   	
  -	<!--Loop through all the project measures for the points measure
  -	 and if the snapshot id for the project equals the snapshot id from the snapshot table then print the points value for 
  -	 that project -->
  +	<!--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 -->
   	
  -	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => metric}) %>
  +	<!--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 %>
  
positive.code: <!--If the project selected is a member of a group...proceed -->
  <% if (projectGroup != nil )%>
  <h1 style="color:#4B9FD5" ><%= widget_properties['groupId'] -%></h1><br>
  <table class ="data" style="width: 50%" border="0" >
  <thead>
    <tr valign ="top">
      <th></th>
      <th><b>Name</th>
      <th><b>Points</th>
    </tr>
    </thead>
  
  
negative.code:    #variable that holds the project name
     projectName = nil
     
     #finds needed metrics
     pointsMetric = Metric.find(:all, :conditions =>{:name =>"points"})
     coverageMetric = Metric.find(:all, :conditions =>{:name =>"coverage"})
     rulesComplianceMetric = Metric.find(:all, :conditions =>{:name =>"violations_density"})
     
     
     #variable that holds the snapshotId
     snapShotId = nil
  