Update redirect paths and enhance user context in templates and views

This commit is contained in:
Christian Krakau-Louis
2025-04-14 05:54:21 +02:00
parent 690065f788
commit e952630295
8 changed files with 189 additions and 37 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block content %}
<div class="space-y-6">
<div class="max-w-4xl mx-auto space-y-6">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div>
<h1 class="text-2xl md:text-3xl font-garamond font-bold text-irish-green">League Leaderboard</h1>
@@ -82,7 +82,9 @@
{% for team in teams %}
<tr class="{% if team.rank == 1 %}bg-golden-ale bg-opacity-10{% endif %} hover:bg-gray-50">
<td class="py-3 px-4 font-bold">{{ team.rank }}</td>
<td class="py-3 px-4">{{ team.name }}</td>
<td class="py-3 px-4">
<a href="/teams/{{ team.id }}" class="text-irish-green hover:underline">{{ team.name }}</a>
</td>
<td class="py-3 px-4 text-right font-bold">{{ team.points }}</td>
<td class="py-3 px-4 text-center">
{% if team.change > 0 %}