Skip to content

Commit

Permalink
Revert "Try autocoloring gold"
Browse files Browse the repository at this point in the history
This reverts commit 383f7ca.
  • Loading branch information
BrennanB committed Jul 22, 2024
1 parent 8ae64fa commit f9d406f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 51 deletions.
2 changes: 1 addition & 1 deletion home/templates/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="display-4 fw-normal">Second Robotics</h1>
<iframe
width="100%"
height="500"
src="https://www.youtube.com/embed/oO_-IQqZ4W0?si=MP_3xWl_c5XbQv3G"
src="https://www.youtube-nocookie.com/embed/videoseries?list=PL-CZUOdLrE16yF1WyGbqh2ft0QwtKoZdW"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
Expand Down
72 changes: 33 additions & 39 deletions ranked/templates/ranked/leaderboard.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{% extends 'home/base.html' %}
{% block content %}
{% load rank_filter %}
{% load color_rank_filters %}
{% extends 'home/base.html' %} {% block content %} {% load rank_filter %}

<div class="position-relative overflow-hidden text-center bg-primary">
<div class="p-lg-4 mx-auto">
Expand All @@ -11,43 +8,40 @@ <h1 style="color: white" class="display-4 fw-normal">
</div>
</div>

<table class="table table-dark table-striped table-hover table-sm" style="text-align: center">
<table
class="table table-dark table-striped table-hover table-sm"
style="text-align: center"
>
<thead>
<tr>
<th>#</th>
<th>Player</th>
<th>ELO</th>
<th>MMR</th>
<th>Rank</th>
<th># Played</th>
<th>Win %</th>
<th>Wins</th>
<th>Losses</th>
<th>Ties</th>
</tr>
<td>#</td>
<td>Player</td>
<td>ELO</td>
<td>MMR</td>
<td>Rank</td>
<td># Played</td>
<td>Win %</td>
<td>Wins</td>
<td>Losses</td>
<td>Ties</td>
</thead>
<tbody>
{% for player in players %}
{% with player.mmr|get_rank as rank %}
{% with rank|rank_css_class as rank_class %}
<tr>
<td>{{ forloop.counter }}</td>
<td>
<a href="/ranked/{{ leaderboard_code }}/{{ player.player.id }}">{{ player.player }}</a>
</td>
<td>{{ player.elo|floatformat:1 }}</td>
<td>{{ player.mmr|floatformat:1 }}</td>
<td class="{{ rank_class }}">{{ rank }}</td>
<td>{{ player.matches_played }}</td>
<td>{{ player.win_rate|floatformat:2 }}%</td>
<td>{{ player.matches_won }}</td>
<td>{{ player.matches_lost }}</td>
<td>{{ player.matches_drawn }}</td>
</tr>
{% endwith %}
{% endwith %}
{% endfor %}
</tbody>
{% for player in players %}
<tr>
<td>{{forloop.counter}}</td>
<td>
<a href="/ranked/{{leaderboard_code}}/{{player.player.id}}"
>{{player.player}}</a
>
</td>
<td>{{ player.elo|floatformat:1 }}</td>
<td>{{ player.mmr|floatformat:1 }}</td>
<td>{{player.mmr|get_rank}}</td>
<td>{{player.matches_played}}</td>
<td>{{ player.win_rate|floatformat:2 }}%</td>
<td>{{player.matches_won}}</td>
<td>{{player.matches_lost}}</td>
<td>{{player.matches_drawn}}</td>
</tr>
{% endfor %}
</table>

{% endblock %}
11 changes: 0 additions & 11 deletions ranked/templatetags/color_rank_filters.py

This file was deleted.

0 comments on commit f9d406f

Please sign in to comment.