<li>
  <div class="picture">
    <%= link_to image_tag('http://lorempixel.com/74/74', :class => 'img-responsive'), '#', :class => 'image' %>
  </div>
  <div class="content">
    <%=
      if entity.class.name == 'Bidder'
        link_to entity.name, bidder_path(entity)
      else
        link_to entity.name, public_body_path(entity)
      end
    %>
    <small>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris.</small>
  </div>
</li>
<li>
  <%
    path = (entity.class.name == 'Bidder') ? bidder_path(entity) : public_body_path(entity)
  %>
  <div class="picture">
    <%= link_to image_tag('http://lorempixel.com/74/74', :class => 'img-responsive'), path, :class => 'image' %>
  </div>
  <div class="content">
    <%= link_to entity.name, path %>
    <small>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris.</small>
  </div>
</li>
Fix path in related entities
Fix path in related entities
