From f2afd1eef9866890ba94b193587e04e723e6bb9b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 4 Dec 2020 15:28:46 -0500 Subject: [PATCH] Restore columns to /uploads, fix styling for table, re-enable sorting --- WebHostLib/static/styles/hostGame.css | 10 +++++++--- WebHostLib/templates/hostGame.html | 12 ++++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/WebHostLib/static/styles/hostGame.css b/WebHostLib/static/styles/hostGame.css index 4bf5d073..e89b3786 100644 --- a/WebHostLib/static/styles/hostGame.css +++ b/WebHostLib/static/styles/hostGame.css @@ -31,14 +31,18 @@ #host-game-table{ margin-right: auto; - text-align: center + text-align: left; +} + +#host-game-table th{ + padding: 0; } #host-game-table td{ - padding-left: 20px; - padding-right: 20px; + padding: 6px 20px 0 0; } #host-game-table.dataTable{ width: unset; + } diff --git a/WebHostLib/templates/hostGame.html b/WebHostLib/templates/hostGame.html index 0dbb0d23..75aabe99 100644 --- a/WebHostLib/templates/hostGame.html +++ b/WebHostLib/templates/hostGame.html @@ -25,12 +25,16 @@ {% if rooms %} -

Your Rooms:

- +

Your Games:

+
+ + + + @@ -39,6 +43,10 @@ + + + {% endfor %}
Seed RoomPlayersCreated (UTC)Last Activity (UTC)
{{ room.seed.id|suuid }} {{ room.id|suuid }}{{ room.seed.multidata.names[0]|length }} Total: + {{ room.seed.multidata.names[0]|join(", ")|truncate(256, False, " ...") }}{{ room.creation_time.strftime("%Y-%m-%d %H:%M") }}{{ room.last_activity.strftime("%Y-%m-%d %H:%M") }}