Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/locals.js
Original file line number Diff line number Diff line change
@@ -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
//
Expand Down
3 changes: 3 additions & 0 deletions app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ <h2 class="nhsuk-heading-l">
</li>
</ul>

<hr>

<p class="nhsuk-body-s">Built on <a href="https://prototype-kit.service-manual.nhs.uk/updates/">NHS prototype kit {{ prototypeKitVersion }}</a> and <a href="https://github.com/nhsuk/nhsuk-frontend/releases/">NHS.UK frontend {{ nhsukFrontendVersion }}</a> with <a href="https://github.com/nhsuk/nhsapp-frontend/releases">NHS app frontend {{ nhsappFrontendVersion }}</a>.</p>
</div>
</div>
{% endblock %}