Show who added the link in admin view

This commit is contained in:
Mouse Reeve 2022-01-10 13:33:22 -08:00
parent 34f375c53c
commit 651d468b13

View file

@ -61,6 +61,7 @@
<table class="is-striped"> <table class="is-striped">
<tr> <tr>
<th>{% trans "URL" %}</th> <th>{% trans "URL" %}</th>
<th>{% trans "Added by" %}</th>
<th>{% trans "Filetype" %}</th> <th>{% trans "Filetype" %}</th>
<th>{% trans "Book" %}</th> <th>{% trans "Book" %}</th>
</tr> </tr>
@ -69,6 +70,9 @@
<td> <td>
<a href="{{ link.url }}" target="_blank" rel="noopener">{{ link.url }}</a> <a href="{{ link.url }}" target="_blank" rel="noopener">{{ link.url }}</a>
</td> </td>
<td>
<a href="{% url 'settings-user' link.added_by.id %}">@{{ link.added_by|username }}</a>
</td>
<td> <td>
{% if link.filelink.filetype %} {% if link.filelink.filetype %}
{{ link.filelink.filetype }} {{ link.filelink.filetype }}