Edit links view

This commit is contained in:
Mouse Reeve
2022-01-12 09:52:26 -08:00
parent 2ca41a0b11
commit ebc451fdd2
8 changed files with 100 additions and 11 deletions

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% load utilities %}
<table class="is-striped">
<table class="is-striped is-fullwidth">
<tr>
<th>{% trans "URL" %}</th>
<th>{% trans "Added by" %}</th>
@ -9,7 +9,7 @@
<th>{% trans "Book" %}</th>
{% block additional_headers %}{% endblock %}
</tr>
{% for link in links%}
{% for link in links %}
<tr>
<td class="overflow-wrap-anywhere">
<a href="{{ link.url }}" target="_blank" rel="noopener">{{ link.url }}</a>
@ -24,13 +24,19 @@
</td>
<td>
{% if link.filelink.filetype %}
{% if link.filelink.book %}
{% with book=link.filelink.book %}
<a href="{{ book.local_path }}">{% include "snippets/book_titleby.html" with book=book %}</a>
{% endwith %}
{% endif %}
</td>
{% block additional_data %}{% endblock %}
</tr>
{% endfor %}
{% if not links %}
<tr>
<td colspan="7"><em>{% trans "No links available for this domain." %}</em></td>
</tr>
{% endif %}
</table>