Skip to content

Instantly share code, notes, and snippets.

@tervay
Created March 23, 2019 00:09
Show Gist options
  • Select an option

  • Save tervay/65b855cd04d2965fbca688adc2e3e5b9 to your computer and use it in GitHub Desktop.

Select an option

Save tervay/65b855cd04d2965fbca688adc2e3e5b9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SLFF 2019 Leaderboard</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<style>
.bold-cycle {
font-weight: bold;
}
body {
font-family: 'Roboto';
}
</style>
<style>
</style>
</head>
<body>
<div class="container-fluid">
<table class="table table-bordered table-hover table-sm">
<thead>
<tr>
{% for header in headers %}
<th>{{ header }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in rows %}
<tr>
<!--{% for element in row %}-->
<!--{% if loop.index >= 5 %}-->
<!--<td class="{{ loop.cycle('', 'bold-cycle') }} text-right">{{ element }}</td>-->
<!--{% else %}-->
<!--<td class="{{ loop.cycle('', 'bold-cycle') }}">{{ element }}</td>-->
<!--{% endif %}-->
<!--{% endfor %}-->
<!--Key-->
{% if loop.index >= 992 %}
<td><a href="https://www.thebluealliance.com/events/{{ row.0 }}">{{ row.0 }}</a></td>
{% else %}
<td><a href="https://www.thebluealliance.com/event/{{ row.0 }}">{{ row.0 }}</a></td>
{% endif %}
<!--Name-->
<td class="bold-cycle">{{ row.1 }}</td>
<!--Tier-->
<td>{{ row.2 }}</td>
<!--SLFF Team-->
<td class="bold-cycle">{{ row.3 }}</td>
<!--Total points-->
<td>{{ row.4 }}</td>
<!--Team 1-->
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.5 }}">{{ row.5 }}</a></td>
<td>{{ row.6 }}</td>
<!--Team 2-->
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.7 }}">{{ row.7 }}</a></td>
<td>{{ row.8 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.9 }}">{{ row.9 }}</a></td>
<td>{{ row.10 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.11 }}">{{ row.11 }}</a></td>
<td>{{ row.12 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.13 }}">{{ row.13 }}</a></td>
<td>{{ row.14 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.15 }}">{{ row.15 }}</a></td>
<td>{{ row.16 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.17 }}">{{ row.17 }}</a></td>
<td>{{ row.18 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.19 }}">{{ row.19 }}</a></td>
<td>{{ row.20 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.21 }}">{{ row.21 }}</a></td>
<td>{{ row.22 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.23 }}">{{ row.23 }}</a></td>
<td>{{ row.24 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.25 }}">{{ row.25 }}</a></td>
<td>{{ row.26 }}</td>
<td class="bold-cycle"><a href="https://www.thebluealliance.com/team/{{ row.27 }}">{{ row.27 }}</a></td>
<td>{{ row.28 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment