diff --git a/ref-test/admin/templates/admin/result-detail.html b/ref-test/admin/templates/admin/result-detail.html
index 6d4f69b..5d7827c 100644
--- a/ref-test/admin/templates/admin/result-detail.html
+++ b/ref-test/admin/templates/admin/result-detail.html
@@ -62,100 +62,106 @@
{% else %}
Incomplete
{% endif %}
-
-
-
-
Score
-
- {{ entry.results.score }}%
-
-
-
-
Grade
-
- {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}}
+ {% if results in entry %}
+
+
+
Score
+
+ {{ entry.results.score }}%
+
+
+
+
Grade
+
+ {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}}
+
+ {% else %}
+ No results to display.
+ {% endif %}
-
-
-
-
+ {% if not results in entry %}
+
+
+
+
+
+
+
+
+
+ Category
+ |
+
+ Score
+ |
+
+ Max
+ |
+
+
+
+ {% for tag, scores in entry.results.tags.items() %}
+
+
+ {{ tag }}
+ |
+
+ {{ scores.scored }}
+ |
+
+ {{scores.max}}
+ |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
-
-
-
- Category
- |
-
- Score
- |
-
- Max
- |
-
-
-
- {% for tag, scores in entry.results.tags.items() %}
+
-
- {{ tag }}
- |
-
- {{ scores.scored }}
- |
-
- {{scores.max}}
- |
+
+ Question
+ |
+
+ Answer
+ |
- {% endfor %}
-
+
+
+ {% for question, answer in entry.answers.items() %}
+
+
+ {{ question }}
+ |
+
+ {{ answer }}
+ {% if not correct[question] == answer %}
+ Incorrect
+ {% endif %}
+ |
+
+ {% endfor %}
+
-
-
-
-
-
-
-
-
- Question
- |
-
- Answer
- |
-
-
-
- {% for question, answer in entry.answers.items() %}
-
-
- {{ question }}
- |
-
- {{ answer }}
- {% if not correct[question] == answer %}
- Incorrect
- {% endif %}
- |
-
- {% endfor %}
-
-
-
-
-
+ {% endif %}