forked from Hanabi/hanabi-league
proper description for current streak
This commit is contained in:
parent
ef48441483
commit
dee13076e4
2 changed files with 3 additions and 3 deletions
|
@ -447,7 +447,7 @@ def render_leaderboard():
|
|||
|
||||
leaderboards = {
|
||||
'Player Rating': rating_lists,
|
||||
'Maximum Streak': streak_lists,
|
||||
'Maximum Streak (Current Streak)': streak_lists,
|
||||
}
|
||||
|
||||
env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates'))
|
||||
|
|
|
@ -73,11 +73,11 @@
|
|||
{% for category, leaderboard in leaderboards.items() %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<button class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#{{ category|lower|replace(' ', '-') }}">
|
||||
<button class="btn btn-link btn-block text-left" data-toggle="collapse" data-target="#{{ category|lower|replace(' ', '-')|replace('(', '-')|replace(')', '-') }}">
|
||||
{{ category }}
|
||||
</button>
|
||||
</div>
|
||||
<div id="{{ category|lower|replace(' ', '-') }}" class="collapse" data-parent="#leaderboards-{{rating_type}}-data">
|
||||
<div id="{{ category|lower|replace(' ', '-')|replace('(', '-')|replace(')', '-') }}" class="collapse" data-parent="#leaderboards-{{rating_type}}-data">
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
{% for entry in leaderboard[rating_type] %}
|
||||
|
|
Loading…
Reference in a new issue