{% spaceless %} {% if collection.legend %}{{ collection.legend }}{% endif %} {% if collection.has_many %}