Sha256: 3c844d1c4e7c5911eb161da4c48c09589eb69cb72704e572536cab1e5f2d7532
Contents?: true
Size: 1.92 KB
Versions: 5
Compression:
Stored size: 1.92 KB
Contents
<% num_results = @results.length + @bliki_results.length @title = num_results > 0 ? "#{num_results} page#{ 's' unless num_results == 1} contain#{ 's' if num_results == 1} \"#{@params["query"]}\"" : "No pages contains \"#{@query}\"" %> <%= sub_template "top" %> <% if @results.length > 0 %> <h3><%= @results.length %> Matching Page<%= 's' unless @results.length == 1 %>:</h3> <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> <% end %> <% if @bliki_results.length > 0 %> <h3><%= @bliki_results.length %> Matching Bliki Entr<%= @bliki_results.length == 1 ? 'y' : 'ies' %>:</h3> <ul> <% for entry in @bliki_results %> <li><a href="../bliki_revision/<%= entry.name %>?rev=<%= entry.revisions.size-1 %>"><%= entry.name %></a><br /> <% idxs = entry.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> <% end %> <% if @results.length == 0 && @bliki_results.length == 0 %> <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
5 entries across 5 versions & 1 rubygems