% if @search_result.empty? %>
<%= I18n.t('search.nothing') %>
<% else %>
<% @search_result.each do |model|%>
<% if params[:type].blank? %>
<%= render_global_search_for model %>
<% else %>
<%= render_focus_search_for model %>
<% end %>
<% end %>
<%= paginate @search_result %>
<% end %>