{# Display search result summary according to content type #} {% with result.object as object %} {% if object.kind == 'community' %} {% with object as community %} {% include object.summary_view %} {% endwith %} {% else %}{% if object.kind == 'account' %} {% with object as account %} {% include object.summary_view %} {% endwith %} {% else %}{% if object.kind == 'content' %} {% with object as content %} {% include object.summary_view %} {% endwith %} {% endif %}{% endif %}{% endif %} {% endwith %}