Skip to content

Commit

Permalink
Add format version and PRONOM ID to FPRule view
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Aug 22, 2024
1 parent af47a72 commit 5a4a2da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dashboard/src/fpr/templates/fpr/fprule/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
<dd>{{ fprule.uuid }}</dd>
<dt>{% trans "Purpose" %}</dt>
<dd>{{ fprule.get_purpose_display }} Rule</dd>
<dt>{% trans "Format" %}</dt>
<dd><a href="{% url 'fpr:formatversion_detail' fprule.format.format.slug fprule.format.slug %}">{{ fprule.format.description }}</a></dd>
<dt>{% trans "Format version" %}</dt>
{% spaceless %}
{% with version=fprule.format.version pronom_id=fprule.format.pronom_id %}
<dd><a href="{% url 'fpr:formatversion_detail' fprule.format.format.slug fprule.format.slug %}">{{ fprule.format.description }}{% if version or pronom_id %} ({% if version %}{% trans "version" %}: {{ version }}{% if pronom_id %}, {% endif %}{% endif %}{% if pronom_id %}{{ pronom_id }}{% endif %}){% endif %}</a></dd>
{% endwith %}
{% endspaceless %}
<dt>{% trans "Command" %}</dt>
<dd><a href="{% url 'fpr:fpcommand_detail' fprule.command.uuid %}">{{ fprule.command.description }}</a></dd>
<dt>{% trans "Stats" %}</dt>
Expand Down

0 comments on commit 5a4a2da

Please sign in to comment.