<ol>
[%
$.each(note_model.model.note,function(i,n){
var evenodd = 'un';
(i%2==0) ? evenodd='odd' : evenodd='even';
if (n.createdBy!=null) {
  var _email = user_model.user_by_id(n.createdBy).email;
  n.createdByAvatar='http://www.gravatar.com/avatar/'
  +$.md5(_email)
  +'?s=48&d=identicon';
  n.createdByName = user_model.user_by_id(n.createdBy).firstName + ' ' + user_model.user_by_id(n.createdBy).lastName;
}
if (n.contact!=null) {
  var _email = contact_model.contact_by_id(n.contact).emailAddresses.emailAddress[0].address;
  n.contactAvatar='http://www.gravatar.com/avatar/'
  +$.md5(_email)
  +'?s=48&d=identicon';
  n.contactName = contact_model.contact_by_id(n.contact).firstName + ' ' + contact_model.contact_by_id(n.contact).lastName;
}
%]
<li>
<div class="CommentItem hentry">
    
    <h3>
    <span class="perma"><a rel="bookmark" href="#comment_196" title="Permalink">#</a></span>
    <span class="vcard"><a href="/profile/[%=n.createdByName%]"><strong class="fn author">[%=n.createdByName%]</strong></a></span>
    <em>
        <abbr class="published updated timeago" title="[%=n.createdAt%]">[%=n.createdAt%]</abbr>
    </em>
    
    </h3>
    [%
        var av=n.createdByAvatar;

    %]
    
    
    <div class="indented" style="background-image: url([%=n.createdByAvatar%]);">
        <div class="entry-content">
            <p>[%=n.body%]</p>
        </div>
    </div>
</div>
</li>


[%
});
%]
</ol>