GITLAB

<%= link_to profile_path, :class => "pic" do %> <%= image_tag gravatar_icon(current_user.email) %> <% end %>
<% 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 %>