{% extends "base.html" %}
{% load render_table from django_tables2 %}

{% block heading %}{% include "heading.html" %}{%endblock%}

{% block content %}
  {% if object_list %}
    <p><a href="{{ request.path }}create">Add</a></p>
    {% render_table table %}
  {% else %}
    <p>There are no objects in the list. <a href="{{ request.path }}create">Add one</a> now!</p>
  {% endif %}       
{% endblock %}