openstreetmap-website/app/views/geocoder/results.html.erb
Saman Bemel-Benrud b02844b42f Cleanup followup
Tighter copy on node list for to decrease the chance of an ugly line
break (need better fix here so the line break is smoother). Just changed
also part of way %{related_ways} to part of way %{related_ways}. This
needs a better fix to make line breaks indent properly, but this should
at least help a little (issue #185).

Properly positioned 'nearby users' block on user page to be in the left
column (issue #184).

Removed deemphasized class from search results (issue #181) lighter
highlight yellow on changesets page.
2013-01-16 21:31:05 +00:00

26 lines
1 KiB
Text

<% if @results.empty? %>
<p class="search_results_entry inner12"><%= t 'geocoder.results.no_results' %></p>
<% else %>
<ul class='results-list'>
<% @results.each do |result| %>
<li><p class="inner12 search_results_entry"><%= result_to_html(result) %></p></li>
<% end %>
</ul>
<% if @more_params %>
<div id="search_more_<%= @more_params.hash %>">
<div class="inner12 search_results_entry">
<%= link_to t('geocoder.results.more_results'), "#", :class => "button" %>
</div>
<%= image_tag "searching.gif", :class => "search_searching" %>
</div>
<script type="text/javascript">
$("#search_more_<%= @more_params.hash %> .search_searching").hide();
$("#search_more_<%= @more_params.hash %> a").click(function () {
$("#search_more_<%= @more_params.hash %> .search_results_entry").hide();
$("#search_more_<%= @more_params.hash %> .search_searching").show();
$("#search_more_<%= @more_params.hash %>").load("<%= raw url_for(@more_params) %>");
});
</script>
<% end %>
<% end %>