<ul class="castle-grid-block-sm-1 castle-grid-block-md-2 castle-grid-block-lg-4 dt-grid"
    tal:define="results view/tile/results;
                utils view/tile/utils;
                df view/tile/display_fields;">
  <tal:item tal:repeat="item python: results['items']">
  <li tal:define="base_url item/getURL;
                  url python: utils.get_object_url(item);
                  has_image python: 'image' in df and utils.has_image(item);
                  effective item/effective|nothing;"
      class="castle-grid-block-item portal-type-${python: utils.normalize(item.portal_type)}">
    <p tal:condition="has_image">
      <a href="${url}">
        <div tal:replace="structure python: utils.focal_image_tag(item, 'mini')" />
      </a>
    </p>
    <p class="date"
       tal:content="python: utils.format_date(effective, 'notime')"
       tal:condition="python: 'date' in df and utils.valid_date(effective)"></p>
    <h3 class="title">
      <a href="${url}">${item/Title}</a>
    </h3>
    <p class="description" tal:condition="python: 'description' in df">${item/Description}</p>
  </li>
  </tal:item>
</ul>
