{% if user.user_rights >2%} {% endif %} {% if lecture.id not in enrolled_lectures %} {% else %} {% if lecture.id in available_again %} {% elif lecture.id in left_lectures %} {% else %} {% endif %} {% endif %}