.partners
  .inner
    -Partner.order("RAND()").all.each do |partner|
      -if partner.url?
        =link_to partner.url, :target => "_blank" do
          .partner
            .p_inner.with_ratio{:style => "background-image:url('#{partner.image_file.file.large.medium.small}');", :data => {:ratio => 0.7}}
      -else
        .partner
          .p_inner.with_ratio{:style => "background-image:url('#{partner.image_file.file.large.medium.small}');", :data => {:ratio => 0.7}}
  