Sha256: 7cadf5a4dc0e3b53202bc406f2425131fa9add443fc2390069e84677e51556c1
Contents?: true
Size: 1.69 KB
Versions: 9
Compression:
Stored size: 1.69 KB
Contents
- if params[:q] - if params[:q].length > 0 %h2 = "Search for '#{params[:q]}'" - if @search_results.suggestion %p Did you mean %a{:href => "/search?q=#{@search_results.suggestion}"} = @search_results.suggestion %ul - @search_results.items.map {|i| i.object.feature["id"] }.uniq.each do |current_feature_id| - root_search_result = @search_results.items.find { |r| r.object.feature["id"] == current_feature_id } %li %a{:href => "/features/#{root_search_result.object.feature["id"]}"} = root_search_result.object.feature["name"] %p != highlighted_search_result_blurb root_search_result - if root_search_result.object.feature["tags"] = haml :tag_links, {:locals => {:tags => root_search_result.object.feature["tags"]}, :layout => false} %ul - @search_results.items.select { |r| r.object.feature["id"] == current_feature_id }.each do |search_result| - if search_result.object.scenario && search_result.object.scenario["id"] %li %a{:href => "/features/#{search_result.object.scenario["id"].gsub(";", "/scenario/")}"} = search_result.object.scenario["name"] %p != highlighted_search_result_blurb(search_result) - if search_result.object.scenario["tags"] = haml :tag_links, {:locals => {:tags => search_result.object.scenario["tags"]}, :layout => false} - if @search_results.items.empty? %p{:class => 'alert-message error'} Where's Wally? This search returned no results. - else %p{:class => 'alert-message error'} Where's Wally? This search returned no results.
Version data entries
9 entries across 9 versions & 1 rubygems