home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / facebook / res / notification.py.xml < prev    next >
Encoding:
Text File  |  2010-12-20  |  1.4 KB  |  36 lines

  1. <div class="post_row fb_filter___notification__" id="${notification.notification_id}" style="display:none; cursor:pointer;" timestamp="${notification.created_time}" href="${notification.href}">
  2. <div class="post_content social_background_hover ${'social_background_hover_on' if int(notification.is_unread) == 1 else ''}">
  3. <?py
  4. from common import pref
  5. _context['profile'] = profile = feed.profiles[int(notification['sender_id'])];
  6. _context['notification_id'] = notification_id = notification.notification_id;
  7. ?>
  8.     <div class="buddyiconcell">
  9.         <div>
  10.             <img id="${notification_id}_buddyicon" class="buddyicon" src="${profile.pic_square}"/>
  11.         </div>
  12.     </div>
  13.     <div class="messagecell">
  14.         <div class="message_block">
  15.             #{notification['title_html']}
  16.         </div>
  17.         <div class="bottom_row">
  18. <?py icon_url = (feed.apps.get(notification.app_id, dict()).get('icon_url', '') or '') ?>
  19.             <div class="notification_app_block">
  20. <?py if icon_url: ?>
  21.             <img src="${icon_url}" />
  22. <?py #endif ?>
  23.             <span class="time minor" id="${notification_id}_time" timestamp="${notification.created_time}">${notification.created_time}</span>
  24.             </div>
  25.         </div>
  26.     </div>
  27. <?py
  28. for var in 'profile, notification_id'.split(', '):
  29.     del _context[var]
  30. #endfor
  31. del profile, notification_id
  32. ?>
  33. </div>
  34. <hr class="post_divider" />
  35. </div>
  36.