rename nodes to slivers
smbaker [Tue, 20 Nov 2012 00:14:15 +0000 (16:14 -0800)]
apps/gacksadmin/gacks_functions.php
apps/gacksadmin/user_image.php
apps/gacksadmin/user_nodelist.php
apps/gacksadmin/wizard.php

index 9972cb3..37207cf 100644 (file)
@@ -724,3 +724,22 @@ function get_timezone()
         exit();
     }
 }
+
+function manage_slivers_tabs()
+{
+    $tabs = array();
+
+    $tabs['Show Slivers'] = array('method'=>'GET',
+                               'url'=>l_gacks_nodelist(),
+                               'bubble'=>"Show slivers (also known as nodes or VMs) in your slice");
+
+    $tabs['Add Slivers'] = array('method'=>'GET',
+                               'url'=>l_gacks_wizard(),
+                               'bubble'=>"Add slivers (also known as nodes or VMs) to your slice");
+
+    $tabs['Select Image'] = array('method'=>'GET',
+                               'url'=>l_gacks_image(),
+                               'bubble'=>"Select image to use in this slice");
+
+    return $tabs;
+}
index c74e5c2..0a3652c 100644 (file)
@@ -29,21 +29,10 @@ $_roles= $_person['role_ids'];
 
 // Print header
 require_once 'plc_drupal.php';
-drupal_set_title('Manage Nodes: Select Image');
+drupal_set_title('Manage Slivers: Select Image');
 include 'plc_header.php';
 
-$tabs['Show Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_nodelist(),
-                           'bubble'=>"Show nodes in your slice");
-
-$tabs['Add Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_wizard(),
-                           'bubble'=>"Add nodes to your slice");
-
-$tabs['Select Image'] = array('method'=>'GET',
-                           'url'=>l_gacks_image(),
-                           'bubble'=>"Select image to use in this slice");
-
+$tabs = manage_slivers_tabs();
 $_GET['active_line_tab'] = "Select Image";
 plekit_linetabs($tabs);
 
index 8fef1f5..cf7657c 100644 (file)
@@ -29,21 +29,10 @@ $_roles= $_person['role_ids'];
 
 // Print header
 require_once 'plc_drupal.php';
-drupal_set_title('Manage Nodes: Show Nodes');
+drupal_set_title('Manage Slivers: Show Slivers');
 include 'plc_header.php';
 
-$tabs['Show Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_nodelist(),
-                           'bubble'=>"Show nodes in your slice");
-
-$tabs['Add Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_wizard(),
-                           'bubble'=>"Add nodes to your slice");
-
-$tabs['Select Image'] = array('method'=>'GET',
-                           'url'=>l_gacks_image(),
-                           'bubble'=>"Select image to use in this slice");
-
+$tabs = manage_slivers_tabs();
 plekit_linetabs($tabs);
 
 $nifty=new PlekitNifty ('nodewizard','objects-list','big');
index 2bb6946..f55c6fd 100644 (file)
@@ -29,22 +29,11 @@ $_roles= $_person['role_ids'];
 
 // Print header
 require_once 'plc_drupal.php';
-drupal_set_title('Manage Nodes: Add Nodes');
+drupal_set_title('Manage Slivers: Add Slivers');
 include 'plc_header.php';
 
-$tabs['Show Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_nodelist(),
-                           'bubble'=>"Show nodes in your slice");
-
-$tabs['Add Nodes'] = array('method'=>'GET',
-                           'url'=>l_gacks_wizard(),
-                           'bubble'=>"Add nodes to your slice");
-
-$tabs['Select Image'] = array('method'=>'GET',
-                           'url'=>l_gacks_image(),
-                           'bubble'=>"Select image to use in this slice");
-
-$_GET['active_line_tab'] = "Add Nodes";
+$tabs = manage_slivers_tabs();
+$_GET['active_line_tab'] = "Add Slivers";
 plekit_linetabs($tabs);
 
 $nifty=new PlekitNifty ('nodewizard','objects-list','big');