GITLAB

<%= link_to profile_path, :class => "pic" do %> <%= image_tag gravatar_icon(current_user.email) %> <% end %> <%= link_to profile_path, :class => "username" do %> <%= current_user.name %> <% end %> <%= link_to 'Logout', destroy_user_session_path, :class => "logout", :method => :delete %>
<% if current_user %> <%= javascript_tag do %> $(function() { $("#search" ).autocomplete({ source: <%= raw search_autocomplete_source %>, select: function(event, ui) { location.href = ui.item.url } }); }); <% end %> <% end %>