Use urlfield

This commit is contained in:
Mouse Reeve
2021-12-15 12:40:31 -08:00
parent 1d6b200172
commit 4f576b77a0
7 changed files with 36 additions and 14 deletions

View File

@ -351,7 +351,10 @@
{% if book.file_links %}
<ul>
{% for link in book.file_links.all %}
<li><a href="{{ link.url }}">{{ link.name }}</a> ({{ link.filetype }})</li>
<li>
<a href="{{ link.url }}" rel="noopener" target="_blank" title="{{ link.url }}">{{ link.name }}</a>
({{ link.filetype }})
</li>
{% endfor %}
</ul>
{% endif %}