{% if a.has_image_view and b.has_image_view %} {{h.text.truncate(a._commit._id, 10)}} {{h.text.truncate(b._commit._id, 10)}} {% else %} {{g.highlight(diff, lexer='diff')}} {% endif %}