From 96db9d510a6891594271af7c284c46335b4d7502 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 26 Feb 2021 10:28:06 -0800 Subject: web: tweak display of files, webcapture, fileset --- python/fatcat_web/templates/file_view.html | 35 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'python/fatcat_web/templates/file_view.html') diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html index 02f47a91..608a2a0a 100644 --- a/python/fatcat_web/templates/file_view.html +++ b/python/fatcat_web/templates/file_view.html @@ -8,23 +8,23 @@
-

Releases

+

Associated Releases

{% if entity.releases != [] %} {{ entity_macros.release_list(entity.releases) }} {% else %}

- This file is not associated with any fatcat release. + This file is not associated with any release entity! This makes a is a stub entry in the catalog. {% endif %} -

URLs

+

Public Access URLs

{% if file.urls != None %} {{ entity_macros.url_list(file.urls) }} {% else %} -No known public URL, mirror, or archive for this file. +No known archives or mirrors of this file. {% endif %} -

Checksums

+

Data Integrity Checksums

{% if file.sha1 != None %} @@ -45,22 +45,23 @@ No known public URL, mirror, or archive for this file.
{% if file._es and file._es.best_url %} -Download File + {# TODO: this currently shows *any* file, though prefers archive.org #} + + View Archived File + {% else %} -No Download Available + No Public URL {% endif %} +
-{% if file.size != None %} -
-

Size  {{ file.size|filesizeformat }} +

+ {% if file.size != None %} + Size  {{ file.size|filesizeformat }}
+ {% endif %} + {% if file.mimetype != None %} + MIME Type  {{ file.mimetype }}
+ {% endif %}
-{% endif %} - -{% if file.mimetype != None %} -
-

File Type  {{ file.mimetype }} -

-{% endif %} {{ entity_macros.fatcat_bits(entity, "file", "", editgroup) }} -- cgit v1.2.3