X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fincludes%2Fplc_peers.php;fp=planetlab%2Fincludes%2Fplc_peers.php;h=b64a391dbe4291b84c5c113ba62d29f32061a429;hb=f78d6b6e081ccb8a68e63e885db93873e60e0a1c;hp=a4a4ddaecea9ada9c05fb5efe0b9db7859f043a2;hpb=d9fa11507938cca59756e611b1d896b129295e61;p=plewww.git diff --git a/planetlab/includes/plc_peers.php b/planetlab/includes/plc_peers.php index a4a4dda..b64a391 100644 --- a/planetlab/includes/plc_peers.php +++ b/planetlab/includes/plc_peers.php @@ -1,5 +1,5 @@ hash[$peer_id]; @@ -55,7 +55,7 @@ class Peers { $result = "[local] " . $result; return $result; } - + public function link ($peer_id,$text) { if (! $peer_id) return href("/",$text); @@ -74,7 +74,7 @@ class Peers { $shortname=strtolower($this->shortname($peer_id)); return "peer-$shortname"; } - + function block_start ($peer_id) { // start a
element with 2 classes: // (1) generic: is either peer-local or peer-foreign @@ -82,7 +82,7 @@ class Peers { // e.g. at PLE we'd get
// or
// see plc_styles.css for how to have the more specific ones override the generic one - if ( ! $peer_id ) + if ( ! $peer_id ) $generic='peer-local'; else $generic='peer-foreign'; @@ -95,14 +95,14 @@ class Peers { print "
\n"; } - // writes a cell in the table with the peer's shortname, link to the peer page, + // writes a cell in the table with the peer's shortname, link to the peer page, // and classname set for proper color function cell ($table, $peer_id) { $shortname=$this->shortname($peer_id); $table->cell ($this->link($peer_id,$shortname), array('class'=>$this->classname($peer_id))); } - + } ////////////////////////////////////////////////////////////