anchor.diff:     
      #finds all "islast" snapshots 
      snapshots = Snapshot.find(:all, :conditions =>{:islast => "1"})
  +   
  +   projectName = nil
  +   projectImage = nil
     
  -  	  
   %>
   
   <!--Loops through the properties array that contains all the groups of projects for the 
  
positive.code: 	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => pointsMetric}) %>
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% pointsName = @ProjectMeasure.short_name %>
  	<td align="right"><%= @ProjectMeasure.value.to_i -%></td>
  	
  	
  	<!--coverage value-->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => coverageMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% coverageValue = @ProjectMeasure %>
  	<td align="right"><%= @ProjectMeasure.value -%>%</td>
  	
  	<!--rules compliance value -->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => rulesComplianceMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% rulesComplianceValue = @ProjectMeasure %>
  	<td align="right"><%= @ProjectMeasure.value -%>%</td>
  	
  	<!--documented API value -->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => docApiMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% documentedApiValue = @ProjectMeasure %>
  	<td align="right"><%= @ProjectMeasure.value -%>%</td>
  		
  	</tr>
  
  <% end %>
  <% end %>
  
negative.code: <% if (projectGroup != nil )%>
  <h1 style="color:#4B9FD5" ><%=projectGroup.value -%></h1><br>
  
  <table id = "metricsTable" class ="data" style="table-layout: fixed; width: 100%"  border="0" >
  <thead> 
    <tr valign ="top">
      <th align="right" width = "50"></th>
      <th align="left">Name</th>
      <th class="right" onclick="retrieveTitle(this); showBargraphTable()" id="points" style = "text-decoration:underline; cursor: pointer" >Points</th>
      <th class="right" onclick="retrieveTitle(this); showBargraphTable()" id="coverage" style = "text-decoration:underline; cursor: pointer" >Coverage</th>
      <th class="right" onclick="retrieveTitle(this); showBargraphTable()" id="rules" style = "text-decoration:underline; cursor: pointer">Rules Compliance</th>
      <th class="right" onclick="retrieveTitle(this); showBargraphTable()" id="docApi" style = "text-decoration:underline; cursor: pointer">Documented API </th>
    </tr>    
    </thead>
    <tbody id = "tableBody" >
  
  <!--Retrieve all the resource ids for the projectGroup name -->
  <% for @Property in Property.find(:all, :conditions => {:prop_key => "sonar.score.projectGroup"}) %>
  <% if (@Property.value == projectGroup.value )%>
  <tr class="<%= cycle('even', 'odd') -%>">
  <td id = "image" align="right" width = "50" >
  <span><img alt height = "16" src="/images/profiles/projects/<%= @Property.resource_id -%>.png" onerror="this.src='/images/profiles/projects/default.png'" />
  </span>
  
  