Permalink
Browse files

errors and occurences have aproject as parent

  • Loading branch information...
1 parent e776705 commit cd0938e45473cf724ecff2e0c3c64f7919751c28 @fd fd committed Apr 29, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/helpers/application_helper.rb
View
4 app/helpers/application_helper.rb
@@ -155,6 +155,10 @@ def breadcrumb_root
@breadcrumb_root = { :text => 'Users', :link => admin_users_path }
elsif @project or @projects
@breadcrumb_root = { :text => 'Projects', :link => root_path }
+ elsif @error or @errors
+ @breadcrumb_root = { :text => 'Projects', :link => root_path }
+ elsif @occurence or @occurences
+ @breadcrumb_root = { :text => 'Projects', :link => root_path }
elsif @user_session
@breadcrumb_root = { :text => 'Login', :link => new_user_session_path }
else

0 comments on commit cd0938e

Please sign in to comment.