redo http://svn.planet-lab.org/changeset/13771 from scratch
[plewww.git] / planetlab / sites / site.php
index 7983a04..d026a03 100644 (file)
@@ -92,7 +92,7 @@ else
 $techs = array();
 $pis = array();
 $disabled_persons = array();
-foreach( $persons as $person ) {
+if ($persons) foreach( $persons as $person ) {
   $role_ids= $person['role_ids'];
 
   if ( in_array( '20', $role_ids ))    $pis[] = $person;
@@ -222,7 +222,7 @@ if ( $local_peer ) {
   $nodes_title .= href(l_nodes_site($site_id)," (See as nodes)");
 
   $toggle=new PlekitToggle ('nodes',$nodes_title,
-                           array('visible'=>get_arg('show_nodes',false)));
+                           array('visible'=>get_arg('show_nodes',true)));
   $toggle->start();
 
   $headers=array();
@@ -305,8 +305,9 @@ if ( $local_peer ) {
   $headers['User']='string';
   $headers["Tech"]='string';
   if ($has_disabled_persons) $headers["Disabled"]='string';
+  $notes=array('S = slices');
   $table=new PlekitTable('persons',$headers,'1r-3r-0',array('search_area'=>false,
-                                                           'notes_area'=>false,
+                                                           'notes'=>$notes,
                                                            'pagesize_area'=>false));
   $table->start();
   if ($persons) foreach ($persons as $person) {
@@ -340,9 +341,9 @@ if ( $local_peer ) {
   $headers ['I'] = 'string';
   $headers ['N']='int';
   $headers ['U']='int';
-  $notes=array('I column shows instantiation type',
-              'N column shows number of nodes',
-              'U column shows number of users');
+  $notes=array('I = instantiation type',
+              'N = number of nodes',
+              'U = number of users');
   $table=new PlekitTable ('slices',$headers,0,array('search_area'=>false,
                                                    'pagesize_area'=>false,
                                                    'notes'=>$notes));