mirror of https://notabug.org/acetone/ircabot.git
server info link fix
parent
3b5bdc62e2
commit
a7cde08ada
|
@ -573,7 +573,7 @@ void HttpServer::writeMainPage(QTcpSocket *socket, QString &urlPath, bool isHead
|
||||||
if (s.first.isEmpty()) continue; // empty server name?
|
if (s.first.isEmpty()) continue; // empty server name?
|
||||||
|
|
||||||
QString htmlServersSection = HTML_SERVER_SECTION;
|
QString htmlServersSection = HTML_SERVER_SECTION;
|
||||||
replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+server);
|
replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+s.first);
|
||||||
replaceTag(htmlServersSection, "SERVER_NAME", s.first);
|
replaceTag(htmlServersSection, "SERVER_NAME", s.first);
|
||||||
|
|
||||||
QString htmlChannelLineS;
|
QString htmlChannelLineS;
|
||||||
|
@ -1383,7 +1383,7 @@ void HttpServer::writeAboutServerPage(QTcpSocket *socket, QString &urlPath, bool
|
||||||
htmlServersSection.replace("<div class=\"left_menu__item\">",
|
htmlServersSection.replace("<div class=\"left_menu__item\">",
|
||||||
"<div class=\"left_menu__item\" style=\"background: #f0f5fa\">");
|
"<div class=\"left_menu__item\" style=\"background: #f0f5fa\">");
|
||||||
}
|
}
|
||||||
replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+server);
|
replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+s.first);
|
||||||
replaceTag(htmlServersSection, "SERVER_NAME", s.first);
|
replaceTag(htmlServersSection, "SERVER_NAME", s.first);
|
||||||
if (s.first == originalServerName) {
|
if (s.first == originalServerName) {
|
||||||
htmlServersSection.replace("<span style=\"font-size: 17px;\">{{ONLINE_STATUS}}",
|
htmlServersSection.replace("<span style=\"font-size: 17px;\">{{ONLINE_STATUS}}",
|
||||||
|
|
Loading…
Reference in New Issue