From 430be60741927a61b86672cd13211c5b19243db5 Mon Sep 17 00:00:00 2001 From: jnywong Date: Tue, 26 Nov 2024 17:19:49 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8E=A8=20Update=20table=20design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frx_challenges/web/templates/results.html | 12 +++++------- frx_challenges/web/templates/submission/list.html | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/frx_challenges/web/templates/results.html b/frx_challenges/web/templates/results.html index b419eb7..cda7760 100644 --- a/frx_challenges/web/templates/results.html +++ b/frx_challenges/web/templates/results.html @@ -26,25 +26,23 @@

Leaderboard

- +
- - {% for md in metadata_display %}{% endfor %} + {% for dc in evaluation_display_config %}{% endfor %} {% for result in results %} - - {% for m in result.metadata %}{% endfor %} + {% for r in result.best_version.latest_evaluation.ordered_results %}
IDDate created Submission Name{{ md }}Date created{{ dc.display_name }}
{{ result.submission.id }}{{ result.submission.created_at|date:"c" }} {{ result.submission.name }} {{ m }}{{ result.submission.created_at|date:"c" }} {% if r %}{{ r }}{% endif %} @@ -64,11 +62,11 @@

Leaderboard

const resultsTable = new DataTable("#results", { order: [ // Apply reverse chronological ordering by default - [1, "desc"] + [2, "desc"] ], columnDefs: [ { - targets: 1, + targets: 2, render: (data) => { return dayjs(data).fromNow(); } diff --git a/frx_challenges/web/templates/submission/list.html b/frx_challenges/web/templates/submission/list.html index 54ea74b..afc6b4b 100644 --- a/frx_challenges/web/templates/submission/list.html +++ b/frx_challenges/web/templates/submission/list.html @@ -30,7 +30,7 @@

My Submissions

- +
From afad0fdf081fccdb0bf826704c7085b385adc52e Mon Sep 17 00:00:00 2001 From: jnywong Date: Tue, 26 Nov 2024 17:21:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Reorder=20columns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frx_challenges/web/templates/results.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frx_challenges/web/templates/results.html b/frx_challenges/web/templates/results.html index cda7760..86c2780 100644 --- a/frx_challenges/web/templates/results.html +++ b/frx_challenges/web/templates/results.html @@ -29,9 +29,9 @@

Leaderboard

Name
+ {% for md in metadata_display %}{% endfor %} - {% for dc in evaluation_display_config %}{% endfor %} @@ -62,11 +62,11 @@

Leaderboard

const resultsTable = new DataTable("#results", { order: [ // Apply reverse chronological ordering by default - [2, "desc"] + [0, "desc"] ], columnDefs: [ { - targets: 2, + targets: 0, render: (data) => { return dayjs(data).fromNow(); }
Date created Submission Name{{ md }}Date created{{ dc.display_name }}