Commit c37492b5dcd8188bc2f738e7a8994855926a2d83

Authored by gitlabhq
1 parent 876ebbd9

profile in header

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
app/views/layouts/_head_panel.html.erb
... ... @@ -10,12 +10,13 @@
10 10 </div>
11 11 <div class="right">
12 12 <%= link_to truncate(@project.name, :length => 20), project_path(@project), :class => "current button" if @project && !@project.new_record? %>
13   - <%= link_to 'Home', root_path, :class => current_page?(root_url) ? "current button" : "button" %>
14 13 <%= link_to 'Projects', projects_path, :class => current_page?(projects_path) ? "current button" : "button" %>
15   - <%= link_to 'Profile', profile_path, :class => (controller.controller_name == "keys") ? "current button" : "button" %>
16 14 <%= link_to('Admin', admin_root_path, :class => admin_namespace? ? "current button" : "button" ) if current_user.is_admin? %>
17   - <%#= link_to 'Profile', edit_user_registration_path, :class => "button" %>
18   - <%= link_to 'Logout', destroy_user_session_path, :class => "button", :method => :delete %>
  15 + <%= link_to profile_path, :class => ((controller.controller_name == "keys" || controller.controller_name == "profile") ? "current button" : "button") do %>
  16 + <%= image_tag gravatar_icon(current_user.email) %>
  17 + <%= current_user.name.split(" ").first %>
  18 + <% end %>
  19 + <%= link_to 'Logout', destroy_user_session_path, :style => "border-left: 1px solid #666;", :class => "button", :method => :delete %>
19 20 </div>
20 21 </div>
21 22 </div>
... ...