summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-03-11 12:55:03 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-03-11 12:55:03 +0100
commit2ce07a807ab533107a2b1b8b05c062aec0afae66 (patch)
tree05a46b32d32c52614892636f4a9b44e14f61ee7c /templates
parent2e1e0373c4d678bd7300e8b9cdc12de83b1cefe5 (diff)
toplist: handle empty list result (fix division by zero)
Diffstat (limited to 'templates')
-rw-r--r--templates/toplist.html.ep7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/toplist.html.ep b/templates/toplist.html.ep
index daead42..f639e36 100644
--- a/templates/toplist.html.ep
+++ b/templates/toplist.html.ep
@@ -1,5 +1,11 @@
%= include 'topform';
+% if (@{$toplist} == 0) {
+<div class="error">
+Keine Daten mit diesen Parametern gefunden.
+</div>
+% }
+% else {
<div class="toplist">
<table>
<tr><th>Meldung</th><th>Anteil</th><th>Anzahl</th></tr>
@@ -13,3 +19,4 @@
% }
</table>
</div>
+% }