/
match_detail.html
179 lines (152 loc) · 9.28 KB
/
match_detail.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{% extends "base.html" %}
{% load static %}
{% block head %}
<title>Match details - {{ SITE_NAME }}</title>
{% endblock %}
{% block body %}
<div class="container page">
<div class="col-xs-12">
<div class="row">
<div class="panel">
<div class="panel-body">
{% if not match.disable_userreports %}
<a href="{% url 'matches:report' pk=match.id %}"><h2>Submit your match report here.</h2></a>
{% endif %}
<div class="col-xs-12 banner-head bot20">
<div class="row">
<div class="col-xs-12 col-sm-4">
<img style="width: auto" src="{% static 'images/game-placeholder.jpg' %}"/>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-8 center">
<br>
<!--<h2><b>COMPETITION NAME HERE</b></h2>-->
<h3 style="font-weight:200;">{{ match.platform.name }}</h3>
<h3 style="font-weight:200;">{{ match.game.name }}</h3><br/>
<h3 style="font-weight:200;">{% if match.teamformat == 0 %}
1v1
{% elif match.teamformat == 1 %}
2v2
{% elif match.teamformat == 2 %}
3v3
{% elif match.teamformat == 3 %}
4v4
{% elif match.teamformat == 4 %}
5v5
{% elif match.teamformat == 5 %}
6v6
{% endif %}</h3>
<br>
<h3 style="font-weight:200;">{% if match.bestof == 1 %}
Best of 1
{% elif match.bestof == 2 %}
Best of 2
{% elif match.bestof == 3 %}
Best of 3
{% elif match.bestof == 4 %}
Best of 4
{% elif match.bestof == 5 %}
Best of 5
{% endif %}</h3>
<br>
<h3>{{ match.info }}</h3><br>
<h3>Maps:{% if match.maps.count == 0 %}N/a
{% else %}{% for x in match.maps.all %}<br>#{{ forloop.counter }} {{ x.name }}
{% endfor %}{% endif %}</h3>
</div>
</div>
</div>
{% if not match.bye_1 and not match.bye_2 %}
<div class="col-xs-12 align-self-center bot20">
<div class="col-xs-4 center">
<img style="width: 50%" src="{% static 'images/gamepad-solid.svg' %}"/><br>
<a href="{% url 'teams:detail' pk=match.awayteam.id %}">{{ match.awayteam }} -
{% if match.team2reported %}
<i class="fa fa-check" style="color:green"></i> Reported{% else %}
<i class="fa fa-times" style="color:red"></i> No report submitted{% endif %}
</a>
</div>
<div class="col-xs-4 center">
<h1 style="font-weight:800;margin-top:40px;">
{% if match.winner_id == match.awayteam_id %}<span style="color:green;">
1{% else %}<span style="color:black;">0{% endif %}</span> vs
{% if match.winner_id == match.hometeam_id %}<span style="color:green;">
1{% else %}<span style="color:black;">0{% endif %}</span></h1>
</div>
<div class="col-xs-4 center">
<img style="width: 50%" src="{% static 'images/gamepad-solid.svg' %}"/><br>
<a href="{% url 'teams:detail' pk=match.hometeam.id %}">{{ match.hometeam }} -
{% if match.team1reported %}
<i class="fa fa-check" style="color:green"></i> Reported{% else %}
<i class="fa fa-times" style="color:red"></i> No report submitted{% endif %}
</a>
</div>
</div>
<div class="col-xs-12 align-self-center bot20">
<div class="row bot20">
<div class="col-md-6">
<table class="table table-hover">
<thead>
<tr>
<th>USERNAME</th>
<th>TEAM</th>
<th>Profile</th>
</tr>
</thead>
<tbody>
{% for aplayer in aplayers %}
<tr>
<td valign="middle"><img
src="{% static 'images/gamepad-solid.svg' %}"
width="30" height="30">
<b>{{ aplayer.user }}</b></td>
<td valign="middle">{{ match.awayteam.name }}</td>
<td valign="middle"><span class="highlight"><b><a
href="{% url 'profiles:profile' urlusername=aplayer.user %}">Here</a></b></span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="col-md-6">
<table class="table table-hover">
<thead>
<tr>
<th>USERNAME</th>
<th>TEAM</th>
<th>Profile</th>
</tr>
</thead>
<tbody>
{% for hplayer in hplayers %}
<tr>
<td valign="middle"><img
src="{% static 'binge/images/avatar.jpg' %}"
width="30" height="30">
<b>{{ hplayer.user }}</b></td>
<td valign="middle">{{ match.hometeam.name }}</td>
<td valign="middle"><span class="highlight"><b><a
href="{% url 'profiles:profile' urlusername=hplayer.user %}">Here</a></b></span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endif %}
{% if match.bye_1 %}
<h2>BYE MATCH with Team {{ match.hometeam }}</h2>
{% endif %}
{% if match.bye_2 %}
<h2>BYE</h2>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}