mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
link to exact build commit hash in public index footer
This commit is contained in:
parent
ceabc4e12e
commit
c26d9dc1bb
2 changed files with 7 additions and 2 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue