diff --git a/archivebox/core/views.py b/archivebox/core/views.py index 7cd8b104..d613b94b 100644 --- a/archivebox/core/views.py +++ b/archivebox/core/views.py @@ -19,7 +19,9 @@ from ..config import ( OUTPUT_DIR, PUBLIC_INDEX, PUBLIC_SNAPSHOTS, - PUBLIC_ADD_VIEW + PUBLIC_ADD_VIEW, + VERSION, + FOOTER_INFO, ) from main import add from ..util import base_url, ansi_to_html @@ -93,6 +95,13 @@ class PublicArchiveView(ListView): model = Snapshot paginate_by = 100 + def get_context_data(self, **kwargs): + return { + **super().get_context_data(**kwargs), + 'VERSION': VERSION, + 'FOOTER_INFO': FOOTER_INFO, + } + def get_queryset(self, **kwargs): qs = super().get_queryset(**kwargs) query = self.request.GET.get('q') diff --git a/archivebox/themes/default/base.html b/archivebox/themes/default/base.html index 84be962f..a70430ea 100644 --- a/archivebox/themes/default/base.html +++ b/archivebox/themes/default/base.html @@ -271,10 +271,9 @@
- Archive created using ArchiveBox   | -   - Download index as JSON -

+ Archive created using ArchiveBox version + v{{VERSION}}. +

{{FOOTER_INFO}}
diff --git a/archivebox/themes/legacy/main_index.html b/archivebox/themes/legacy/main_index.html index 0d8c9e6f..74e7bf65 100644 --- a/archivebox/themes/legacy/main_index.html +++ b/archivebox/themes/legacy/main_index.html @@ -204,7 +204,7 @@
Created using ArchiveBox - version v$version. + version v$version.

$footer_info