From 7599dbb79df040e273fd1eaa0e96de5d365ff5f5 Mon Sep 17 00:00:00 2001 From: Ben Muthalaly Date: Thu, 23 Nov 2023 03:04:31 -0600 Subject: [PATCH 01/12] Add notification about upgrade to admin page --- archivebox/core/urls.py | 3 +- archivebox/templates/admin/base.html | 93 ++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 1 deletion(-) diff --git a/archivebox/core/urls.py b/archivebox/core/urls.py index 87261ae2..90544dbd 100644 --- a/archivebox/core/urls.py +++ b/archivebox/core/urls.py @@ -8,6 +8,7 @@ from django.views.generic.base import RedirectView from core.views import HomepageView, SnapshotView, PublicIndexView, AddView, HealthCheckView +from config import VERSION # print('DEBUG', settings.DEBUG) @@ -30,7 +31,7 @@ urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), - path('admin/', admin.site.urls), + path('admin/', admin.site.urls, {'extra_context': {'VERSION': VERSION}}), path('health/', HealthCheckView.as_view(), name='healthcheck'), path('error/', lambda _: 1/0), diff --git a/archivebox/templates/admin/base.html b/archivebox/templates/admin/base.html index 0592fa0a..b0979db5 100644 --- a/archivebox/templates/admin/base.html +++ b/archivebox/templates/admin/base.html @@ -123,6 +123,99 @@