mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Add basic views
This commit is contained in:
12
view/index.html
Normal file
12
view/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
{{#content "title"}}
|
||||
Tasks
|
||||
{{/content}}
|
||||
|
||||
<h1>Tasks</h1>
|
||||
|
||||
<p>Here are some tasks:</p>
|
||||
|
||||
{{> tasks}}
|
||||
|
||||
<a href="/new">Create a task</a>
|
15
view/layout/default.html
Normal file
15
view/layout/default.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8"/>
|
||||
<title>{{block "title"}}</title>
|
||||
<meta name="description" content="{{block "description"}}"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{{{body}}}
|
||||
|
||||
</body>
|
||||
</html>
|
10
view/new.html
Normal file
10
view/new.html
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
{{#content "title"}}
|
||||
Create A Task
|
||||
{{/content}}
|
||||
|
||||
<a href="/">« all tasks</a>
|
||||
|
||||
<h1>Create A Task</h1>
|
||||
|
||||
<p><b>TODO: Add form here and create handler for it.</b></p>
|
10
view/partial/tasks.html
Normal file
10
view/partial/tasks.html
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
<ul>
|
||||
{{#tasks}}
|
||||
<li>
|
||||
<a href="/{{id}}">
|
||||
{{url}} ({{standard}})
|
||||
</a>
|
||||
</li>
|
||||
{{/tasks}}
|
||||
</ul>
|
12
view/task.html
Normal file
12
view/task.html
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
{{#content "title"}}
|
||||
Task: {{task.url}} ({{task.standard}})
|
||||
{{/content}}
|
||||
|
||||
<a href="/">« all tasks</a>
|
||||
|
||||
<h1>Task: {{task.url}} ({{task.standard}})</h1>
|
||||
|
||||
<p><b>TODO: Get and display results.</b></p>
|
||||
|
||||
{{> tasks}}
|
Reference in New Issue
Block a user