Sha256: e92d354b95ce7fc291db371c7a7b89bde8a6a0df642430a893de149a8597f4e2
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
<% @title = @results.length > 0 ? "#{@results.length} pages contains \"#{@params["query"]}\"" : "No pages contains \"#{@query}\"" %><%= sub_template "top" %> <% if @results.length > 0 %> <ul> <% for page in @results %> <li><a href="../show/<%= page.name %>"><%= page.plain_name %></a><br /> <% idxs = page.content.scan(/.{0,30}#{@params["query"]}.{0,30}/im) idxs.each do |i| begin %> ...<%= i.to_s %>...<br /><% rescue Exception => e %><%= e.message %><% end end %> </li> <% end %> </ul> <% else %> <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 words in separation—only as a sentence fragment.</p> <p>If you're a high-tech computer wizard, you might even want try constructing a regular expression. That's actually what Instiki uses, so go right ahead and flex your "[a-z]*Leet?RegExpSkill(s|z)"</p> <% end %> <%= sub_template "bottom" %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Pimki-1.0.092 | app/views/wiki/search.rhtml |
Pimki-1.1.092 | app/views/wiki/search.rhtml |
Pimki-1.2.092 | app/views/wiki/search.rhtml |