mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 05:14:25 +00:00
Better transit tunnels page rendering
This commit is contained in:
@@ -663,7 +663,7 @@ namespace http {
|
||||
<< it->GetRecvStreamID () << "&token=" << token << "\" title=\"" << tr("Close stream") << "\"> ✘ </a></td>";
|
||||
}
|
||||
else {
|
||||
s << "<td> HTML </td>"; // TODO: FIXME: Undefined HTML code
|
||||
s << "<td> !! FIXME !! </td>"; // TODO: FIXME: Undefined HTML code
|
||||
}
|
||||
s << "<td class=\"streamdest\" title=\"" << streamDest << "\">" << streamDestShort << "</td>";
|
||||
s << "<td>" << it->GetNumSentBytes () << "</td>";
|
||||
@@ -893,14 +893,18 @@ namespace http {
|
||||
s << "<tbody class=\"tableitem\">\r\n";
|
||||
for (const auto& it: i2p::tunnel::tunnels.GetTransitTunnels ())
|
||||
{
|
||||
s << "<tr class=\"tcell_center\">";
|
||||
if (std::dynamic_pointer_cast<i2p::tunnel::TransitTunnelGateway>(it))
|
||||
s << "<tr><td></td><td>" << it->GetTunnelID () << "</td><td>⇒</td><td>";
|
||||
s << "<td> </td><td class=\"tcell_right\">" << std::setw(10) << it->GetTunnelID () << "</td><td>⇒</td>";
|
||||
else if (std::dynamic_pointer_cast<i2p::tunnel::TransitTunnelEndpoint>(it))
|
||||
s << "<tr><td>⇒</td><td>" << it->GetTunnelID () << "</td><td></td><td>";
|
||||
s << "<td>⇒</td><td class=\"tcell_right\">" << std::setw(10) << it->GetTunnelID () << "</td><td> </td>";
|
||||
else
|
||||
s << "<tr><td>⇒</td><td>" << it->GetTunnelID () << "</td><td>⇒</td><td>";
|
||||
s << "<td>⇒</td><td class=\"tcell_right\">" << std::setw(10) << it->GetTunnelID () << "</td><td>⇒</td>";
|
||||
s << "<td class=\"tcell_right\">";
|
||||
ShowTraffic(s, it->GetNumTransmittedBytes ());
|
||||
s << "</td><td>" << it->GetNextPeerName () << "</td></tr>\r\n";
|
||||
s << "</td>";
|
||||
s << "<td class=\"tcell_left\"> " << it->GetNextPeerName () << "</td>";
|
||||
s << "</tr>\r\n";
|
||||
}
|
||||
s << "</tbody>\r\n</table>\r\n<br>\r\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user