Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Add more data to filetype j2 template
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Apr 24, 2024
1 parent 2a3af86 commit 170b8d4
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion marda_registry/templates/filetype.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>File Type not found</h1>
<p>Sorry, the file type you requested was not found.</p>
{% endif %}

<h2><span class="ft-id">{{ ft['id'] }}</span> <span class="ft-name">({{ ft['name'] }})</span></h2>
<h2><span class="ft-id">{{ ft['id'] }}</span> <span class="ft-name">({{ ft['name'] }}) [<a href="../api/filetypes/{{ ft['id'] }}">JSON</a>]</span></h2>

<div class="entry-description">
<p>{{ ft['description'] }}</p>
Expand All @@ -23,5 +23,43 @@ <h4>Registered extractors:</h4>
</ul>
{% endif %}

{% if ft['associated_file_extensions'] | length != 0 %}
<h4>Associated file extensions:</h4>
<ul>
{% for ext in ft['associated_file_extensions'] %}
<li>{{ ext }}</li>
{% endfor %}
</ul>
{% endif %}

{% if ft['associated_software'] | length != 0 %}
<h4>Associated software:</h4>
<ul>
{% for software in ft['associated_software'] %}
<li>{{ software }}</li>
{% endfor %}
</ul>
{% endif %}


{% if ft['associated_vendors'] | length != 0 %}
<h4>Associated vendors:</h4>
<ul>
{% for vendor in ft['associated_vendors'] %}
<li>{{ vendor }}</li>
{% endfor %}
</ul>
{% endif %}

{% if ft['subject'] | length != 0 %}
<h4>Subjects:</h4>
<ul>
{% for subject in ft['subject'] %}
<li>{{ subject }}</li>
{% endfor %}
</ul>
{% endif %}


<p><a class="ft" href="../filetypes">Return to the list of file types</a></p>
{% endblock %}

0 comments on commit 170b8d4

Please sign in to comment.