Add results to the task page

This commit is contained in:
Rowan Manning
2013-09-16 09:10:34 +01:00
parent 8d4f79128d
commit dbc6a0a5bc
3 changed files with 21 additions and 4 deletions

View File

@@ -9,8 +9,14 @@ function route (app) {
if (err) {
return next();
}
res.render('task', {
task: task
app.webservice.task(req.params.id).results({full: true}, function (err, results) {
if (err) {
return next(err);
}
res.render('task', {
task: task,
results: results
});
});
});
});