{{#if errors}}

{{i18n 'admin.badges.preview.sql_error_header'}}

{{errors}}
{{else}}

{{#if count}} {{{i18n 'admin.badges.preview.grant_count' count=count}}} {{else}} {{{i18n 'admin.badges.preview.no_grant_count'}}} {{/if}}

{{#if count_warning}}

{{i18n 'admin.badges.preview.bad_count_warning.header'}}

{{i18n 'admin.badges.preview.bad_count_warning.text'}}

{{/if}} {{#if sample}}

{{i18n 'admin.badges.preview.sample'}}

{{/if}} {{#if has_query_plan}}
{{{query_plan_html}}}
{{/if}} {{/if}}