+ description = "<br/><table style='border: 1px solid black; padding: 5px;' width='500px'>"
+
+ # TESTBED
+ description += "<tr><td></td><td> </td><td></td></tr>"
+ description += "<tr><td align='center'>"
+ description += "<b>Testbed</b>"
+ description += "</td><td>"
+ if peer_id:
+ peername = 'PlanetLab Central'
+ peerurl = 'http://www.planet-lab.org'
+ #self.peer_name(site,peers)
+ else:
+ peername = 'PlanetLab Europe'
+ peerurl = 'http://www.planet-lab.eu'
+ description += "<a style='text-decoration: none;' href='%(peerurl)s'> %(peername)s </a>"%locals()
+ #description += "<a style='text-decoration: none;' href='%(apiurl)s/db/peers/index.php?id=%(peer_id)d'>[description]</a>"%locals()
+ description += "</td><td>"
+ if peer_id:
+ description += "<img src='%(apiurl)s/sites/plc24-32.png'/>"%locals()
+ else:
+ description += "<img src='%(apiurl)s/sites/ple24-32.png'/>"%locals()
+ description += "</td></tr>"
+
+ # URL