From 8be2ab512119820eafae5e0340ee07bab51f8446 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Sun, 9 Apr 2023 18:54:46 +0200 Subject: [PATCH] Show 0.822 details on levelInfo page --- iwm_browser/templates/levelInfo.html | 52 ++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/iwm_browser/templates/levelInfo.html b/iwm_browser/templates/levelInfo.html index 7f68c9d..4c15e93 100644 --- a/iwm_browser/templates/levelInfo.html +++ b/iwm_browser/templates/levelInfo.html @@ -27,23 +27,45 @@
Level
-
-
-
-
-
{{ map['Name'] }}
-
Difficulty: {{ '▲' * map['AverageUserDifficulty']|int }}
- -
{{ map['NumThumbsUp'] }} 👍 {{ map['NumThumbsDown'] }} 👎
- {% if map['Description'] != ''%}
{{ map['Description'] }}
{% endif %} -
Code:
-
-
-
First Clear: {{ map['FirstClearUsername'] }}
- {% set BestTime = convert_times(map['BestTimePlaytime']) %} -
Best Time: {{ map['BestTimeUsername'] }} [{{ BestTime[0] }}:{{ BestTime[1] }}:{{ BestTime[2] }}]
+
+
+
+
+ +
Difficulty: {{ '▲' * map['AverageUserDifficulty']|int }}
+ +
{{ map['NumThumbsUp'] }} 👍 {{ map['NumThumbsDown'] }} 👎
+
Replays visible: {{ "always" if map['ReplayVisibility'] == 2 }}{{ "after clear" if map['ReplayVisibility'] == 0 }}
+
Gems : {{ map['DragonCoins'] }}
+ {% if map['Description'] != ''%}
{{ map['Description'] }}
{% endif %} +
+
+
+ Full server response + + + + {% for value in map %} + + + + {% endfor %} + +
KeyValue
{{value}}{{map[value]}}
+ +
+
+
+ + {% set BestTime = convert_times(map['BestTimePlaytime']) %} + {% set BestFullTime = convert_times(map['BestFullTimePlaytime']) %} +
Best Time: {{ map['BestTimeUsername'] }} [{{ BestTime[0] }}:{{ BestTime[1] }}:{{ BestTime[2] }}]
+ {% if map['BestFullTimeUserID'] != 0 %}
Best 100% Time: {{ map['BestFullTimeUsername'] }} [{{ BestFullTime[0] }}:{{ BestFullTime[1] }}:{{ BestFullTime[2] }}]{{ "(illegal time)" if not map['DragonCoins'] }}
{% endif %} +
+
+