<html metal:use-macro="context/@@layout/page">

<metal:block fill-slot="body">
  <table class="listing"
    tal:define="items view/items"
    tal:condition="python: items is not None">
    <thead>
      <tr>
        <th>
          action
        </th>
        <th>
          title
        </th>
        <th>
          date
        </th>
      </tr>
    </thead>
    <tbody>
      <tal:block repeat="item items">
        <tr 
          tal:define="
            odd repeat/item/odd;
            entry item/entry"
          tal:attributes="class python: odd and 'odd' or 'even'"
          >
          <td style="white-space: nowrap;">
            <a href="" 
              tal:attributes="href string:${entry/@@absolute_url}" 
              tal:content="entry/action" />
          </td>
          <td style="white-space: nowrap;"
            tal:content="entry/doc_title">
          </td>
          <td tal:content="python: entry.timestamp.strftime('%d-%b-%Y %H:%M')">
          </td>
        </tr>
      </tal:block>
    </tbody>
  </table>
</metal:block>
</html>
