Skip to content
Permalink
d1eaf3972e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
44 lines (40 sloc) 1013 Bytes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home Page</title>
<meta name="description" content="form to add new books">
<meta name="author" content="Mark Tyers">
<link href="{{host}}/style.css" type="text/css" rel="stylesheet" />
<script type="module" src="main.js"></script>
</head>
<body>
<header>
<h1>Home</h1>
{{#if authorised}}
<a href="/logout">Log out</a>
{{else}}
<a href="/login">Log in</a>
{{/if}}
</header>
{{#if msg}}
<aside>
<p class="msg">{{msg}}</p>
</aside>
{{/if}}
<main>
<p>Survey Name: {{record.name}}</p>
<p>Survey Description: {{record.description}}</p>
{{#if authorised}}
{{#if record.status}}
<p>Score: {{record.score}}</p>
{{else}}
<p>Score: You have yet to attempt the survey</p>
<p><a href="/survey">Click here to take it</a></p>
{{/if}}
{{else}}
<p>Score: You need to be logged in to see this</p>
{{/if}}
</main>
</body>
</html>