Files
2022-08-14 12:54:45 +02:00

106 lines
3.7 KiB
HTML

<!doctype html>
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>Demo Analyzer</title>
</head>
<body>
<header class="page-header container">
<h1><a href="/">Demo Analyzer</a></h1>
</header>
<nav class="container"></nav>
<main class="container">
{% if team1 is defined and team2 is defined %}
<div class="panel panel-default" style="border-top:2px solid {{ color }}">
<div class="panel-heading" style="border-top:2px solid {{ color }}">
<h4>Match</h4>
</div>
<table class="list-group">
<tr class="list-group-item">
<th class="table-title">Map</th><th>{{ team1[0][1] }}</th>
</tr>
<tr class="list-group-item">
<th class="table-title">MatchID</th><th>{{ team1[0][0] }}</th>
</tr>
<tr class="list-group-item">
<th class="table-title">Winner</th><th>{{ winner }}</th>
</tr>
<tr class="list-group-item">
<th class="table-title"><a href="/{{ team1[0][0] }}/download">Download</th>
<th class="table-title"><a href="/{{ team1[0][0] }}/csv">CSV</th>
</tr>
</table>
</div>
<div class="panel panel-default" style="border-top:2px solid {{ color }}">
<div class="panel-heading" style="border-top:2px solid {{ color }}">
<h4>{{ team1[0][28]|default("Team1", true) }} - {{ team1[0][37] if team1[0][39] == 'T' else team1[0][38] }}</h4>
</div>
<table class="list-group">
<tr class="list-group-item">
<th class="table-title">Player</th>
<th class="table-title">Rating</th>
<th class="table-title">Kills (h)</th>
<th class="table-title">Deaths</th>
<th class="table-title">Assists</th>
<th class="table-title">Kast</th>
<th class="table-title">ADR</th>
<th class="table-title">Accuracy</th>
<th class="table-title">Trades</th>
<th class="table-title">Utility damages</th>
<th class="table-title">Flash time (avg)</th>
</tr>
{% for player in team1 %}
<tr class="list-group-item">
<th><a href="/player/{{ player[25] }}">{{ player[21] }}</a></th>
<th>{{ player[22] }}</th>
<th>{{ player[19] }} ({{ player[15] }})</th>
<th>{{ player[6] }}</th>
<th>{{ player[4] }}</th>
<th>{{ player[17] }}</th>
<th>{{ player[3] }}</th>
<th>{{ (player[2]*100)|int }} %</th>
<th>{{ player[35] }}</th>
<th>{{ player[36] }}</th>
<th>{{ (player[5] / player[8]) | round(2, 'common') }}s</th>
</tr>
{% endfor %}
</table>
</div>
<div class="panel panel-default" style="border-top:2px solid {{ color }}">
<div class="panel-heading" style="border-top:2px solid {{ color }}">
<h4>{{ team2[0][28]|default("Team2", true) }} - {{ team2[0][37] if team2[0][39] == 'T' else team2[0][38] }}</a></h4>
</div>
<table class="list-group">
<tr class="list-group-item">
<th class="table-title">Player</th>
<th class="table-title">Rating</th>
<th class="table-title">Kills (h)</th>
<th class="table-title">Deaths</th>
<th class="table-title">Assists</th>
<th class="table-title">Kast</th>
<th class="table-title">ADR</th>
<th class="table-title">Accuracy</th>
<th class="table-title">Trades</th>
<th class="table-title">Utility damages</th>
<th class="table-title">Flash time (avg)</th>
</tr>
{% for player in team2 %}
<tr class="list-group-item">
<th><a href="/player/{{ player[25] }}">{{ player[21] }}</a></th>
<th>{{ player[22] }}</th>
<th>{{ player[19] }} ({{ player[15] }})</th>
<th>{{ player[6] }}</th>
<th>{{ player[4] }}</th>
<th>{{ player[17] }}</th>
<th>{{ player[3] }}</th>
<th>{{ (player[2]*100)|int }} %</th>
<th>{{ player[35] }}</th>
<th>{{ player[36] }}</th>
<th>{{ (player[5] / player[8]) | round(2, 'common') }}s</th>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</main>
</body>