% @title = "Search results for \"#{h @params["query"]}\"" %>
<% unless @title_results.empty? %>
<%= @title_results.length %> page(s) containing search string in the page name:
<% for page in @title_results %>
-
<%= link_to page.plain_name, :web => @web.address, :action => 'show', :id => page.name %>
<% end %>
<% end %>
<% unless @results.empty? %>
<%= @results.length %> page(s) containing search string in the page text:
<% for page in @results %>
-
<%= link_to page.plain_name, :web => @web.address, :action => 'show', :id => page.name %>
<% end %>
<% end %>
<% if (@results + @title_results).empty? %>
No pages contain "<%= h @params["query"] %>"
Perhaps you should try expanding your query. Remember that Instiki searches for entire
phrases, so if you search for "all that jazz" it will not match pages that contain these
words in separation—only as a sentence fragment.
If you're a high-tech computer wizard, you might even want try constructing a Ruby regular
expression. That's actually what Instiki uses, so go right ahead and flex your
"[a-z]*Leet?RegExpSkill(s|z)"
<% end %>