From eb24a2fc68fc215a7bdb4dd7664353a59e13c00a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 16 Apr 2009 10:19:19 +0000 Subject: [PATCH] show peer in node areas --- planetlab/slices/slice.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php index 61ee99e..d53c80e 100644 --- a/planetlab/slices/slice.php +++ b/planetlab/slices/slice.php @@ -341,7 +341,7 @@ if ($privileges) { $headers['first']='string'; $headers['last']='string'; $headers['R']='string'; - $headers['Add']="none"; + $headers['+']="none"; $options = array('notes_area'=>false, 'search_width'=>15, 'pagesize'=>8); @@ -398,6 +398,7 @@ $toggle_nodes=new PlekitToggle('my-slice-nodes-current', $toggle_nodes->start(); $headers=array(); +$headers['peer']='string'; $headers['hostname']='string'; $headers['arch']='string'; if ($privileges) $headers[plc_delete_icon()]="none"; @@ -412,6 +413,7 @@ $form->start(); $table->start(); if ($nodes) foreach ($nodes as $node) { $table->row_start(); + $peers->cell($table,$node['peer_id']); $table->cell(l_node_obj($node)); $table->cell($node['arch']); if ($privileges) $table->cell ($form->checkbox_html('node_ids[]',$node['node_id'])); @@ -444,9 +446,10 @@ if ($privileges) { echo "

No node to add

"; } else { $headers=array(); + $headers['peer']='string'; $headers['hostname']='string'; $headers['arch']='string'; - $headers['Add']="none"; + $headers['+']="none"; $table=new PlekitTable('add_nodes',$headers,'1', $table_options); $form=new PlekitForm(l_actions(), @@ -455,6 +458,7 @@ if ($privileges) { $table->start(); if ($potential_nodes) foreach ($potential_nodes as $node) { $table->row_start(); + $peers->cell($table,$node['peer_id']); $table->cell(l_node_obj($node)); $table->cell($node['arch']); $table->cell ($form->checkbox_html('node_ids[]',$node['node_id'])); -- 2.47.0