1
1
{% extends "base.html" %}
2
- {% load i18n %}
2
+ {% load i18n static %}
3
3
4
4
{% block head_title %}{% if course.series %}{{ course.series }} - {% endif %}{{ course }} | {{ block.super }}{% endblock %}
5
5
16
16
17
17
</ h1 >
18
18
19
- {% if best_times %}
20
- < h2 >
21
- {% trans "Best Times" %}
22
- </ h2 >
19
+ < div class ="row ">
23
20
24
- {% include "includes/top_riders_table.html" with times=best_times %}
21
+ < h2 >
22
+ {% trans "Best Times" %}
23
+ </ h2 >
25
24
26
- {% else %}
27
- < p > {% trans "There are no times for this course." %}</ p >
28
- {% endif %}
25
+ < div class ="col-md-10 ">
26
+
27
+ {% if best_times %}
28
+ {% include "includes/top_riders_table.html" with times=best_times %}
29
+ {% else %}
30
+ < p > {% trans "There are no times for this course." %}</ p >
31
+ {% endif %}
32
+ </ div >
33
+ < div class ="col-md-2 ">
34
+ < div class ="row ">
29
35
36
+ {% if course.route_image %}
37
+ < div class ="col-6 col-md-12 ">
38
+ < h4 > Route</ h4 >
39
+ < a href ='{% get_media_prefix %}{{ course.route_image }} '>
40
+ < img class ="img-fluid img-thumbnail " src ="{% get_media_prefix %}{{ course.route_image }} " alt ="Route Image " />
41
+ </ a >
42
+ </ div >
43
+ {% endif %}
44
+
45
+ {% if course.layout_image %}
46
+ < div class ="col-6 col-md-12 ">
47
+ < h4 > Layout</ h4 >
48
+ < a href ='{% get_media_prefix %}{{ course.layout_image }} '>
49
+ < img class ="img-fluid img-thumbnail " src ="{% get_media_prefix %}{{ course.layout_image }} " alt ="Layout Image " />
50
+ </ a >
51
+ </ div >
52
+ {% endif %}
53
+ </ div >
54
+ </ div >
55
+ </ div >
30
56
31
57
{% if history %}
32
- < h2 > {% trans "History" %}</ h2 >
33
- < table class ="table table-striped table-sm mb-5 ">
34
- < thead >
35
- < th width ="20% "> {% trans "Date" %}</ th >
36
- < th width ="auto "> {% trans "Rider" %}</ th >
37
- < th width ="10% "> {% trans "Bike" %}</ th >
38
- < th scope ="col " width ="5% "> {% trans "Penalty" %}</ th >
39
- < th width ="10% " class ="text-end "> {% trans "Time" %}</ th >
40
- </ thead >
41
-
42
- {% for time in history %}
43
- < tr >
44
- < td > {{ time.run_date }}</ td >
45
- < td > {{ time.display_name }}</ td >
46
- < td > {{ time.bike }}</ td >
47
- < td class ="text-danger text-end "> {{ time.penalty }}</ td >
48
- < td class ="text-end "> {{ time.time }}</ td >
49
- </ tr >
50
- {% endfor %}
51
- </ table >
58
+ < div class ="row "> < div class ="col-12 ">
59
+ < h2 > {% trans "History" %}</ h2 >
60
+ < table class ="table table-striped table-sm mb-5 ">
61
+ < thead >
62
+ < th width ="20% "> {% trans "Date" %}</ th >
63
+ < th width ="auto "> {% trans "Rider" %}</ th >
64
+ < th width ="10% "> {% trans "Bike" %}</ th >
65
+ < th scope ="col " width ="5% "> {% trans "Penalty" %}</ th >
66
+ < th width ="10% " class ="text-end "> {% trans "Time" %}</ th >
67
+ </ thead >
68
+
69
+ {% for time in history %}
70
+ < tr >
71
+ < td > {{ time.run_date }}</ td >
72
+ < td > {{ time.display_name }}</ td >
73
+ < td > {{ time.bike }}</ td >
74
+ < td class ="text-danger text-end "> {{ time.penalty }}</ td >
75
+ < td class ="text-end "> {{ time.time }}</ td >
76
+ </ tr >
77
+ {% endfor %}
78
+ </ table >
79
+ </ div > </ div >
52
80
{% endif %}
53
81
54
82
{% endblock %}
0 commit comments