Attempt to fix Inspect page button and Network "analysis" button, as well as fix drawing of charts on network page

This commit is contained in:
Rsl1122 2017-11-23 22:57:55 +02:00
parent 8ccd9854ba
commit b341e2f0eb
3 changed files with 6 additions and 4 deletions

View File

@ -43,6 +43,7 @@ public class NetworkPageParser extends PageParser {
Database db = plugin.getDB();
List<TPS> networkOnlineData = db.getTpsTable().getNetworkOnlineData();
addValue("timeZone", MiscUtils.getTimeZoneOffsetHours());
addValue("networkName", Settings.BUNGEE_NETWORK_NAME.toString());
addValue("version", plugin.getVersion());
addValue("playersOnlineSeries", PlayerActivityGraphCreator.buildSeriesDataString(networkOnlineData));

View File

@ -379,10 +379,10 @@ public class HtmlStructure {
"<p><i class=\"fa fa-clock-o\"></i> Last Refresh" +
"<span class=\"pull-right\"><b>" + refresh + "</b></span></p>" +
"<br>" +
"<button href=\"" + address + "\" type=\"button\" class=\"pull-right btn bg-light-green waves-effect\">" +
"<a href=\"" + address + "\"><button href=\"" + address + "\" type=\"button\" class=\"pull-right btn bg-light-green waves-effect\">" +
"<i class=\"material-icons\">trending_up</i>" +
"<span>ANALYSIS</span>" +
"</button></div></div></div></div></div></div>" +
"</button></a></div></div></div></div></div></div>" +
"<script>" +
"var playersOnlineSeries" + id + " = {" +
"name: 'Players Online'," +
@ -396,7 +396,7 @@ public class HtmlStructure {
"</script>" +
"<script>$(function () {" +
"playersChartNoNav(playerChart" + id + ", playersOnlineSeries" + id +
"}</script>";
");}</script>";
}
public static String parseOfflineServerContainer(String oldContent) {

View File

@ -125,7 +125,8 @@ public class SessionTabStructureCreator {
.append("</div>"); // Closes Left2 col-6
if (appendName) {
html.append("<div class=\"col-xs-12 col-sm-6 col-md-6 col-lg-6\">") // Right2 col-6
.append("<button href=\"").append(link).append("\" type=\"button\" class=\"pull-right btn bg-blue waves-effect\"><i class=\"material-icons\">person</i><span>INSPECT PAGE</span></button>")
.append("<a href=\"").append(link).append("\"><button href=\"").append(link)
.append("\" type=\"button\" class=\"pull-right btn bg-blue waves-effect\"><i class=\"material-icons\">person</i><span>INSPECT PAGE</span></button></a>")
.append("</div>"); // Closes Right2 col-6
}
html.append("</div>") // Closes row clearfix