diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index aa2e285..33006df 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -54,8 +54,8 @@ def statParagraph(test): elolower = twoDigitPrecision(test.elolower) eloupper = twoDigitPrecision(test.eloupper) - return 'SPRT @ {0}s Threads={1} Hash={2}MB
'.format(test.timecontrol, threads, hash) \ - + 'LLR: {0} ({1}, {2}) [{3}, {4}]
'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \ + return 'SPRT @ {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \ + + 'LLR: {0} ({1}, {2}) [{3}, {4}]\n'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \ + 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) def testResultColour(test): diff --git a/Templates/OpenBench/index.html b/Templates/OpenBench/index.html index 86d023f..c490ba3 100644 --- a/Templates/OpenBench/index.html +++ b/Templates/OpenBench/index.html @@ -1,9 +1,6 @@ {% extends "OpenBench/base.html" %} - {% load mytags %} - {% block content %} - {% if pending %} @@ -21,12 +18,9 @@ - {% autoescape off %} - - {% endautoescape %} + {% endfor %} - {% if active %} @@ -43,12 +37,9 @@ - {% autoescape off %} - - {% endautoescape %} + {% endfor %} - {% if completed %} @@ -65,9 +56,7 @@ - {% autoescape off %} - - {% endautoescape %} + {% endfor %}

Pending

{{test.author}} {{test.dev.name}} diff{{test|statParagraph}}{{test|statParagraph|linebreaksbr}}

Active

{{test.author}} {{test.dev.name}} diff{{test|statParagraph}}{{test|statParagraph|linebreaksbr}}

Finished

{{test.author}} {{test.dev.name}} diff{{test|statParagraph}}{{test|statParagraph|linebreaksbr}}