{% if result.type == 'course' %} {% comment %} The styling below and the additional span is to make the entire div clickable as requested by the client. {% endcomment %} {% endif %}