Removed crash if there was no latest status message

This commit is contained in:
Raphael 2010-07-29 14:38:46 -07:00
parent 3376057c33
commit a636d97837

View file

@ -50,8 +50,9 @@
= link_to current_user.real_name, root_path = link_to current_user.real_name, root_path
%span#latest_message %span#latest_message
= my_latest_message = my_latest_message
%span{:style => "font-size: small"} - unless @latest_status_message.nil?
= " - #{how_long_ago @latest_status_message}" %span{:style => "font-size: small"}
= " - #{how_long_ago @latest_status_message}"
%ul.nav %ul.nav
%li= link_to "home", root_path %li= link_to "home", root_path