<div class="pull-right">
    <div class="btn-group btn-group-xs" role="group">
        <a href="?format=json" class="btn btn-default{% if format == 'json' %} active{% endif %}">JSON</a>
        <a href="?format=yaml" class="btn btn-default{% if format == 'yaml' %} active{% endif %}">YAML</a>
    </div>
</div>
