add 'add interface' link when there is no primary interface.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Tue, 14 Jul 2009 16:38:24 +0000 (16:38 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Tue, 14 Jul 2009 16:38:24 +0000 (16:38 +0000)
planetlab/nodes/node_downloads.php

index c6148b2..2577c56 100644 (file)
@@ -258,7 +258,10 @@ EOF;
    $details->start();
 
    if( ! $interface ) {
+     print ("<center>");
      print (plc_warning("This node has no configured primary interface."));
+     print ("You can add one " . href(l_interface_add($node_id), "here "));
+     print ("</center>");
    } else {
      $details->tr(l_node_t($node_id,"Node details"),"center");
      $details->th_td("node_id",$node_id);