Commit 5dee2da7

mo khan <mo@mokhan.ca>
2014-09-07 02:36:17
display avatar in my section and tooltip to change avatar.
1 parent eafc38f
Changed files (1)
app
views
app/views/my/shared/_my_nav.html.erb
@@ -1,6 +1,9 @@
 <div class="well sidebar-nav">
+  <%= link_to edit_my_avatar_path(current_user), title: 'Change your avatar', data: { toggle: 'tooltip', placement: 'bottom', animation: 'true' }, class: 'tooltip-item' do %>
+    <%= avatar_for(current_user) %>
+  <% end %>
   <ul class="nav nav-list">
-    <li class="nav-header">My</li>
+    <li class="nav-header"><%= current_user.name %></li>
     <li class="<%= "active" if controller?("dashboard") %>"><%= link_to "Dashboard", my_root_path %></li>
     <!--
     <li id="cakes-tab" class="<%= "active" if controller?("cakes") %>"><%= link_to "Creations", my_root_path(anchor: 'cakes') %></li>