From b89880398186b568ec2a6543e77d8a6760476a9c Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Sun, 7 Mar 2021 14:53:42 -0800 Subject: [PATCH] single player tracker now hides small key/big key column if everything in that column would be N/A. --- WebHostLib/templates/playerTracker.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/WebHostLib/templates/playerTracker.html b/WebHostLib/templates/playerTracker.html index b297f7cd..e9e9e517 100644 --- a/WebHostLib/templates/playerTracker.html +++ b/WebHostLib/templates/playerTracker.html @@ -56,19 +56,27 @@ - - + {% if key_locations and "Universal" not in key_locations %} + + {% endif %} + {% if big_key_locations %} + + {% endif %} {% for area in sp_areas %} {{ area }} {{ checks_done[area] }} / {{ checks_in_area[area] }} - - {{ inventory[small_key_ids[area]] if area in key_locations else 'N/A' }} - - - {{ '✔' if area in big_key_locations and inventory[big_key_ids[area]] else ('N/A' if area not in big_key_locations else '') }} - + {% if key_locations and "Universal" not in key_locations %} + + {{ inventory[small_key_ids[area]] if area in key_locations else 'N/A' }} + + {% endif %} + {% if big_key_locations %} + + {{ '✔' if area in big_key_locations and inventory[big_key_ids[area]] else ('N/A' if area not in big_key_locations else '') }} + + {% endif %} {% endfor %}