{% if not notification_manager.get_notification(notification) %} {% include 'events.html' %} {% else %} {% extends 'template.html' %} {% set active_top_page = 'events' -%} {% block title %} {% with notification=notification_manager.get_notification(notification) %}