Hot Fixes

This commit is contained in:
2015-06-21 16:01:01 +02:00
parent b0f1a2823f
commit 308b542caa
9 changed files with 24 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
<% unless search_results.nil? %>
<%= search_results %>
<ul>
<% search_results.each_hit_with_result do |hit,result| %>
<li> <%= link_to result.parent.title+": " + result.name, document_path(result) %>
@@ -7,7 +8,7 @@
<% end %>
<% %>
<% hit.highlights(:text).each do |hlgt| %>
<%= "text:" + raw(hlgt.format {|word| "*#{word}*" })%>
<%= "text:" + raw(hlgt.format {|word| raw("<b>#{word}</b>") })%>
<% end %>
<% hit.highlights(:meeting).each do |hlgt| %>
<%= "text:" + raw(hlgt.format {|word| "*#{word}*" })%>