X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fslices%2Fslice.php;h=af265b6e00100a2925f9d2a66e3eb5caccfc3fc8;hb=1ce86fd37ce8da9b475847a59394c0241a8dbbff;hp=d29520e0ae04f328d34792410a3538ba1ceb8842;hpb=a2cd2a7ef30538c8cecfa16ea0c4440dd3e2d361;p=plewww.git diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php index d29520e..af265b6 100644 --- a/planetlab/slices/slice.php +++ b/planetlab/slices/slice.php @@ -30,7 +30,6 @@ drupal_set_html_head(' '); // -------------------- admins potentially need to get full list of users -ini_set('memory_limit','32M'); //error_reporting(0); $profiling=false; @@ -234,7 +233,7 @@ $toggle = new PlekitToggle ('my-slice-details',"Details", array('bubble'=> 'Display and modify details for that slice', - 'visible'=>get_arg('show_details',NULL))); + 'visible'=>get_arg('show_details'))); $toggle->start(); $details=new PlekitDetails($privileges); @@ -286,7 +285,7 @@ $toggle= new PlekitToggle ('my-slice-persons',"$count users", array('bubble'=> 'Manage accounts attached to this slice', - 'visible'=>get_arg('show_persons',NULL))); + 'visible'=>get_arg('show_persons'))); $toggle->start(); ////////// people currently in @@ -296,7 +295,7 @@ $toggle->start(); // show otherwise $toggle_persons = new PlekitToggle ('my-slice-persons-current', "$count people currently in $name", - array('visible'=>get_arg('show_persons_current',!$privileges))); + array('visible'=>get_arg('show_persons_current'))); $toggle_persons->start(); $headers=array(); @@ -338,7 +337,7 @@ if ($privileges) { $count=count($potential_persons); $toggle_persons = new PlekitToggle ('my-slice-persons-add', "$count people may be added to $name", - array('visible'=>get_arg('show_persons_add',NULL))); + array('visible'=>get_arg('show_persons_add'))); $toggle_persons->start(); if ( ! $potential_persons ) { // xxx improve style @@ -557,7 +556,7 @@ if (count($reservable_nodes)) $nodes_message .= " (" . count($reservable_nodes) $toggle=new PlekitToggle ('my-slice-nodes',$nodes_message, array('bubble'=> 'Manage nodes attached to this slice', - 'visible'=>get_arg('show_nodes',NULL))); + 'visible'=>get_arg('show_nodes'))); $toggle->start(); @@ -579,7 +578,7 @@ if ($count && $privileges) { // having reservable nodes in white lists looks a bit off scope for now... $toggle_nodes=new PlekitToggle('my-slice-nodes-reserve', "Leases - " . count($reservable_nodes) . " reservable node(s)", - array('visible'=>get_arg('show_nodes_resa',NULL), + array('visible'=>get_arg('show_nodes_resa'), 'info-text'=>$leases_info, 'info-visible'=>$show_reservable_info)); $toggle_nodes->start(); @@ -692,7 +691,7 @@ foreach ($interfaces as $interface) $interface_hash[$interface['node_id']]=$inte //////////////////// nodes currently in $toggle_nodes=new PlekitToggle('my-slice-nodes-current', count_english($slice_nodes,"node") . " currently in $name", - array('visible'=>get_arg('show_nodes_current',!$privileges))); + array('visible'=>get_arg('show_nodes_current'))); $toggle_nodes->start(); $headers=array(); @@ -788,7 +787,7 @@ if ($privileges) { $count=count($potential_nodes); $toggle_nodes=new PlekitToggle('my-slice-nodes-add', count_english($potential_nodes,"more node") . " available", - array('visible'=>get_arg('show_nodes_add',NULL))); + array('visible'=>get_arg('show_nodes_add'))); $toggle_nodes->start(); if ( $potential_nodes ) { @@ -920,7 +919,7 @@ if ($local_peer) { $toggle = new PlekitToggle('slice-initscripts',$label, array('bubble'=>'Manage initscript on that slice', - 'visible'=>get_arg('show_initscripts',NULL), + 'visible'=>get_arg('show_initscripts'), 'info-text'=>$initscript_info // not messing with persontags to guess whether this should be displayed or not // hopefully some day toggle will know how to handle that using web storage @@ -995,7 +994,7 @@ $tag_value_threshold=24; $toggle = new PlekitToggle ('slice-tags',count_english_warning($tags,'tag'), array('bubble'=>'Inspect and set tags on that slice', - 'visible'=>get_arg('show_tags',NULL))); + 'visible'=>get_arg('show_tags'))); $toggle->start(); $headers=array(