Added a no servers display on network page

This commit is contained in:
Rsl1122 2018-03-12 12:11:31 +02:00
parent 0aaea45d92
commit 5ecb5f7086

View File

@ -34,7 +34,26 @@ public class NetworkPageContent extends Response {
public String getContents() {
if (content.isEmpty()) {
return ""; // TODO "No Servers"
return "<div class=\"row clearfix\">" +
"<div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">" +
"<div class=\"card\">" +
"<div class=\"header\">" +
"<div class=\"row clearfix\">" +
"<div class=\"col-xs-6 col-sm-6 col-lg-6\">" +
"<h2><i class=\"col-light-green fa fa-servers\"></i> No Servers</h2>" +
"</div>" +
"<div class=\"col-xs-6 col-sm-6 col-lg-6\">" +
"<a href=\"javascript:void(0)\" class=\"help material-icons pull-right\" " +
"data-trigger=\"focus\" data-toggle=\"popover\" data-placement=\"left\" " +
"data-container=\"body\" data-html=\"true\" " +
"data-original-title=\"No Servers\" " +
"data-content=\"This is displayed when no servers have sent server information to Bungee." +
"<br><br>You can try debugging the cause by using /planbungee con & /plan m con" +
"<br><br>If MySQL max_packet_size is too small that may cause page transfer to fail.\"" +
">help_outline</a></div></div></div>" +
"<div class=\"body\">" +
"<p>No Servers have sent information to Bungee.</p>" +
"</div></div></div></div>";
}
List<String> serverNames = new ArrayList<>(content.keySet());