From 39f2da71ed9fc529bfcbba5f39767d58e005f5ab Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Fri, 28 Apr 2017 09:56:10 +0200 Subject: [PATCH] include browser name in downloas filenames #1594 --- lib/plugins/html/templates/url/index.pug | 2 +- lib/plugins/html/templates/url/run.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/html/templates/url/index.pug b/lib/plugins/html/templates/url/index.pug index 6bb02f3211..0d4d1cb586 100644 --- a/lib/plugins/html/templates/url/index.pug +++ b/lib/plugins/html/templates/url/index.pug @@ -3,7 +3,7 @@ extends ./layout.pug block content - var d = pageInfo.data - var daTitle = daurlAlias ? daurlAlias : daurl - - var downloadName = (daTitle + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '') + - var downloadName = (daTitle + '-' + options.browser + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '') h1 Page summary h5.url diff --git a/lib/plugins/html/templates/url/run.pug b/lib/plugins/html/templates/url/run.pug index b1c999ec23..fd16cc6611 100644 --- a/lib/plugins/html/templates/url/run.pug +++ b/lib/plugins/html/templates/url/run.pug @@ -4,7 +4,7 @@ block content - var d = pageInfo.data - runNumber = Number(runIndex)+1 - var daTitle = daurlAlias ? daurlAlias : daurl - - var downloadName = (daTitle + '-' + runNumber + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '') + - var downloadName = (daTitle + '-' + runNumber + '-' + options.browser + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '') h1 Run #{runNumber} summary h5.url