Make node list visible by default.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Thu, 4 Jun 2009 17:35:25 +0000 (17:35 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Thu, 4 Jun 2009 17:35:25 +0000 (17:35 +0000)
restore 'Register Node' link ; I'm not sure if I botched this or it was
intentionally reset to 'add node.'

modules/planetlab.module
planetlab/sites/site.php

index 2f4ebd3..f7248dd 100644 (file)
@@ -154,7 +154,7 @@ function planetlab_block($op = 'list', $delta = 0, $edit = array()) {
       $node_item .= href(l_nodes(),"Nodes");
       $node_item .= ul_start();
       $node_item .= leaf( href (l_nodes_site (plc_my_site_id()),"My Site Nodes"));
-      $node_item .= leaf( href (l_node_add(),"Add Node"));
+      $node_item .= leaf( href (l_register_node(),"Register Node"));
       $node_item .= ul_end();
       $items [] = expanded($node_item);
 
index 887adcf..be4d5fb 100644 (file)
@@ -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();