From 7fcd85e7e96ffca8084341bda87d9b9909a9a309 Mon Sep 17 00:00:00 2001 From: jnywong Date: Tue, 26 Nov 2024 15:35:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B1=20Make=20tables=20responsive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frx_challenges/web/templates/results.html | 54 +++++++++-------- .../web/templates/submission/detail.html | 50 ++++++++-------- .../web/templates/submission/list.html | 60 ++++++++++--------- 3 files changed, 85 insertions(+), 79 deletions(-) diff --git a/frx_challenges/web/templates/results.html b/frx_challenges/web/templates/results.html index ed43651..b419eb7 100644 --- a/frx_challenges/web/templates/results.html +++ b/frx_challenges/web/templates/results.html @@ -25,34 +25,36 @@

Leaderboard

- - - - - - - {% for md in metadata_display %}{% endfor %} - {% for dc in evaluation_display_config %}{% endfor %} - - - - {% for result in results %} +
+
IDDate createdSubmission Name{{ md }}{{ dc.display_name }}
+ - - - - {% for m in result.metadata %}{% endfor %} - {% for r in result.best_version.latest_evaluation.ordered_results %} - - {% endfor %} + + + + {% for md in metadata_display %}{% endfor %} + {% for dc in evaluation_display_config %}{% endfor %} - {% endfor %} - -
{{ result.submission.id }}{{ result.submission.created_at|date:"c" }} - {{ result.submission.name }} - {{ m }} - {% if r %}{{ r }}{% endif %} - IDDate createdSubmission Name{{ md }}{{ dc.display_name }}
+ + + {% for result in results %} + + {{ result.submission.id }} + {{ result.submission.created_at|date:"c" }} + + {{ result.submission.name }} + + {% for m in result.metadata %}{{ m }}{% endfor %} + {% for r in result.best_version.latest_evaluation.ordered_results %} + + {% if r %}{{ r }}{% endif %} + + {% endfor %} + + {% endfor %} + + +
diff --git a/frx_challenges/web/templates/submission/detail.html b/frx_challenges/web/templates/submission/detail.html index 6d7a6d3..600210f 100644 --- a/frx_challenges/web/templates/submission/detail.html +++ b/frx_challenges/web/templates/submission/detail.html @@ -59,32 +59,34 @@

{{ submission.name }}

{% if versions %} - - - - - - - {% for dc in evaluation_display_config %}{% endfor %} - - - - {% for v in versions %} +
+
FilenameDate uploadedEvaluation Status{{ dc.display_name }}
+ - - - - {% for r in v.latest_evaluation.ordered_results %} - - {% endfor %} + + + + {% for dc in evaluation_display_config %}{% endfor %} - {% endfor %} - -
- {{ v.filename }} - {{ v.created_at|date:"c" }}{{ v.latest_evaluation.status }} - {% if r %}{{ r }}{% endif %} - FilenameDate uploadedEvaluation Status{{ dc.display_name }}
+ + + {% for v in versions %} + + + {{ v.filename }} + + {{ v.created_at|date:"c" }} + {{ v.latest_evaluation.status }} + {% for r in v.latest_evaluation.ordered_results %} + + {% if r %}{{ r }}{% endif %} + + {% endfor %} + + {% endfor %} + + +
{% else %}

See your results here after you make an upload!

{% endif %} diff --git a/frx_challenges/web/templates/submission/list.html b/frx_challenges/web/templates/submission/list.html index e00f47c..0d69f3d 100644 --- a/frx_challenges/web/templates/submission/list.html +++ b/frx_challenges/web/templates/submission/list.html @@ -29,36 +29,38 @@

My Submissions

- - - - - - - {% for dc in evaluation_display_config %}{% endfor %} - - - - {% for sub in submissions %} +
+
NameDescriptionDate created{{ dc.display_name }}
+ - - - - {% if sub.best_version.latest_evaluation.ordered_results %} - {% for r in sub.best_version.latest_evaluation.ordered_results %} - - {% endfor %} - {% else %} - {% for dc in evaluation_display_config %}{% endfor %} - {% endif %} + + + + {% for dc in evaluation_display_config %}{% endfor %} - {% endfor %} - -
- {{ sub.name }} - {{ sub.description }}{{ sub.created_at|date:"c" }} - {% if r %}{{ r }}{% endif %} - n/aNameDescriptionDate created{{ dc.display_name }}
+ + + {% for sub in submissions %} + + + {{ sub.name }} + + {{ sub.description }} + {{ sub.created_at|date:"c" }} + {% if sub.best_version.latest_evaluation.ordered_results %} + {% for r in sub.best_version.latest_evaluation.ordered_results %} + + {% if r %}{{ r }}{% endif %} + + {% endfor %} + {% else %} + {% for dc in evaluation_display_config %}n/a{% endfor %} + {% endif %} + + {% endfor %} + + +