Show
Ignore:
Timestamp:
09/03/06 18:54:01 (6 years ago)
Author:
max-horvath
Message:

"2006-09-03 Max Horvath <max.horvath@…>

  • The term SPLASH_ONLY_USER displayed to people visiting the portal has been replaced by the more meaningful term \"anonymous user\" (fixes #106)
  • When creating a new node and choosing an existing node_id there will be shown an error message (fixes #223)
  • If one or more nodes aren't monitored they now will be announced on the front page (instead of just showing the number of monitored online nodes) (fixes #100)
  • Display more meaningful error messages if required user permissions are missing (fixes #242)
  • Refactored Network->getAdminUI() to match look and feel of Node->getAdminUI (fixes #140)
  • Show descriptive status of node (fixes #241)"
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/node_list.php

    r1088 r1089  
    107107    throw new Exception(_("No nodes could not be found in the database")); 
    108108 
     109$deploymentStatuses = array( 
     110    "DEPLOYED" => _("Deployed"), 
     111    "IN_PLANNING" => _("In planning"), 
     112    "IN_TESTING" => _("In testing"), 
     113    "NON_WIFIDOG_NODE" => _("Non-Wifidog node"), 
     114    "PERMANENTLY_CLOSED" => _("Permanently closed"), 
     115    "TEMPORARILY_CLOSED" => _("Temporarily closed") 
     116    ); 
     117 
    109118$nodes_list = array (); 
    110119foreach ($nodes_results as $node_row) 
     
    113122    $node_row['duration'] = $db->GetDurationArrayFromIntervalStr($node_row['since_last_heartbeat']); 
    114123    $node_row['num_online_users'] = $node->getNumOnlineUsers(); 
     124    $nodeDeploymentStatus = $node_row['node_deployment_status']; 
     125    $node_row['node_deployment_status'] = $deploymentStatuses["$nodeDeploymentStatus"]; 
    115126    $nodes_list[] = $node_row; 
    116127}