From be5183260e5498ff2aa6651b7af5b5bdd5cdfda3 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Tue, 30 May 2023 14:06:41 -0400 Subject: [PATCH] Fix banned players formatting --- .../templates/panel/parts/details_stats.html | 4 ++-- .../templates/panel/parts/server_players.html | 24 ++++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/app/frontend/templates/panel/parts/details_stats.html b/app/frontend/templates/panel/parts/details_stats.html index 568cf33b..47fa501d 100644 --- a/app/frontend/templates/panel/parts/details_stats.html +++ b/app/frontend/templates/panel/parts/details_stats.html @@ -232,7 +232,7 @@ let players = server.players_cache; for(let i=0; i < players.length; i++){ text += ``; - text += `${players[i]["name"]}`; + text += `${players[i]["name"]}`; if(players[i]["status"] === "Online"){ text += ` ${ players[i]['status'] }` }else{ @@ -241,7 +241,7 @@ if(server["running"]){ text += `


` }else{ - text += ` Unavailable (Server Offline)` + text += ` Unavailable
(Server Offline)
` } } diff --git a/app/frontend/templates/panel/parts/server_players.html b/app/frontend/templates/panel/parts/server_players.html index 3e879665..df059e95 100644 --- a/app/frontend/templates/panel/parts/server_players.html +++ b/app/frontend/templates/panel/parts/server_players.html @@ -29,7 +29,7 @@
{% else %} - Unavailable (Server Offline) + Unavailable
(Server Offline)
{% end %} @@ -51,9 +51,9 @@ width: 70px; } -
+

{{ translate('serverPlayerManagement', 'bannedPlayers', data['lang']) }}:

- +
@@ -75,4 +75,22 @@ {% end %}
Player
+ + + + + + + + + {% for player in data['banned_players'] %} + + + + + {% end %} + +
PlayerActions
{{ player['name'] }} + +
\ No newline at end of file