{% for key, value in certificate.attributes %} <span class="badge badge-info" title="{{ key }}={{ value }}">{{ value }}</span> {% endfor %}