mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Add presenters for tasks and results
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var presentTask = require('../view/presenter/task');
|
||||
|
||||
module.exports = route;
|
||||
|
||||
// Route definition
|
||||
@@ -10,7 +12,7 @@ function route (app) {
|
||||
return next(err);
|
||||
}
|
||||
res.render('index', {
|
||||
tasks: tasks,
|
||||
tasks: tasks.map(presentTask),
|
||||
deleted: (typeof req.query.deleted !== 'undefined')
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user