]> git.openstreetmap.org Git - rails.git/commitdiff
Don't render the user menu for users without ids, closed #68
authorAaron Lidman <aaronlidman@gmail.com>
Fri, 15 Nov 2013 23:48:11 +0000 (15:48 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Fri, 15 Nov 2013 23:48:43 +0000 (15:48 -0800)
app/views/layouts/_header.html.erb

index dbb9966b60997c83b57f285c64a2e6e96e592098..efe9efdf8426dfdcb9ef6d1ba56a0890c667d2d5 100644 (file)
@@ -49,7 +49,7 @@
         </ul>
       </li>
     </ul>
-    <% if @user %>
+    <% if @user && @user.id %>
       <div class='dropdown user-menu logged-in'>
         <a class='dropdown-toggle' data-toggle='dropdown' href="#">
           <%= user_thumbnail_tiny(@user, :size => 25, :width => 25, :height => 25)