home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / myspace / res / comment.tenjin < prev    next >
Encoding:
Text File  |  2010-07-21  |  1.3 KB  |  33 lines

  1. <?py myspace_png = app.resource('myspace.png', 'base').url() ?>
  2. <?py user = acct.user_from_id(comment.userid) ?>
  3. <?py if user is None: ?>
  4.     <?py userlink = None ?>
  5. <?py else: ?>
  6.     <?py userlink = user.get('webUri', user.get('profileUrl', None)) ?>
  7. <?py #endif ?>
  8. <div class="comment" id="comment_${comment.commentId}">
  9.     <span class="viewport">
  10.       <div class="comment_icon_cell">
  11. <?py if acct.get_imageurl_for_user(user) is not None: ?>
  12.           <img class="comment_icon clipped-small" src="${acct.get_imageurl_for_user(user)}" />
  13. <?py else: ?>
  14.           <img class="comment_icon clipped-small" src="${gui.skin.get('BuddiesPanel.BuddyIcons.NoIcon').path.url()}" />
  15. <?py #endif ?>
  16.       </div>
  17.     </span>
  18.     <div class="comment_text_cell" timestamp="${comment.postedDate_parsed}" timestyle="smart">
  19.         <div class="comment_name">
  20. <?py if userlink: ?>
  21.     <a class="link no_ondown_link" href="${userlink}">#{acct._name_for_user(user)}</a>
  22. <?py else: ?>
  23. #{acct._name_for_user(user)}
  24. <?py #end ?>
  25.         </div>
  26.          ┬╖ <!--! this line has a dot  -->
  27.         <div class="comment_time time-container minor"></div>
  28.         <div class="comment_text">
  29.             #{util.linkify(util.preserve_newlines(to_str(comment.text)))}
  30.         </div>
  31.     </div>
  32. </div>
  33.