From 413f0259a7e7641abaedfcbd3246fd423d7b4c43 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Wed, 15 Jun 2016 14:04:19 +0200 Subject: [PATCH] add version and link to the team in the footer (#1001) --- lib/plugins/html/htmlBuilder.js | 4 ++++ lib/plugins/html/templates/footer.pug | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/plugins/html/htmlBuilder.js b/lib/plugins/html/htmlBuilder.js index bac1fb13b..c103262fc 100644 --- a/lib/plugins/html/htmlBuilder.js +++ b/lib/plugins/html/htmlBuilder.js @@ -9,6 +9,7 @@ const fs = require('fs'), get = require('lodash.get'), set = require('lodash.set'), log = require('intel'), + packageInfo = require('../../../package'), renderer = require('./renderer'); Promise.promisifyAll(fs); @@ -113,6 +114,7 @@ class HTMLBuilder { pageDescription: '', showWaterfallSummary: locals.options.html.showWaterfallSummary, headers: this.summaryPages, + version: packageInfo.version, h: helpers }, locals); @@ -128,6 +130,7 @@ class HTMLBuilder { pageTitle: name + ' ' + url, pageDescription: '', headers: this.summaryPages, + version: packageInfo.version, h: helpers }, locals); @@ -141,6 +144,7 @@ class HTMLBuilder { pageTitle: name, pageDescription: '', headers: this.summaryPages, + version: packageInfo.version, h: helpers }, locals); diff --git a/lib/plugins/html/templates/footer.pug b/lib/plugins/html/templates/footer.pug index 841e5405a..b8cc8bcef 100644 --- a/lib/plugins/html/templates/footer.pug +++ b/lib/plugins/html/templates/footer.pug @@ -2,10 +2,7 @@ footer hr p a(href='https://www.sitespeed.io') sitespeed.io - | #{' by '} - a(href='https://twitter.com/soulislove') Peter Hedenskog - | #{', '} - a(href='https://twitter.com/tobiaslidskog') Tobias Lidskog - br + | #{' '} #{version} #{' by '} + a(href='https://www.sitespeed.io/aboutus/') the sitespeed.io team | #{' and '} a(href='https://github.com/sitespeedio/sitespeed.io/blob/master/CONTRIBUTORS.md') contributors