From 11cbb4df23b6240c8993da41a82b180a16059c7a Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 31 Jan 2018 16:26:59 -0800 Subject: [PATCH] refactored dl-file html --- app/pages/preview.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/pages/preview.js b/app/pages/preview.js index a6aa1bbf..84e54f25 100644 --- a/app/pages/preview.js +++ b/app/pages/preview.js @@ -9,24 +9,24 @@ module.exports = function(state, pageAction) { ? state.translate('downloadFileSize', { size: bytes(fileInfo.size) }) : ''; - const name = fileInfo.name + const title = fileInfo.name ? state.translate('downloadFileName', { filename: fileInfo.name }) - : ''; - const title = html` - ${name}`; + : state.translate('downloadFileTitle'); + const info = html` +
`; if (!pageAction) { - return title; + return info; } const div = html`
- ${title} - ${' ' + size} + ${title} + ${' ' + size}
${state.translate('downloadMessage')}
${state.translate('sendYourFilesLink')}
+ ${info}
`; return div;