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:
parent
0848d79f63
commit
4b33f17a04
2 changed files with 3 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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 }} ‐ {{ suffix.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<a href="{% url 'suffix_create' %}">Create new suffix</a>
|
||||
|
|
Loading…
Reference in a new issue