Sha256: 1e37fa63aeb0c43dae7701681167644684fa1cd650a8c923ea778b066b5f0ddb
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 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 => "/projects/#{current_project.name}/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 => "/projects/#{current_project.name}/features/#{root_search_result.object.feature["id"]}"} = root_search_result.object.feature["name"] - if root_search_result.object.feature["tags"] = haml :tag_links, {:locals => {:tags => root_search_result.object.feature["tags"]}, :layout => false} %p != highlighted_search_result_blurb root_search_result %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 => "/projects/#{current_project.name}/features/#{search_result.object.scenario["id"].gsub(";", "/scenario/")}"} = search_result.object.scenario["name"] - if search_result.object.scenario["tags"] = haml :tag_links, {:locals => {:tags => search_result.object.scenario["tags"]}, :layout => false} %p != highlighted_search_result_blurb(search_result) - if @search_results.items.empty? %p{:class => 'alert-message error'} Where's Nuker? This search returned no results. - else %p{:class => 'alert-message error'} Where's Nuker? This search returned no results.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nuker-2.0.0 | lib/nuker/views/search.haml |
nuker-1.0.0 | lib/nuker/views/search.haml |