]> OzVa Git service - delta-velorum/commitdiff
moved latency tracker and added color change
authorMax Value <greenwoodw50@gmail.com>
Mon, 6 Apr 2026 22:41:54 +0000 (23:41 +0100)
committerMax Value <greenwoodw50@gmail.com>
Mon, 6 Apr 2026 22:41:54 +0000 (23:41 +0100)
when > 50 ms

director/templates/table.html

index 7d56694676d41037475b21a19364a0e1110aa4f6..38b7a9e73ece7c5892ba6c7f82e4182c90f4d9d6 100644 (file)
@@ -19,7 +19,6 @@ setupTrigger();
                <nav>
                        <p><a href="/admin">.. back</a></p>
                        <p><b>{{ table_name }}</b></p>
-                       <p>Generated in {{ (time_taken * 1000)|round(2) }}ms</p>
                        <ol>
                        {% for row in table %}
                                <li style="border: 1px solid gray; margin-top: -1px;"><ul>
@@ -84,7 +83,16 @@ setupTrigger();
                                <input type="submit" value="Submit table" style="grid-column: 1 / span 4;">
                        </form>
 
-                       <pre>Note: Tables are rendered statically, it is not safe to opperate the same interface in two places at once.</pre>
+                       <code>
+                               Note: Tables are rendered statically, it is not safe to opperate the same interface in two places at once.
+                               <br>
+                               Processed {{ table|length * table[0]|length }} feilds in
+                               {% if (time_taken * 1000)|round(2) > 20 %}
+                                       <span style="color: red;">{{ (time_taken * 1000)|round(2) }}ms</span>
+                               {% else %}
+                                       {{ (time_taken * 1000)|round(2) }}ms
+                               {% endif %}
+                       </code>
                </main>
        </body>
 </html>