Fix accidentaly reversed condition
authorMagnus Hagander <magnus@hagander.net>
Fri, 12 Feb 2016 12:17:31 +0000 (13:17 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 12 Feb 2016 12:17:54 +0000 (13:17 +0100)
Blogs would display as error in list and warning on the details page,
and the other way around. Oops.

hamnadmin/hamnadmin/register/templates/edit.html

index 31d226b7360b1b39c4f8bb9fb497fe4463577725..ef9e2721938f7dae713d6b03f8343ddd15cc9b31 100644 (file)
@@ -8,7 +8,7 @@
 {%if blog.approved%}
 This blog is currently <span class="label label-success">approved</span>.
 {%if blog.recent_failures%}
-{%if blog.recent_failures > 5%}
+{%if blog.recent_failures <= 5%}
 This blog has generated <span class="label label-warning">sporadic errors</span> in the past 24 hours. See
   the <a href="#log">log</a> below for details.
 {%else%}