File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
frx_challenges/web/templates Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ <h1>Leaderboard</h1>
26
26
< div class ="row py-2 ">
27
27
< div class ="col py-2 ">
28
28
< div class ="table-responsive ">
29
- < table id ="results " class ="table table-striped ">
29
+ < table id ="results " class ="table hover ">
30
30
< thead >
31
31
< tr >
32
- < th scope ="col "> ID</ th >
33
32
< th scope ="col "> Date created</ th >
34
33
< th scope ="col "> Submission Name</ th >
35
34
{% for md in metadata_display %}< th scope ="col "> {{ md }}</ th > {% endfor %}
@@ -39,12 +38,11 @@ <h1>Leaderboard</h1>
39
38
< tbody >
40
39
{% for result in results %}
41
40
< tr >
42
- < td > {{ result.submission.id }}</ td >
43
- < td > {{ result.submission.created_at|date:"c" }}</ td >
44
41
< td >
45
42
< a href ='{% url "submissions-detail" result.submission.id %} '> {{ result.submission.name }}</ a >
46
43
</ td >
47
44
{% for m in result.metadata %}< td > {{ m }}</ td > {% endfor %}
45
+ < td > {{ result.submission.created_at|date:"c" }}</ td >
48
46
{% for r in result.best_version.latest_evaluation.ordered_results %}
49
47
< td scope ="col ">
50
48
{% if r %}{{ r }}{% endif %}
@@ -64,11 +62,11 @@ <h1>Leaderboard</h1>
64
62
const resultsTable = new DataTable ( "#results" , {
65
63
order : [
66
64
// Apply reverse chronological ordering by default
67
- [ 1 , "desc" ]
65
+ [ 0 , "desc" ]
68
66
] ,
69
67
columnDefs : [
70
68
{
71
- targets : 1 ,
69
+ targets : 0 ,
72
70
render : ( data ) => {
73
71
return dayjs ( data ) . fromNow ( ) ;
74
72
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ <h1>My Submissions</h1>
30
30
< div class ="container py-2 ">
31
31
< div class ="row py-2 ">
32
32
< div class ="table-responsive ">
33
- < table id ="results " class ="table table-striped ">
33
+ < table id ="results " class ="table hover ">
34
34
< thead >
35
35
< tr >
36
36
< th scope ="col "> Name</ th >
You can’t perform that action at this time.
0 commit comments