From 0e70d27093a25b3509f248410dddba61ec459053 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Aug 2008 16:43:43 +0200 Subject: [PATCH] fix page to handle empty database without errors. Fixes #757 Thanks lburton for the report --- app/views/feedlist/index.html.erb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/views/feedlist/index.html.erb b/app/views/feedlist/index.html.erb index 8beace82..7acc405c 100644 --- a/app/views/feedlist/index.html.erb +++ b/app/views/feedlist/index.html.erb @@ -64,10 +64,13 @@ Active projects with their actions
  • Feeds for incomplete actions in a specific context:

    + <% if @active_contexts.empty? && @hidden_contexts.empty? -%> + + <% else -%> + <% end -%>
  • Feeds for incomplete actions in a specific project:

    + <% if @active_projects.empty? && @hidden_projects.empty? -%> + + <% else -%> + <% end -%>