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

  1. <?py myspace_png = app.resource('myspace.png', 'base').url() ?>
  2. <?py
  3. user = acct.user_from_activity(item)
  4. buddyicon = acct.get_imageurl_for_user(user)
  5. ?>
  6. <div id="${item.id}" class="activityItem ${item.activity_type} major social_background_hover" timestamp="${item.updated_parsed}" timestyle="smart">
  7.     <div class="activity-icon">
  8.       <div class="viewport">
  9. <?py if buddyicon is not None: ?>
  10.             <img id="${item.id}_buddyicon" class="buddyicon clipped" src="${buddyicon}" />
  11. <?py else: ?>
  12.             <img id="${item.id}_buddyicon" class="buddyicon clipped" src="${gui.skin.get('BuddiesPanel.BuddyIcons.NoIcon').path.url()}" />
  13. <?py #endif ?>
  14.       </div>
  15.     </div>
  16.     <div class="activity-data" timestamp="${item.updated_parsed}" timestyle="smart">
  17. <?py if item.activity_type == "DigsbyStatusUpdate": ?>
  18.        <span class="${item.activity_type}">
  19.        <span class="namelink-container"><a class="link namelink" href="${getattr(user, 'profileUrl', getattr(user, 'webUri', None))}">#{getattr(user, 'displayName', getattr(user, 'name', None))}</a></span>
  20.        <span class="status_text"> #{item.body}</span>
  21.        </span>
  22. <?py else: ?>
  23.     <?py for (ctype, cval) in item.contents: ?>
  24.            <span class="default ${item.activity_type}">
  25.         <?py if ctype == 'xhtml': ?>
  26.                 #{util.linkify(cval)}
  27.         <?py elif ctype == 'html': ?>
  28.                 #{util.linkify(cval.decode('xml'))}
  29.         <?py #end ?>
  30.            </span>
  31.     <?py #end ?>
  32. <?py #endif ?>
  33. <?py include(r"#{{app.resource('comment_section.tenjin')}}") ?>
  34.     <div class="error_section" style=""></div>
  35. <?py include(r"#{{app.resource('bottom_row.tenjin')}}") ?>
  36.     </div>
  37. </div>
  38. <hr class="activity-divider" />
  39.