From 7e710484a352b1aa97d534d9acedb3f0ccc76a67 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 19 Feb 2012 19:01:04 +0000 Subject: [PATCH] Bugfixed past/future elections not showing properly --- views/index.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/index.haml b/views/index.haml index 77f5a2d..59f9ace 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,6 +1,6 @@ %h1 Sutton Elections -- if @future_elections +- if @future_elections.size > 0 %h2 Forthcoming elections @@ -16,7 +16,7 @@ %td= election.kind -- if @past_elections +- if @past_elections.size > 0 %h2 Past elections