Refine user menu CSS
[rails.git] / app / views / layouts / _user_menu.html.erb
index ba58f371d28497d3906f5baa0df52eb730fa486e..a2b09cc806e46ca9ee45a17ee1e1509b16840fde 100644 (file)
@@ -1,10 +1,11 @@
-<div class='dropdown' id='greeting'>
+<div class='dropdown'>
   <a class='dropdown-toggle' data-toggle='dropdown' href="#">
-    <%= render :partial => 'layouts/inbox' %>
-    <%= @user.display_name %>
+    <%= user_thumbnail_tiny(@user, :size => 20, :width => 20, :height => 20)
+    %><%= render :partial => 'layouts/inbox'
+    %><span class='username'><%= @user.display_name %></span>
     <b class="caret"></b>
   </a>
-  <ul class='dropdown-menu' role='menu' aria-labelledby='dLabel'>
+  <ul class='dropdown-menu'>
     <li>
       <%= link_to inbox_path(:display_name => @user.display_name) do %>
         <span class='count-number'><%= number_with_delimiter(@user.new_messages.size) %></span>