<% if @matches.present? %>

Similar Posts

Found <%= pluralize(@matches.length, "similar post") %>:

<% @matches.each do |match| %> <%= PostPresenter.preview(match["post"], :tags => "status:any", :similarity => match["score"], :size => true) %> <% end %> <% else %>

Similar Posts

No similar posts found.

<% end %>