Skip to content

Commit

Permalink
πŸ› Reorder columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jnywong committed Nov 26, 2024
1 parent 430be60 commit afad0fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frx_challenges/web/templates/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ <h1>Leaderboard</h1>
<table id="results" class="table hover">
<thead>
<tr>
<th scope="col">Date created</th>
<th scope="col">Submission Name</th>
{% for md in metadata_display %}<th scope="col">{{ md }}</th>{% endfor %}
<th scope="col">Date created</th>
{% for dc in evaluation_display_config %}<th scope="col">{{ dc.display_name }}</th>{% endfor %}
</tr>
</thead>
Expand Down Expand Up @@ -62,11 +62,11 @@ <h1>Leaderboard</h1>
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();
}
Expand Down

0 comments on commit afad0fd

Please sign in to comment.