From a05485f85c4435ba9c4e1edebfbd671b0032c9f3 Mon Sep 17 00:00:00 2001 From: TrAyZeN <1810leo@gmail.com> Date: Sat, 14 Nov 2020 17:44:06 +0100 Subject: [PATCH 1/2] Fix file icons order --- archivebox/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/core/utils.py b/archivebox/core/utils.py index 0bb8fceb..75c9c4e7 100644 --- a/archivebox/core/utils.py +++ b/archivebox/core/utils.py @@ -29,9 +29,9 @@ def get_icons(snapshot: Snapshot) -> str: '', *link_tuple(link, 'singlefile_path'), *link_tuple(link, 'wget_path')[:2], any((out_dir / link.domain).glob('*')), + *link_tuple(link, 'dom_path'), *link_tuple(link, 'pdf_path'), *link_tuple(link, 'screenshot_path'), - *link_tuple(link, 'dom_path'), *link_tuple(link, 'warc_path')[:2], any((out_dir / canon['warc_path']).glob('*.warc.gz')), *link_tuple(link, 'media_path')[:2], any((out_dir / canon['media_path']).glob('*')), *link_tuple(link, 'git_path')[:2], any((out_dir / canon['git_path']).glob('*')), From 88cc75a0457859a63b06854e353b053c730b3752 Mon Sep 17 00:00:00 2001 From: TrAyZeN <1810leo@gmail.com> Date: Sat, 14 Nov 2020 17:48:29 +0100 Subject: [PATCH 2/2] Change opacity of inexisting archive type on public view --- archivebox/themes/default/base.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/archivebox/themes/default/base.html b/archivebox/themes/default/base.html index ed7d1be9..61418673 100644 --- a/archivebox/themes/default/base.html +++ b/archivebox/themes/default/base.html @@ -223,6 +223,14 @@ .title-col a { color: black; } + + tr td a.exists-True { + opacity: 1; + } + tr td a.exists-False { + opacity: 0.1; + filter: grayscale(100%); + }