mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
tweak icons
This commit is contained in:
parent
cafe35c595
commit
22fb9c2ad7
5 changed files with 20 additions and 12 deletions
|
@ -137,7 +137,7 @@ class SnapshotAdmin(admin.ModelAdmin):
|
|||
if archive_size > 52428800:
|
||||
size_txt = mark_safe(f'<b>{size_txt}</b>')
|
||||
else:
|
||||
size_txt = 'pending'
|
||||
size_txt = mark_safe('<span style="opacity: 0.3">...</span>')
|
||||
return format_html(
|
||||
'<a href="/{}" title="View all files">{}</a>',
|
||||
obj.archive_path,
|
||||
|
@ -146,7 +146,7 @@ class SnapshotAdmin(admin.ModelAdmin):
|
|||
|
||||
def url_str(self, obj):
|
||||
return format_html(
|
||||
'<a href="{}">{}</a>',
|
||||
'<a href="{}"><code>{}</code></a>',
|
||||
obj.url,
|
||||
obj.url.split('://www.', 1)[-1].split('://', 1)[-1][:64],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue