From 208e8f8247996e7444f454cd1fd948c81567e670 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 14 Jan 2016 19:05:46 -0500 Subject: [PATCH] new webconsole style by sha-db --- HTTPServer.cpp | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index e6099053..f19abff4 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -358,27 +358,23 @@ namespace util std::stringstream s; // Html5 head start s << "\n"; // TODO: Add support for locale. - s << ""; // TODO: Find something to parse html/template system. This is horrible. - s << "Purple I2P " << VERSION " Webconsole"; + s << ""; // TODO: Find something to parse html/template system. This is horrible. + s << ""; + s << "Purple I2P " << VERSION " Webconsole"; s << ""; - s << ""; - s << "
"; - s << "

i2pd webconsole

"; - s << "
"; + s << ""; + s << "
i2pd webconsole
"; s << "
"; s << "
"; s << "Main page

"; @@ -611,8 +607,8 @@ namespace util << it.second->GetSocket ().remote_endpoint().address ().to_string (); if (!it.second->IsOutgoing ()) s << "-->"; s << " [" << it.second->GetNumSentBytes () << ":" << it.second->GetNumReceivedBytes () << "]"; + s << "
" << std::endl; } - s << "
" << std::endl; } } auto ssuServer = i2p::transport::transports.GetSSUServer (); @@ -901,3 +897,4 @@ namespace util } } +