Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merge bianca

  • Loading branch information...
commit 52eba322ebca4ac69e279e36410d301246930e8d 1 parent 7eaeddc
Jon Rose ghostandthemachine authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/views/navbar.haml
8 lib/views/navbar.haml
View
@@ -13,7 +13,13 @@
%img.profile_pic.pull-left{:src => gravatar_for(current_user,30)}
%li.dropdown
%a{"data-toggle" => "dropdown", :href => "#"}
- %span= current_user.display_name.size > 0 ? current_user.display_name : "Me"
+ - if current_user.display_name.nil?
+ %span= "Me"
+ - else
+ - if current_user.display_name.length > 0
+ %span= current_user.display_name
+ - else
+ %span= "Me"
%i.icon-chevron-down
%ul.dropdown-menu
%li
Please sign in to comment.
Something went wrong with that request. Please try again.