name first run number 1 instead of 0 (#1993)

This commit is contained in:
Peter Hedenskog 2018-04-23 21:38:59 +02:00 committed by GitHub
parent 66ba73095c
commit 61609d3fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View File

@ -293,7 +293,7 @@ class HTMLBuilder {
pugs[run.id] = renderer.renderTemplate(run.id, data);
}
data.pugs = pugs;
return this._renderUrlRunPage(url, runIndex, data);
return this._renderUrlRunPage(url, parseInt(runIndex) + 1, data);
})
);
});
@ -322,7 +322,6 @@ class HTMLBuilder {
_renderUrlRunPage(url, name, locals) {
log.debug('Render URL run page %s', name);
return this.storageManager.writeHtmlForUrl(
renderer.renderTemplate('url/iteration/index', locals),
name + '.html',

View File

@ -18,7 +18,7 @@ block content
if (runNumber === value)
span.label.normal.info #{value}
else
a(href='./' + index + '.html') #{value}
a(href='./' + value + '.html') #{value}
if (value !== Object.keys(runPages).length)
|  -
|
@ -112,7 +112,7 @@ block content
if d.browsertime && d.browsertime.run && d.browsertime.run.har
section#waterfall-panel
include ../waterfall/index.pug
if options.browsertime.video
section#video-panel
include ../video/index.pug

View File

@ -15,7 +15,7 @@ block content
.large All runs: 
each val, index in runPages
- value = Number(index) + 1
a(href='./' + index + '.html') #{value}
a(href='./' + value + '.html') #{value}
if (value !== Object.keys(runPages).length)
|  -
|
@ -109,11 +109,11 @@ block content
if d.browsertime && d.browsertime.har
section#waterfall-panel
include ../waterfall/index.pug
if options.browsertime.video
section#video-panel
include ../video/index.pug
if d.coach && d.coach.pageSummary
section#coach-panel
include ../coach/index.pug