Allow users to report spam links
This commit is contained in:
36
bookwyrm/templates/settings/link_domains/link_table.html
Normal file
36
bookwyrm/templates/settings/link_domains/link_table.html
Normal file
@ -0,0 +1,36 @@
|
||||
{% load i18n %}
|
||||
{% load utilities %}
|
||||
|
||||
<table class="is-striped">
|
||||
<tr>
|
||||
<th>{% trans "URL" %}</th>
|
||||
<th>{% trans "Added by" %}</th>
|
||||
<th>{% trans "Filetype" %}</th>
|
||||
<th>{% trans "Book" %}</th>
|
||||
{% block additional_headers %}{% endblock %}
|
||||
</tr>
|
||||
{% for link in links%}
|
||||
<tr>
|
||||
<td class="overflow-wrap-anywhere">
|
||||
<a href="{{ link.url }}" target="_blank" rel="noopener">{{ link.url }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'settings-user' link.added_by.id %}">@{{ link.added_by|username }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{% if link.filelink.filetype %}
|
||||
{{ link.filelink.filetype }}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if link.filelink.filetype %}
|
||||
{% 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 %}
|
||||
</table>
|
Reference in New Issue
Block a user