diff --git a/app/locals.js b/app/locals.js index ffd0c9e..873beda 100644 --- a/app/locals.js +++ b/app/locals.js @@ -1,5 +1,10 @@ +const nhsappFrontendPkg = require('nhsapp-frontend/package.json') + module.exports = function(req, res, next) { + // Add the version of the NHS app frontend being used + res.locals.nhsappFrontendVersion = `v${nhsappFrontendPkg.version}` + // You can set any additional local variables here. // These will be made available to any views // diff --git a/app/views/index.html b/app/views/index.html index 6569d44..1ead121 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -56,6 +56,9 @@
Built on NHS prototype kit {{ prototypeKitVersion }} and NHS.UK frontend {{ nhsukFrontendVersion }} with NHS app frontend {{ nhsappFrontendVersion }}.
{% endblock %}