]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
mirrors: Fix showing status when no check has been performed
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Oct 2017 12:01:51 +0000 (13:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Oct 2017 12:01:51 +0000 (13:01 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/mirrors/detail.html

index fffa71ca703891867b12e4971b491fd58f61cfe5..336ecb4f2d723e0cd5535ffac453bf1fca7abcde 100644 (file)
@@ -88,7 +88,7 @@
                                                        </tr>
                                                {% end %}
 
-                                               {% if mirror.last_check.last_sync_at %}
+                                               {% if mirror.last_check and mirror.last_check.last_sync_at %}
                                                        <tr>
                                                                <td>{{ _("Last sync") }}</td>
                                                                <td>