mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Added a no servers display on network page
This commit is contained in:
parent
0aaea45d92
commit
5ecb5f7086
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user