From 57198b5cb45fb390b2fa75faff371d323de27dab Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 7 Apr 2015 18:51:44 -0500 Subject: Fix URL details page when checks don't have locations Signed-off-by: Dan McGee --- templates/mirrors/url_details_logs.html.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/mirrors/url_details_logs.html.jinja b/templates/mirrors/url_details_logs.html.jinja index 58f179d8..51f54931 100644 --- a/templates/mirrors/url_details_logs.html.jinja +++ b/templates/mirrors/url_details_logs.html.jinja @@ -14,8 +14,8 @@ {% for log in logs %} {{ log.check_time|date('Y-m-d H:i') }} - {{ country_flag(log.location.country) }}{{ log.location.country.name }} - {{ log.location.source_ip }} + {% if log.location %}{{ country_flag(log.location.country) }}{{ log.location.country.name }}{% else %}Unknown{% endif %} + {% if log.location %}{{ log.location.source_ip }}{% else %}Unknown{% endif %} {{ log.last_sync|date('Y-m-d H:i') }} {{ log.delay|duration }} {{ log.duration|floatvalue }} -- cgit v1.2.3-54-g00ecf