Only use the actual name that matched as the link, which helps to highlight it.

This commit is contained in:
Tom Hughes 2007-08-07 23:51:02 +00:00
parent eb6114617c
commit bb43a46bab
3 changed files with 24 additions and 7 deletions

View file

@ -5,7 +5,7 @@
<p class="search_results_entry">No results found</p>
<% else %>
<% source[:results].each do |result| %>
<p class="search_results_entry"><%= link_to_function result[:description], "setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})" %></p>
<p class="search_results_entry"><%= result_to_html(result) %></p>
<% end %>
<% end %>
<% else %>