mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 10:20:23 +01:00
Added a couple more "Empty" notifications
This commit is contained in:
parent
9cdd95c14f
commit
71de3a7901
@ -27,7 +27,15 @@ public class ServerAccordionCreator {
|
|||||||
StringBuilder html = new StringBuilder("<div class=\"panel-group scrollbar\" id=\"session_accordion\" role=\"tablist\" aria-multiselectable=\"true\">");
|
StringBuilder html = new StringBuilder("<div class=\"panel-group scrollbar\" id=\"session_accordion\" role=\"tablist\" aria-multiselectable=\"true\">");
|
||||||
StringBuilder viewScript = new StringBuilder();
|
StringBuilder viewScript = new StringBuilder();
|
||||||
|
|
||||||
for (Map.Entry<UUID, WorldTimes> entry : profile.getWorldTimesPerServer().entrySet()) {
|
Map<UUID, WorldTimes> worldTimesPerServer = profile.getWorldTimesPerServer();
|
||||||
|
|
||||||
|
if (worldTimesPerServer.isEmpty()) {
|
||||||
|
return new String[]{"<div class=\"body\">" +
|
||||||
|
"<p>No Sessions</p>" +
|
||||||
|
"</div>", ""};
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Map.Entry<UUID, WorldTimes> entry : worldTimesPerServer.entrySet()) {
|
||||||
UUID serverUUID = entry.getKey();
|
UUID serverUUID = entry.getKey();
|
||||||
String serverName = serverNames.getOrDefault(serverUUID, "Unknown");
|
String serverName = serverNames.getOrDefault(serverUUID, "Unknown");
|
||||||
WorldTimes worldTimes = entry.getValue();
|
WorldTimes worldTimes = entry.getValue();
|
||||||
|
@ -25,7 +25,7 @@ public class ActionsTableCreator {
|
|||||||
public static String createTable(List<Action> actions) {
|
public static String createTable(List<Action> actions) {
|
||||||
StringBuilder html = new StringBuilder();
|
StringBuilder html = new StringBuilder();
|
||||||
if (actions.isEmpty()) {
|
if (actions.isEmpty()) {
|
||||||
html.append(Html.TABLELINE_3.parse("", "", ""));
|
html.append(Html.TABLELINE_3.parse("No Actions", "-", "-"));
|
||||||
} else {
|
} else {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Action action : actions) {
|
for (Action action : actions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user