show detail only after gamble

This commit is contained in:
2024-09-04 17:13:25 +02:00
parent 91d32f2f71
commit 7abc593186
5 changed files with 82 additions and 19 deletions

16
src/templates/error.ejs Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="/bootstrap.min.css" />
<script src="/bootstrap.bundle.min.js"></script>
<title>Index</title>
</head>
<body data-bs-theme="dark">
<a href="/">index</a>
Error: <%= error %>
</body>
</html>

View File

@ -15,11 +15,10 @@
<div class="row p-5">
<div class="list-group col-3">
<% people.forEach((person) => {%>
<a href='/person/<%= person.personId %>'
<a href='/gamble/<%= person.personId %>'
class="list-group-item list-group-item-action">
<div class="me-auto">
<span class="fw-bold"><%= person.name %></span>
<%= person.pointsTotal %>
</div>
</a>
<% }); %>

View File

@ -12,7 +12,6 @@
<body data-bs-theme="dark">
<a href="/">Index</a>
<a href="/gamble/<%= person.personId %>">gamble</a>
<div class="container">
<div class="row">