<% if @results.empty? %>
  	<span>There were no results for: <b><%=h @query %></b></span><br/>
  	 (search type: <%=h params[:search_type] %> )<br/><br/>
<% else %>
	<% if @results.length == 1 %>
		<span>There was <%=h@results.length%> result for: <b><%=h @query %></b></span><br/>
		 (search type: <%=h params[:search_type] %>)<br/><br/>
	<% else %>
		<span>There were <%=h@results.length%> results for: <b><%=h @query %></b></span><br/>
		 (search type: <%=h params[:search_type] %>)<br/><br/>
		
	<% end %>
	<% for result in @results %>
		<%=link_to(h(result.audio_file_name), song_path(result)) %><br />
	<% end %>
   
<% end %>
<br />
<%= will_paginate @results %>
<a href="javascript:history.back();">Back</a>


