diff --git a/src/main/java/net/Broken/webView/GeneralWebView.java b/src/main/java/net/Broken/webView/GeneralWebView.java index 54d5af8..8010c9d 100644 --- a/src/main/java/net/Broken/webView/GeneralWebView.java +++ b/src/main/java/net/Broken/webView/GeneralWebView.java @@ -157,9 +157,14 @@ public class GeneralWebView { model.addAttribute("redirect_url", System.getenv("OAUTH_URL")); try { UserEntity userEntity = userUtils.getUserWithApiToken(userRepository, token); - addGuildAndRedirect(model, cookieGuildId); + GuildStatsPack stack; + if(!cookieGuildId.equals("")){ + stack = UserStatsUtils.getINSTANCE().getStatPack(userEntity, cookieGuildId); + addGuildAndRedirect(model, cookieGuildId); - GuildStatsPack stack = UserStatsUtils.getINSTANCE().getStatPack(userEntity, cookieGuildId); + } + else + stack = null; model.addAttribute("stack", stack); return CheckPage.getPageIfReady("rank"); diff --git a/src/main/resources/templates/rank.html b/src/main/resources/templates/rank.html index cf5f4ab..d701d97 100644 --- a/src/main/resources/templates/rank.html +++ b/src/main/resources/templates/rank.html @@ -46,148 +46,152 @@
-
-
-
-
- + +
+
+
+
+ +
+
+

+
-
-

-
-
-
-
- - - - - - - - - - - -
Rank
-

/ 50

-
+
+
+ + + + + + + + + + + +
Rank
+

/ 50

+
+
+
+ + + + + + + + + + + +
Experience
+

+ Xp +

+
+
-
- - - - - - - - - - - -
Experience
-

Xp -

-
-
-
-
-
- - - - - - - - - + + +
Vocal Time
-

+
+
+ + + + + + + + + - - -
Vocal Time
+

H - M - S -

-
+ M + S +

+
-
-
- - - - - - - - - - - -
Message count
-

msg -

-
+
+
+ + + + + + + + + + + +
Message count
+

msg +

+
+
-
-
-
-

Ranking

+
+
+

Ranking

- - - - - - - - - - - - - - - - +
RankNameVocal TimeMessage CountTotal XP
+ - - - - - - + + + + + + + - + + + + + + + + + + + + + + + + +
H - M - SRankNameVocal TimeMessage CountTotal XP
H + M + S
+ +
- -
- - -
+