From 997df20ed0fe6e2e6a7e014c73eee0b893efb8e3 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Thu, 27 Mar 2014 14:16:51 +0100 Subject: [PATCH] Check for existence of the CFP before showing ratings --- app/views/admin/events/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/events/index.html.haml b/app/views/admin/events/index.html.haml index b64c391e..12d88653 100644 --- a/app/views/admin/events/index.html.haml +++ b/app/views/admin/events/index.html.haml @@ -13,7 +13,7 @@ %b ID %th %b Title - - if @conference.call_for_papers.rating != 0 + - unless @conference.call_for_papers.blank? or @conference.call_for_papers.rating > 0 %th %b Rating %th