1
0
Fork 0
mirror of synced 2024-06-29 03:20:58 +12:00

link to exact build commit hash in public index footer

This commit is contained in:
Nick Sweeting 2024-01-03 20:09:04 -08:00
parent ceabc4e12e
commit c26d9dc1bb
2 changed files with 7 additions and 2 deletions

View file

@ -23,6 +23,7 @@ from ..config import (
PUBLIC_SNAPSHOTS, PUBLIC_SNAPSHOTS,
PUBLIC_ADD_VIEW, PUBLIC_ADD_VIEW,
VERSION, VERSION,
COMMIT_HASH,
FOOTER_INFO, FOOTER_INFO,
SNAPSHOTS_PER_PAGE, SNAPSHOTS_PER_PAGE,
) )
@ -217,6 +218,7 @@ class PublicIndexView(ListView):
return { return {
**super().get_context_data(**kwargs), **super().get_context_data(**kwargs),
'VERSION': VERSION, 'VERSION': VERSION,
'COMMIT_HASH': COMMIT_HASH,
'FOOTER_INFO': FOOTER_INFO, 'FOOTER_INFO': FOOTER_INFO,
} }

View file

@ -38,8 +38,11 @@
<br /> <br />
<center> <center>
<small> <small>
Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a> version Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a>
<a href="https://github.com/ArchiveBox/ArchiveBox/releases/tag/v{{VERSION}}" title="Releases">v{{VERSION}}</a>. <a href="https://github.com/ArchiveBox/ArchiveBox/releases/tag/v{{VERSION}}" title="Releases">v{{VERSION}}</a>
{% if COMMIT_HASH %}
(<a href="https://github.com/ArchiveBox/ArchiveBox/commit/{{COMMIT_HASH}}"><code>{{COMMIT_HASH|truncatechars:9}}</code></a>)
{% endif %}.
<br/><br/> <br/><br/>
{{FOOTER_INFO}} {{FOOTER_INFO}}
</small> </small>