2009-09-07 23:02:36 +02:00
|
|
|
<%- @title = "Search results for \"#{h @query}\"" -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- unless @title_results.empty? -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<h2><%= @title_results.length %> page(s) containing search string in the page name:</h2>
|
|
|
|
<ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- for page in @title_results -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<li>
|
|
|
|
<%= link_to page.plain_name, :web => @web.address, :action => 'show', :id => page.name %>
|
|
|
|
</li>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- unless @results.empty? -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<h2> <%= @results.length %> page(s) containing search string in the page text:</h2>
|
|
|
|
<ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- for page in @results -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<li>
|
|
|
|
<%= link_to page.plain_name, :web => @web.address, :action => 'show', :id => page.name %>
|
|
|
|
</li>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if (@results + @title_results).empty? -%>
|
2009-09-07 23:02:36 +02:00
|
|
|
<h2>No pages contain "<%= h @query %>" </h2>
|
2007-01-22 14:43:50 +01:00
|
|
|
<p>
|
|
|
|
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
|
2007-02-19 00:27:36 +01:00
|
|
|
words in separation — only as a sentence fragment.
|
2007-01-22 14:43:50 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
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)"
|
|
|
|
</p>
|
2009-08-12 19:19:23 +02:00
|
|
|
<p>
|
2009-09-07 23:02:36 +02:00
|
|
|
<b>Create a new page, named:</b> "<span class='newWikiWord'><%= link_to h(@query), :web => @web.address, :action => 'new', :id => @query %></span>"
|
2009-08-12 19:19:23 +02:00
|
|
|
</p>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|