[or-cvs] r16718: {torstatus} (ticket:100) Fixing remaining issues (torstatus/trunk/web)

kasimir at seul.org kasimir at seul.org
Mon Sep 1 16:52:19 UTC 2008


Author: kasimir
Date: 2008-09-01 12:52:19 -0400 (Mon, 01 Sep 2008)
New Revision: 16718

Modified:
   torstatus/trunk/web/router_detail.php
Log:
(ticket:100) Fixing remaining issues

Modified: torstatus/trunk/web/router_detail.php
===================================================================
--- torstatus/trunk/web/router_detail.php	2008-09-01 16:34:57 UTC (rev 16717)
+++ torstatus/trunk/web/router_detail.php	2008-09-01 16:52:19 UTC (rev 16718)
@@ -341,14 +341,14 @@
 					$record = mysql_fetch_assoc($result);
 					// Display in the form
 					//  [linked][countrycode] Name
-					echo "<img src=\"img/flags/".strtolower($record['CountryCode']).".gif\" class=\"flag\" /> <a href=\"router_detail.php?FP=$fplink\">".$record['Name']."</a><br/>";
+					echo "<img title=\"FP: $fplink\" src=\"img/flags/".strtolower($record['CountryCode']).".gif\" class=\"flag\" /> <a title=\"FP: $fplink\" href=\"router_detail.php?FP=$fplink\">".$record['Name']."</a><br/>";
 				}
 				else
 				{
 					// The router was not found
 					// Display in the form
 					//  Fingerprint
-					echo "$FamilyMember<br/>";
+					echo "<img title=\"Unknown router\" src=\"/img/routerdown.png\" alt=\"Unknown Router\"/> $FamilyMember<br/>";
 				}
 			}
 			else
@@ -365,7 +365,7 @@
 					$fplink = strtolower(substr($record['Fingerprint'],1));
 					// Display in the form
 					//  [linked][countrycode] Name
-					echo "<img src=\"img/flags/".strtolower($record['CountryCode']).".gif\" class=\"flag\" /> <a href=\"router_detail.php?FP=$fplink\">$FamilyMember</a><br/>";
+					echo "<img title=\"FP: $fplink\" src=\"img/flags/".strtolower($record['CountryCode']).".gif\" class=\"flag\" /> <a title=\"FP: $fplink\" href=\"router_detail.php?FP=$fplink\">$FamilyMember</a><br/>";
 				}
 				else
 				{
@@ -373,7 +373,7 @@
 					// meaningless
 					// Display in the form
 					//  Name
-					echo "$FamilyMember<br/>";
+					echo "<img title=\"Unknown router\" src=\"/img/routerdown.png\" alt=\"Unknown Router\"/> $FamilyMember<br/>";
 				}
 
 			}



More information about the tor-commits mailing list