9d34ff96e2
proxy had no page footer at all — no copyright, no license link, no build/version info — unlike sso-manager-node, which already had one (now cleaned up in a matching change there). Bring the two in line: - Added a footer to bottom.ejs: theta42 logo/link, "© <year> theta42" with an MIT License link, a GitHub link, and build version/hash. - Moved the GitHub icon link out of the top nav (where it competed with actual navigation items) and into the new footer. - Added nodejs/utils/build_info.js (buildVersion/buildHash/buildYear, read once from package.json + git) and wired it into routes/render.js so every page has the values the footer needs. Mirrors the same helper added to sso-manager-node in the matching cleanup there. - Copied the theta42.svg logo into nodejs/public/img/ (previously only present in sso-manager-node) so both apps' footers render identically. Verified by rendering top+bottom with the real ejs package: no template errors, GitHub link present exactly once (in the footer, not the nav), logo and MIT License link present. npm test: 192/192 pass (unaffected — view-only + a new leaf utility module).
21 lines
832 B
Plaintext
Executable File
21 lines
832 B
Plaintext
Executable File
</div>
|
|
|
|
<footer class="py-2 bg-dark text-light mt-4">
|
|
<div class="container-fluid d-flex flex-wrap justify-content-between align-items-center small gap-2">
|
|
<span class="d-flex align-items-center gap-2">
|
|
<a href="https://theta42.com" target="_blank">
|
|
<img width="64" src="/static/img/theta42.svg"/>
|
|
</a>
|
|
© <%- buildYear %> theta42 ·
|
|
<a href="https://github.com/theta42/proxy/blob/master/LICENSE" target="_blank" class="text-light">MIT License</a>
|
|
</span>
|
|
<span class="d-flex align-items-center gap-3">
|
|
<a href="https://github.com/theta42/proxy" target="_blank" class="text-light text-decoration-none">
|
|
<i class="fa-brands fa-github"></i> GitHub
|
|
</a>
|
|
</span>
|
|
<span>v<%- buildVersion %> (<%- buildHash %>)</span>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html> |