show detail only after gamble
This commit is contained in:
16
src/templates/error.ejs
Normal file
16
src/templates/error.ejs
Normal 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>
|
||||
@ -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>
|
||||
<% }); %>
|
||||
|
||||
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user