Sha256: 14f92c966cbfcb584856344989edd9b7cf56aea9d24696c7e5d8ffa5928928b6
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 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.feature["id"] }.uniq.each do |current_feature_id| - root_search_result = @search_results.items.find { |r| r.feature["id"] == current_feature_id } %li %a{:href => "/features/#{root_search_result.feature["id"]}"} = root_search_result.feature["name"] - if root_search_result.feature["tags"] = haml :tag_links, {:locals => {:tags => root_search_result.feature["tags"]}, :layout => false} %ul - @search_results.items.select { |r| r.feature["id"] == current_feature_id }.each do |search_result| - if search_result.scenario && search_result.scenario["id"] %li %a{:href => "/features/#{search_result.scenario["id"].gsub(";", "/scenario/")}"} = search_result.scenario["name"] - if search_result.scenario["tags"] = haml :tag_links, {:locals => {:tags => search_result.scenario["tags"]}, :layout => false} - if @search_results.items.length === 0 %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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.22 | lib/wally/views/search.haml |
wally-0.0.21 | lib/wally/views/search.haml |
wally-0.0.20 | lib/wally/views/search.haml |
wally-0.0.19 | lib/wally/views/search.haml |