{% load staticfiles i18n %} {% if edit_event %} {% if occurrence.event.rule %} {% if occurrence.id %} {% trans {% else %} {% trans {% endif %} {% else %} {% trans {% endif %} {% endif %} {% if delete_event %} {% if occurrence.event.rule %} {% if occurrence.id %} {% trans {% else %} {% trans {% endif %} {% else %} {% trans {% endif %} {% endif %}