home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / plugins / msim / res / content.tenjin next >
Encoding:
Text File  |  2011-02-03  |  3.5 KB  |  107 lines

  1. <?py buddy_keys = (
  2.     #'UserName',
  3.     'IMName',
  4.     'DisplayName',
  5.     'NickName',
  6.     'RealName',
  7.     'Age',
  8.     'Gender',
  9.     'Location',
  10.     #'TotalFriends',
  11.     #'OfflineMsg',
  12.     'Headline',
  13. )
  14. # Other attributes not in the above list
  15. #['AvatarURL', 'AvatarUrl', 'BandName', 'ContactID', 'DisplayName', 'GroupID', 'ImageURL', 'LastImageUpdated', 'LastLogin', 'Position', 'ShowAvatar', 'SkyStatus', 'SongName', 'TotalFriends', 'UserID', 'Visibility',]
  16. ?>
  17. <?py 
  18. nice_key_names = {
  19.     "UserName" : _("Username"),
  20.     "IMName"   : _("IM Name"),
  21.     "DisplayName": _("Display Name"),
  22.     "NickName" : _("Nickname"),
  23.     "RealName" : _("Real Name"),
  24.     "Age"      : _("Age"),
  25.     "Gender"   : _("Gender"),
  26.     "Location" : _("Location"),
  27.     "Headline" : _("IM Headline"),
  28. }
  29. ?>
  30.  
  31. <table width="100%" cellpadding="0" border="0">
  32.     <tr>
  33.         <td valign="top">
  34.             <div style="white-space: nowrap; position: relative;">
  35.                 <div style="position: absolute; left: 0px; top: 0px;">
  36.                     <img src="${skin.get('serviceicons.'+proto.name).path.url()}" height="16" width="16" />
  37.                 </div>
  38.                 <div style="white-space: normal; overflow: hidden; word-wrap: break-word; margin-left: 20px; min-height: 20px;">
  39.                     <span class="header">
  40.                         ${buddy.alias}
  41.                     </span>
  42.                 </div>
  43.             </div>
  44. <?py if buddy.alias != buddy.UserName: ?>
  45.             <div>
  46.                 <span class="major" style="font-weight:bold;">
  47.                     Username:
  48.                 </span>
  49.                 <span class="minor">
  50.                     ${buddy.UserName}
  51.                 </span>
  52.             </div>
  53. <?py #endif ?>
  54.             <div>
  55.                 <span class="major" style="font-weight:bold;">
  56.                     Status:
  57.                 </span>
  58.                 <span class="minor">
  59.                     ${buddy.sightly_status}
  60.                 </span>
  61.             </div>
  62. <?py if buddy.status_message: ?>
  63.             <hr />
  64.             <div id="buddy-status" class="minor">
  65.                 #{util.net.linkify(buddy.status_message).replace("\n", "<br />")}
  66.             </div>
  67. <?py #endif ?>
  68.  
  69.         </td>
  70.         <td width="68" valign="top" align="center">
  71. <?py sicon = skin.get('statusicons.'+buddy.status_orb) ?>        
  72.             <img src="${sicon.path.url()}" style="position: absolute; top: 8px; right: 8px;" />
  73.             <img id="#contactIcon" src="${renderers.get_buddy_icon_url(buddy)}" 
  74.                  width="${common.pref('infobox.iconsize', 64)}" onError="imgError(this)" />
  75.             <a class="link" href="profile">
  76. <?py if common.pref('infobox.showprofile', False): ?>
  77.                 ${{_('Hide Profile')}}
  78. <?py else: ?>
  79.                 ${{_('Show Profile')}}
  80. <?py #endif ?>
  81.             </a>
  82.         </td>
  83.     </tr>
  84. </table>
  85. <?py if common.pref('infobox.showprofile', False): ?>
  86.     <hr type="2" />
  87.     <table width="100%" cellpadding="0" border="0">
  88.         <tr>
  89.             <td>
  90.     <?py for key in buddy_keys: ?>
  91.         <?py val = getattr(buddy, key, None) or None?>
  92.         <?py if val is not None: ?>
  93.             <div>
  94.                 <span class="major" style="font-weight:bold;">
  95.                     ${nice_key_names.get(key, key)}:
  96.                 </span>
  97.                 <span class="minor">
  98.                     ${val.decode('xml')}
  99.                 </span>
  100.             </div>
  101.         <?py #endif ?>
  102.     <?py #endfor ?>
  103.             </td>
  104.         </tr>
  105.     </table>
  106. <?py #endif ?>
  107.