diff --git a/app/views/home/_hubs.html.haml b/app/views/home/_hubs.html.haml index dec5d6392b..3dbd1c775d 100644 --- a/app/views/home/_hubs.html.haml +++ b/app/views/home/_hubs.html.haml @@ -10,8 +10,14 @@ .row{bindonce: true} .small-12.columns - %h2 Did you mean? - = render "home/hubs_table", enterprises: "nameMatches" + .name-matches{"ng-show" => "nameMatches.length > 0"} + %h2 Did you mean? + = render "home/hubs_table", enterprises: "nameMatches" + + %h2 + Closest to + %span{"ng-show" => "nameMatches.length > 0"} {{ nameMatches[0].name }} + %span{"ng-hide" => "nameMatches.length > 0"} {{ query }} + \... - %h2 Closest to {{ query }}... = render "home/hubs_table", enterprises: "distanceMatches"