Show namespace in search autocomplete

This commit is contained in:
Dmitriy Zaporozhets 2012-11-27 07:29:11 +03:00
parent 285743eee1
commit cc52eed981

View file

@ -96,7 +96,7 @@ module ApplicationHelper
end
def search_autocomplete_source
projects = current_user.projects.map{ |p| { label: p.name, url: project_path(p) } }
projects = current_user.projects.map{ |p| { label: p.name_with_namespace, url: project_path(p) } }
default_nav = [
{ label: "My Profile", url: profile_path },