mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 11:17:02 -04:00
remove unused template vars
This commit is contained in:
parent
2b4b6e5b3a
commit
0438924491
2 changed files with 3 additions and 7 deletions
|
@ -113,11 +113,6 @@ class SnapshotView(View):
|
||||||
link.title
|
link.title
|
||||||
or (link.base_url if link.is_archived else TITLE_LOADING_MSG)
|
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',
|
'extension': link.extension or 'html',
|
||||||
'tags': link.tags or 'untagged',
|
'tags': link.tags or 'untagged',
|
||||||
'size': printable_filesize(link.archive_size) if link.archive_size else 'pending',
|
'size': printable_filesize(link.archive_size) if link.archive_size else 'pending',
|
||||||
|
|
|
@ -386,7 +386,8 @@
|
||||||
<div class="external-links">
|
<div class="external-links">
|
||||||
↗️
|
↗️
|
||||||
<a href="https://web.archive.org/web/{{url}}" title="Search for a copy of the URL saved in Archive.org" target="_blank" rel="noreferrer">Archive.org</a> |
|
<a href="https://web.archive.org/web/{{url}}" title="Search for a copy of the URL saved in Archive.org" target="_blank" rel="noreferrer">Archive.org</a> |
|
||||||
<a href="https://archive.md/{{url}}" title="Search for a copy of the URL saved in Archive.today" target="_blank" rel="noreferrer">Archive.today</a>
|
<a href="https://archive.md/{{url}}" title="Search for a copy of the URL saved in Archive.today" target="_blank" rel="noreferrer">Archive.today</a> |
|
||||||
|
<a href="{{warc_path}}" title="Download the ArchiveBox-generated WARC file" target="_blank">WARC</a>
|
||||||
<!--<a href="https://ghostarchive.org/search?term={{url|urlencode}}" title="Search for a copy of the URL saved in GhostArchive.org" target="_blank" rel="noreferrer">More...</a>-->
|
<!--<a href="https://ghostarchive.org/search?term={{url|urlencode}}" title="Search for a copy of the URL saved in GhostArchive.org" target="_blank" rel="noreferrer">More...</a>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -412,7 +413,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<a href="./" target="preview">
|
<a href="./" target="preview">
|
||||||
<h4>WARC, Headers, JSON, etc.</h4>
|
<h4>Headers, JSON, etc.</h4>
|
||||||
</a>
|
</a>
|
||||||
<!--<a href="{{result.path}}" target="preview"><h4 class="card-title">{{result.name}}</h4></a>-->
|
<!--<a href="{{result.path}}" target="preview"><h4 class="card-title">{{result.name}}</h4></a>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue