name first run number 1 instead of 0 (#1993)
This commit is contained in:
parent
66ba73095c
commit
61609d3fe1
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue