anchor.diff:  
   
   
  -
  
positive.code: <% for @Property in Property.find(:all, :conditions => {:prop_key => "sonar.score.projectGroup"}) %>
  <% if (@Property.value == projectGroup.value )%>
  <p><%= @Property.resource_id -%></p>
  	<!--Loop through all the projects and if the project id = the resource id then print the name -->
  	<% for @Project in projects %>
  	<% if (@Project.id == @Property.resource_id)%>
  	<% projectName = @Project %>
  	<p><%= @Project.name -%></p>
  <% end %>
  <% end %>
  <% end %>
  
negative.code:    #variable that holds the project name
     projectName = nil
     
     #finds all the metrics
     metric = Metric.find(:all, :conditions =>{:name =>"points"})
     
     #variable that holds the snapshotId
     snapShotId = nil
     
     #finds all "islast" snapshots 
     snapshots = Snapshot.find(:all, :conditions =>{:islast => "1"})
     
        
     #variable that holds the points value
     pointsValue = nil
     
    
  %>
  