Sha256: 4dff2895c3ee7c73ed1cd27ca6fc119766b089a77df41183e06ddbb3662a2b2c

Contents?: true

Size: 691 Bytes

Versions: 4

Compression:

Stored size: 691 Bytes

Contents

- if params[:q]
  %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.each do |search_result|
      %li
        %a{:href => "/features/#{search_result.feature["id"]}"}
          = search_result.feature["name"]
        %ul
          - if search_result.scenario && search_result.scenario["id"]
            %li
              %a{:href => "/features/#{search_result.scenario["id"].gsub(";", "/scenario/")}"}
                = search_result.scenario["name"]
- else
  %p Where's Wally? This search returned no results.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wally-0.0.13 lib/wally/views/search.haml
wally-0.0.12 lib/wally/views/search.haml
wally-0.0.11 lib/wally/views/search.haml
wally-0.0.10 lib/wally/views/search.haml