changeset 1200:fc5d582a25f9 live

Fix internal error on homepage!
author Chris Cannam
date Wed, 23 Jan 2013 11:25:09 +0000
parents bae194c52296
children 9ad0d37a49c9 d24c22d420eb
files app/views/layouts/base.html.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/layouts/base.html.erb	Wed Jan 23 11:10:20 2013 +0000
+++ b/app/views/layouts/base.html.erb	Wed Jan 23 11:25:09 2013 +0000
@@ -64,7 +64,7 @@
       <% unless page_header_title[1].empty? %>
         style="margin-top: 0px; "
       <% end %>  
-      <% if @project.name.length > 35 %>
+      <% if !@project.nil? and @project.name.length > 35 %>
         class="long-title"
       <% end %>
     ><% if display_main_menu?(@project) %>