Make user names clickable to reach specific pages
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 45s

This commit is contained in:
2024-02-19 10:04:49 +01:00
parent d0c7ba242c
commit a5a57e16fa
3 changed files with 7 additions and 4 deletions

View File

@ -48,7 +48,7 @@
{% if activeuser is none %}
{% for user in users %}
<td class="text-center text-nowrap" style="min-width: 100px;">{{ user.name }}</td>
<td class="text-center text-nowrap" style="min-width: 100px;"><a href="/race/{{ user.name }}" class="link-dark">{{ user.name }}</a></td>
{% endfor %}
{% else %}
<td class="text-center text-nowrap" style="min-width: 100px;">{{ activeuser.name }}</td>

View File

@ -33,7 +33,12 @@
<div class="card mb-2 shadow-sm" style="width: 450px;">
<div class="card-body">
<h5 class="card-title">{{ user.name }}</h5>
{% if activeuser is not none %}
<h5 class="card-title">{{ user.name }}</h5>
{% else %}
<a href="/season/Christoph" class="link-dark"><h5 class="card-title">{{ user.name }}</h5></a>
{% endif %}
<form action="/guessseason/{{ user.name }}" method="post">
{# Hot Take #}