diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 82589765..4229acac 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -635,7 +635,20 @@ namespace util s << ""; // TODO: Find something to parse html/template system. This is horrible. s << "Purple I2P " << VERSION " Webconsole"; + s << "' />Purple I2P " << VERSION " Webconsole"; + s << ""; + s << ""; // Head end if (address.length () > 1) HandleCommand (address.substr (2), s); @@ -647,7 +660,11 @@ namespace util void HTTPConnection::FillContent (std::stringstream& s) { - s << "

Welcome to the Webconsole!


"; + s << "
"; + s << "

i2pd webconsole

"; + s << "
"; + s << "
"; + s << "

"; s << "Uptime: " << boost::posix_time::to_simple_string ( boost::posix_time::time_duration (boost::posix_time::seconds ( i2p::context.GetUptime ()))) << "
"; @@ -688,25 +705,22 @@ namespace util } s << address.host.to_string() << ":" << address.port << "
"; } - s << "
Routers: " << i2p::data::netdb.GetNumRouters () << " "; - s << "Floodfills: " << i2p::data::netdb.GetNumFloodfills () << " "; - s << "LeaseSets: " << i2p::data::netdb.GetNumLeaseSets () << "
"; - - s << "
Local destinations"; - s << "
Tunnels"; - s << "
Transit tunnels"; - s << "
Transports"; + s << "
Routers: " << i2p::data::netdb.GetNumRouters () << " "; + s << "Floodfills: " << i2p::data::netdb.GetNumFloodfills () << " "; + s << "LeaseSets: " << i2p::data::netdb.GetNumLeaseSets () << "
"; + s << "

"; + s << "

[ Local destinations ]
"; + s << "[ Tunnels ]
"; + s << "[ Transit tunnels ]
"; + s << "[ Transports ]
"; if (i2p::client::context.GetSAMBridge ()) - s << "
SAM sessions"; - s << "
"; - + s << "[ SAM sessions ]

"; if (i2p::context.AcceptsTunnels ()) - s << "
Stop accepting tunnels
"; + s << "[ Stop accepting tunnels ]

"; else - s << "
Start accepting tunnels
"; - s << "
Run peer test
"; - - s << "

Flibusta

"; + s << "[ Start accepting tunnels ]

"; + s << "[ Run peer test ]

"; + s << "
"; } void HTTPConnection::HandleCommand (const std::string& command, std::stringstream& s)