Sha256: 6f289432f998573cb141fd50e42f338bab902c77b6e0f3c5d9399a5c19b095b4

Contents?: true

Size: 725 Bytes

Versions: 5

Compression:

Stored size: 725 Bytes

Contents

<div id="search_results">
  <h1>Search Results <small>(for '<%= h @query %>')</small></h1>
  <p>Showing <%= @visible_results.size %> of <%= @results.size %> results</p>
  <ul>
    <% n = 1 %>
    <% @visible_results.each do |result| %>
      <% name = result.type == :method ? result.name(true).to_s : result.name.to_s %>
      <% path = name.gsub(/(#{Regexp.quote @query})/i, '<strong>\1</strong>') %>
      <li class="r<%= n %>">
        <a href="<%= url_for(result) %>" title="<%= result.path %>"><%= path %></a>
          <% if !result.namespace.root? %>
          <small>(<%= result.namespace.path %>)</small>
          <% end %>
      </li>
      <% n = n == 2 ? 1 : 2 %>
    <% end %>
  </ul>
</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
yard-0.9.18 lib/yard/server/templates/doc_server/search/html/search.erb
yard-0.9.17 lib/yard/server/templates/doc_server/search/html/search.erb
deg-yard-0.8.7.4 lib/yard/server/templates/doc_server/search/html/search.erb
deg-yard-0.8.7.3 lib/yard/server/templates/doc_server/search/html/search.erb
deg-yard-0.8.7.1 lib/yard/server/templates/doc_server/search/html/search.erb