1
0
Fork 0
mirror of synced 2024-06-02 10:34:43 +12:00

show archive dir size in link details page

This commit is contained in:
Nick Sweeting 2020-08-18 09:17:37 -04:00
parent 273588c75a
commit 430d51756b
2 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,7 @@ from typing import List, Optional, Iterator, Mapping
from .schema import Link
from ..system import atomic_write, copy_and_overwrite
from ..logging_util import printable_filesize
from ..util import (
enforce_types,
ts_to_date,
@ -140,6 +141,7 @@ def link_details_template(link: Link) -> str:
) 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',
'status': 'archived' if link.is_archived else 'not yet archived',
'status_color': 'success' if link.is_archived else 'danger',
'oldest_archive_date': ts_to_date(link.oldest_archive_date),

View file

@ -298,6 +298,10 @@
<h5>Errors</h5>
❌ $num_failures
</div>
<div class="info-chunk">
<h5>Size</h5>
$size
</div>
</div>
<div class="col-lg-4">
<div class="info-chunk">