<p>  
<table>
  {% for logbookentry in cave.logbookentry_set.all %}
  {% if logbookentry.title %}
    <tr>
      <td>{{logbookentry.date}}</td>
      <td><a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a></td>
    </tr>
  {% endif %}
  {% endfor %}
  </table>
</p>