<ul class="dt-default"
    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="portal-type-${python: utils.normalize(item.portal_type)}">
    <div class="row">
      <div class="col-lg-2 col-md-3 col-sm-4" tal:condition="has_image">
        <a href="${url}">
          <img src="${base_url}/@@images/image/mini" alt="${item/Title}">
        </a>
      </div>
      <div class="col-lg-10 col-md-9 col-sm-8"
           tal:attributes="class python: has_image and 'col-md-9' or 'col-md-12'">
        <p class="pat-moment date"
           tal:content="python: utils.format_date(effective, 'notime')"
           tal:condition="python: 'date' in df and utils.valid_date(effective)"></p>
        <p class="title">
          <a href="${url}">${item/Title}</a>
        </p>
        <p class="description"
           tal:condition="python: 'description' in df and item.Description">
           ${item/Description}
        </p>
        <p class="read-more"><a href="${url}" class="button">More →</a></p>
      </div>
    </div>
    <hr>
  </li>
  </tal:item>
</ul>
