diff --git a/public/css/site.css b/public/css/site.css index 04571bf..b8bcedb 100644 --- a/public/css/site.css +++ b/public/css/site.css @@ -147,6 +147,10 @@ ul { color:#cacaca; } +.other-tasks .ruled { + margin-bottom:1.5rem; +} + /* Task details page */ .badge-danger { diff --git a/route/task.js b/route/task.js index efc885b..18895f1 100644 --- a/route/task.js +++ b/route/task.js @@ -25,6 +25,7 @@ function route (app) { res.render('task', { task: task, results: results, + lastResult: results[0] || null, added: (typeof req.query.added !== 'undefined') }); }); diff --git a/view/index.html b/view/index.html index 83e3791..47f6dd1 100644 --- a/view/index.html +++ b/view/index.html @@ -1,6 +1,3 @@ - -{{#content "title"}} - Tasks -{{/content}} +{{#content "title"}}Tasks{{/content}} {{> tasks}} diff --git a/view/partial/results-table.html b/view/partial/results-table.html new file mode 100644 index 0000000..93ec048 --- /dev/null +++ b/view/partial/results-table.html @@ -0,0 +1,21 @@ +
Date | +Errors | +Warnings | +Notifications | +
---|---|---|---|
{{date-format date format="DD MMM YYYY"}} | +{{count.error}} | +{{count.warning}} | +{{count.notice}} | +
Task added!
+Your new url has been added.
+Here are the results:
+({{task.standard}})
+Here are the full results:
+ +{{/if}} + +No other urls
+ + + +{{type}} : {{code}} {{count}}
+pa11y has not been run against this URL yet so there are no results to show.
+To run pa11y for this url now click here
+