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