From 043892449138994127110b4dc771355e1c815b36 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 11 May 2024 22:43:26 -0700 Subject: [PATCH] remove unused template vars --- archivebox/core/views.py | 5 ----- archivebox/templates/core/snapshot_live.html | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/archivebox/core/views.py b/archivebox/core/views.py index 1ec386ee..9522cc83 100644 --- a/archivebox/core/views.py +++ b/archivebox/core/views.py @@ -113,11 +113,6 @@ class SnapshotView(View): link.title or (link.base_url if link.is_archived else TITLE_LOADING_MSG) ), - 'url_str': htmlencode(urldecode(link.base_url)), - 'archive_url': urlencode( - wget_output_path(link) - or (link.domain if link.is_archived else '') - ) or 'about:blank', 'extension': link.extension or 'html', 'tags': link.tags or 'untagged', 'size': printable_filesize(link.archive_size) if link.archive_size else 'pending', diff --git a/archivebox/templates/core/snapshot_live.html b/archivebox/templates/core/snapshot_live.html index 08c608f9..05e393cd 100644 --- a/archivebox/templates/core/snapshot_live.html +++ b/archivebox/templates/core/snapshot_live.html @@ -386,7 +386,8 @@ @@ -412,7 +413,7 @@