{{#d-modal-body title="admin.badges.preview.modal_title" class="badge-query-preview"}} {{#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 countWarning}}

{{d-icon "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 hasQueryPlan}}
{{{queryPlanHtml}}}
{{/if}} {{/if}} {{/d-modal-body}}