Add more hyperlink to player pages

This commit is contained in:
Maximilian Keßler 2023-12-10 19:51:21 +01:00
parent b1d0ae5dfd
commit 271430e901
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -51,7 +51,9 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title mb-2">{{ data.title }}</h5> <h5 class="card-title mb-2">{{ data.title }}</h5>
<p class="leaderboard-category">({{data.category}})</p> <p class="leaderboard-category">({{data.category}})</p>
<p class="mb-0 player-name">{{ data.entry.player_name }}</p> <p class="mb-0 player-name">
<a href="/player/{{data.entry.player_name_encoded}}">{{ data.entry.player_name }}</a>
</p>
<p class="mt-1 alt-name">{{ data.entry.user_accounts }}</p> <p class="mt-1 alt-name">{{ data.entry.user_accounts }}</p>
<p class="score-large">{{ data.entry.score }}</p> <p class="score-large">{{ data.entry.score }}</p>
</div> </div>
@ -81,7 +83,9 @@
{% for entry in leaderboard[rating_type] %} {% for entry in leaderboard[rating_type] %}
<tr> <tr>
<td> <td>
<div class="player-name">{{ entry.player_name }}</div> <div class="player-name">
<a href="/player/{{entry.player_name_encoded}}">{{ entry.player_name }}</a>
</div>
<div class="alt-name">{{ entry.user_accounts }}</div> <div class="alt-name">{{ entry.user_accounts }}</div>
</td> </td>
<td class="score">{{ entry.score }}</td> <td class="score">{{ entry.score }}</td>