{% if has_sdate or has_edate %} {% if has_edate %} {% else %} {% endif %} {% if has_sdate %} {% endif %} {% if has_edate %} {% endif %} {% endif %}