Files
weirsoe-party-protocol/lobby/ui_views.py
Asger Geel Weirsoee cfffc9934c
All checks were successful
CI / test-and-quality (push) Successful in 1m25s
CI / test-and-quality (pull_request) Successful in 1m25s
feat(ui): add MVP host/player web screens
2026-02-27 22:26:55 +01:00

15 lines
418 B
Python

from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from fupogfakta.models import Category
@login_required
def host_screen(request):
categories = Category.objects.filter(is_active=True).order_by("name")
return render(request, "lobby/host_screen.html", {"categories": categories})
def player_screen(request):
return render(request, "lobby/player_screen.html")