Initial content
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<div class="h2 bg-danger text-white text-center p-2 my-2">
|
||||
500 - Error
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<a class="btn btn-secondary" href="/">OK</a>
|
||||
</div>
|
||||
|
||||
{{#if (isDevelopment) }}
|
||||
<div class="h4 bg-danger text-white p-1 mt-2">Error Details</div>
|
||||
<div class="h5 p-1">Message: {{ error.message }}</div>
|
||||
<div class="font-monospace p-1">{{error.stack}}</div>
|
||||
{{/if }}
|
||||
@@ -0,0 +1,17 @@
|
||||
<table class="table table-sm table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th><th>Name</th><th>Description</th>
|
||||
<th>Price</th><th>Category</th><th>Supplier</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each products }}
|
||||
<tr>
|
||||
<td>{{id}}</td><td>{{name}}</td>
|
||||
<td>{{description}}</td><td>{{price}}</td>
|
||||
<td>{{category.name}}</td><td>{{supplier.name}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-dark text-white p-2">
|
||||
<span class="navbar-brand ml-2">SPORTS STORE</span>
|
||||
</div>
|
||||
{{{ body }}}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="h2 bg-danger text-white text-center p-2 my-2">
|
||||
404 - Not Found
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<a class="btn btn-secondary" href="/">OK</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user