Update redirect paths and enhance user context in templates and views
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<a href="/" class="hover:text-golden-ale transition">Home</a>
|
||||
<a href="/teams" class="hover:text-golden-ale transition">Teams</a>
|
||||
<a href="/leaderboard" class="hover:text-golden-ale transition">Leaderboard</a>
|
||||
<a href="/scan" class="hover:text-golden-ale transition">Scan QR Code</a>
|
||||
<a href="/dashboard/scan" class="hover:text-golden-ale transition">Scan QR Code</a>
|
||||
|
||||
{% if user %}
|
||||
<div class="relative dropdown">
|
||||
@@ -114,7 +114,7 @@
|
||||
<a href="/" class="hover:text-golden-ale transition py-2">Home</a>
|
||||
<a href="/teams" class="hover:text-golden-ale transition py-2">Teams</a>
|
||||
<a href="/leaderboard" class="hover:text-golden-ale transition py-2">Leaderboard</a>
|
||||
<a href="/scan" class="hover:text-golden-ale transition py-2">Scan QR Code</a>
|
||||
<a href="/dashboard/scan" class="hover:text-golden-ale transition py-2">Scan QR Code</a>
|
||||
{% if user %}
|
||||
<a href="/profile" class="hover:text-golden-ale transition py-2">Profile</a>
|
||||
<a href="/dashboard" class="hover:text-golden-ale transition py-2">Dashboard</a>
|
||||
@@ -154,7 +154,7 @@
|
||||
<li><a href="/" class="hover:text-golden-ale transition">Home</a></li>
|
||||
<li><a href="/teams" class="hover:text-golden-ale transition">Teams</a></li>
|
||||
<li><a href="/leaderboard" class="hover:text-golden-ale transition">Leaderboard</a></li>
|
||||
<li><a href="/scan" class="hover:text-golden-ale transition">Scan QR Code</a></li>
|
||||
<li><a href="/dashboard/scan" class="hover:text-golden-ale transition">Scan QR Code</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<!-- Next Steps -->
|
||||
<div class="bg-white rounded-lg shadow-md p-6">
|
||||
<h3 class="text-xl font-semibold text-irish-green mb-4">What's Next?</h3>
|
||||
<div class="space-y-4">
|
||||
<div class="space-y-3 mt-8">
|
||||
<a href="/teams/{{ team.id }}" class="flex items-start hover:bg-gray-50 p-3 rounded-md cursor-pointer">
|
||||
<div class="bg-cream-white p-2 rounded-full mr-3">
|
||||
<i class="fas fa-users text-irish-green"></i>
|
||||
@@ -71,13 +71,13 @@
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="/scan" class="flex items-start hover:bg-gray-50 p-3 rounded-md cursor-pointer">
|
||||
<div class="bg-cream-white p-2 rounded-full mr-3">
|
||||
<i class="fas fa-qrcode text-irish-green"></i>
|
||||
<a href="/dashboard/scan" class="flex items-start hover:bg-gray-50 p-3 rounded-md cursor-pointer">
|
||||
<div class="bg-green-100 p-2 rounded-full mr-3">
|
||||
<i class="fas fa-qrcode text-green-600"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="font-medium">Scan Another QR Code</p>
|
||||
<p class="text-gray-600 text-sm">Got more codes to redeem? Scan them now.</p>
|
||||
<p class="text-sm text-gray-600">Find more QR codes to redeem</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user