app/views/alchemy/search/_results.html.erb in alchemy_cms-2.5.3.1 vs app/views/alchemy/search/_results.html.erb in alchemy_cms-2.6.0.rc5
- old
+ new
@@ -14,15 +14,14 @@
<%=raw _t("search_result_page.result_count", :count => @search_results.length) %>
</h2>
<% end %>
<ul class="search_result_list">
<% @search_results.each do |search_result| %>
- <% result = search_result.highlight(
- "*#{params[:query]}*", {
- :field => (search_result.class.name == "Alchemy::EssenceRichtext" ? :stripped_body : :body)
- }
+ <%= render('alchemy/search/result',
+ result: search_result.highlight("*#{params[:query]}*"),
+ options: options,
+ page: search_result.page
) %>
- <%= render 'alchemy/search/result', :result => result, :options => options, :page => search_result.page %>
<% end %>
</ul>
<% end %>
</div>