feat: enhance identifier and suffix display in lists

Updated the identifier list to display full identifier details and target URL. Improved the suffix list to show the prefix, suffix, and name together for better clarity. These changes aim to provide more comprehensive and user-friendly information in the HTML views.
This commit is contained in:
Kumi 2024-06-22 20:55:30 +02:00
parent 0848d79f63
commit 4b33f17a04
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,8 @@
{% for identifier in object_list %}
<li>
<a href="{% url 'identifier_detail' identifier.pk %}"
>{{ identifier }}</a
>{{ identifier.suffix.prefix.prefix }}.{{ identifier.suffix.suffix }}/
{{ identifier.identifier }} ({{ identifier.target_url }})</a
>
</li>
{% endfor %}

View file

@ -2,7 +2,7 @@
<h1>Suffixes</h1>
<ul>
{% for suffix in object_list %}
<li><a href="{% url 'suffix_detail' suffix.pk %}">{{ suffix.name }}</a></li>
<li><a href="{% url 'suffix_detail' suffix.pk %}">{{ suffix.prefix.prefix }}.{{ suffix.suffix }} &dash; {{ suffix.name }}</a></li>
{% endfor %}
</ul>
<a href="{% url 'suffix_create' %}">Create new suffix</a>