0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 15:22:41 +00:00

Updated changelog

This commit is contained in:
Scott Tolksdorf
2016-05-14 16:05:57 -04:00
parent 56987e7b60
commit a1b52d79f9
4 changed files with 42 additions and 2 deletions

View File

@@ -90,8 +90,11 @@ module.exports = function(app){
return '<div class="phb print">' + Markdown(pageText) + '</div>';
}).join('\n');
var dialog = '';
if(req.query && req.query.dialog) dialog = 'onload="window.print()"';
var title = '<title>' + brew.title + '</title>';
var page = '<html><head>' + title + PHBStyle + '</head><body onload="window.print()">' + content +'</body></html>'
var page = `<html><head>${title} ${PHBStyle}</head><body ${dialog}>${content}</body></html>`
return res.send(page)
});