Skip to content

Commit a824c58

Browse files
authored
Merge pull request 2i2c-org#214 from jnywong/patch-table-design
🎨 Update table design
2 parents 6b5f96f + afad0fd commit a824c58

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

frx_challenges/web/templates/results.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ <h1>Leaderboard</h1>
2626
<div class="row py-2">
2727
<div class="col py-2">
2828
<div class="table-responsive">
29-
<table id="results" class="table table-striped">
29+
<table id="results" class="table hover">
3030
<thead>
3131
<tr>
32-
<th scope="col">ID</th>
3332
<th scope="col">Date created</th>
3433
<th scope="col">Submission Name</th>
3534
{% for md in metadata_display %}<th scope="col">{{ md }}</th>{% endfor %}
@@ -39,12 +38,11 @@ <h1>Leaderboard</h1>
3938
<tbody>
4039
{% for result in results %}
4140
<tr>
42-
<td>{{ result.submission.id }}</td>
43-
<td>{{ result.submission.created_at|date:"c" }}</td>
4441
<td>
4542
<a href='{% url "submissions-detail" result.submission.id %}'>{{ result.submission.name }}</a>
4643
</td>
4744
{% for m in result.metadata %}<td>{{ m }}</td>{% endfor %}
45+
<td>{{ result.submission.created_at|date:"c" }}</td>
4846
{% for r in result.best_version.latest_evaluation.ordered_results %}
4947
<td scope="col">
5048
{% if r %}{{ r }}{% endif %}
@@ -64,11 +62,11 @@ <h1>Leaderboard</h1>
6462
const resultsTable = new DataTable("#results", {
6563
order: [
6664
// Apply reverse chronological ordering by default
67-
[1, "desc"]
65+
[0, "desc"]
6866
],
6967
columnDefs: [
7068
{
71-
targets: 1,
69+
targets: 0,
7270
render: (data) => {
7371
return dayjs(data).fromNow();
7472
}

frx_challenges/web/templates/submission/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>My Submissions</h1>
3030
<div class="container py-2">
3131
<div class="row py-2">
3232
<div class="table-responsive">
33-
<table id="results" class="table table-striped">
33+
<table id="results" class="table hover">
3434
<thead>
3535
<tr>
3636
<th scope="col">Name</th>

0 commit comments

Comments
 (0)