From 170b8d40a9e9bd53aa6cac8110a9899fa378d672 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Wed, 24 Apr 2024 18:37:45 +0200 Subject: [PATCH] Add more data to filetype j2 template --- marda_registry/templates/filetype.html | 40 +++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/marda_registry/templates/filetype.html b/marda_registry/templates/filetype.html index 3e34c75..631d983 100644 --- a/marda_registry/templates/filetype.html +++ b/marda_registry/templates/filetype.html @@ -6,7 +6,7 @@

File Type not found

Sorry, the file type you requested was not found.

{% endif %} -

{{ ft['id'] }} ({{ ft['name'] }})

+

{{ ft['id'] }} ({{ ft['name'] }}) [JSON]

{{ ft['description'] }}

@@ -23,5 +23,43 @@

Registered extractors:

{% endif %} +{% if ft['associated_file_extensions'] | length != 0 %} +

Associated file extensions:

+ +{% endif %} + +{% if ft['associated_software'] | length != 0 %} +

Associated software:

+ +{% endif %} + + +{% if ft['associated_vendors'] | length != 0 %} +

Associated vendors:

+ +{% endif %} + +{% if ft['subject'] | length != 0 %} +

Subjects:

+ +{% endif %} + +

Return to the list of file types

{% endblock %}