feat: "spa", but more like single entry-point

This commit is contained in:
2026-09-16 23:25:16 +02:00
parent 13b14abb12
commit 15590e5162
30 changed files with 252 additions and 277 deletions
+17 -11
View File
@@ -41,14 +41,15 @@ def submission_home(request: HttpRequest, event_path: str, game_path: str):
return render(
request,
"submissions_select.html",
"app.html",
{
"event": event,
"game": game,
"scopes_data": [
{"id": str(scope.id), "name": scope.name}
for scope in scopes.order_by("name")
],
"bootstrap": {
"gameName": game.name,
"scopes": [
{"id": str(scope.id), "name": scope.name}
for scope in scopes.order_by("name")
],
},
},
)
@@ -73,12 +74,17 @@ def submission_view(
):
raise Http404
game = scope.event_game.game
return render(
request,
"submissions.html",
"app.html",
{
"event": event,
"scope": scope,
"game": scope.event_game.game,
"bootstrap": {
"scopeName": scope.name,
"gameName": game.name,
"gamePath": game.path,
"gameImage": game.image or "",
"gameSteamId": str(game.steam_app_id or ""),
},
},
)