This commit is contained in:
Michel Roux 2019-12-12 22:29:55 +01:00
parent 75167d9e0b
commit 872dd984b3

View File

@ -23,9 +23,7 @@
{% for torrent in torrents %} {% for torrent in torrents %}
<tr class="{{ torrent.class }}"> <tr class="{{ torrent.class }}">
<td colspan="{{ '3' if torrent.self.is_light else '' }}">
{% if torrent.self.is_light %}
<td colspan="3">
<img class="favicon" <img class="favicon"
src="{{ url_for('static', filename='favicons/%s' % torrent.self.favicon) }}" alt=""> src="{{ url_for('static', filename='favicons/%s' % torrent.self.favicon) }}" alt="">
<i>&nbsp;</i> <i>&nbsp;</i>
@ -34,6 +32,8 @@
{{ torrent.name|boldify|safe }} {{ torrent.name|boldify|safe }}
</a> </a>
</td> </td>
{% if torrent.self.is_light %}
<td> <td>
{{ torrent.date }} {{ torrent.date }}
</td> </td>
@ -41,15 +41,6 @@
{{ torrent.type }} {{ torrent.type }}
</td> </td>
{% else %} {% else %}
<td>
<img class="favicon"
src="{{ url_for('static', filename='favicons/%s' % torrent.self.favicon) }}" alt="">
<i>&nbsp;</i>
{{ torrent.lang.value }}
<a href="{{ torrent.href }}" target="_blank">
{{ torrent.name|boldify|safe }}
</a>
</td>
<td> <td>
{{ torrent.link|safe }} {{ torrent.link|safe }}
{{ torrent.comment|safe }} {{ torrent.comment|safe }}