{% load events_tags %} {% if event.children.all %} {% if event.get_children_forthcoming %} {% if event.child_list_heading %} {% if event.series %}Forthcoming {{ event.child_list_heading|lower }}{% else %}{{ event.child_list_heading }}{% endif %} {% else %} {% if event.series %}Forthcoming sessions{% else %}Sessions{% endif %} {% endif %} {% endif %} {% if event.get_children_previous %} {% if event.child_list_heading %} Previous {{ event.child_list_heading|lower }} {% else %} Previous sessions {% endif %} {% endif %} {% endif %}