<div class="row">
  <% @datasets.each do |dataset| %>
    <div class="col-xs-12 col-sm-6 col-md-4 ">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
        </div>
        <div class="panel-body">
          <div style="text-align:center;background-color:white;padding-bottom:5px;height:145px;line-height:145px">
            <% if dataset.logo.size > 0 %>
              <%= link_to image_tag( logo_dataset_path(dataset), style: 'max-width:100%;' ), dataset %>
            <% else %>
              <%= link_to image_tag( 'project-default-logo.png', style: 'max-width:100%;' ), dataset %>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  <% end %>
</div>

<div class="center"><%= paginate @datasets, theme: "contour" %></div>

<div class="row">
  <% @datasets.each do |dataset| %>
    <div class="col-xs-12 col-sm-6 col-md-4 ">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title"><%= link_to dataset.name, dataset %></h3>
        </div>
        <div class="panel-body">
          <div style="text-align:center;background-color:white;padding-bottom:5px;height:145px;line-height:145px">
            <% if dataset.logo.size > 0 %>
              <%= link_to image_tag( logo_dataset_path(dataset), style: 'max-width:100%;max-height:140px' ), dataset %>
            <% else %>
              <%= link_to image_tag( 'project-default-logo.png', style: 'max-width:100%;max-height:140px' ), dataset %>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  <% end %>
</div>

<div class="center"><%= paginate @datasets, theme: "contour" %></div>

Set max-width for dataset logos
Set max-width for dataset logos
