{{#d-modal-body title="admin.badges.preview.modal_title" class="badge-query-preview"}} {{#if errors}}

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

{{errors}}
{{!-- TODO we want some help pages for this, link to those instead

{{i18n "admin.badges.preview.error_help"}}

--}} {{else}}

{{#if count}} {{html-safe (i18n "admin.badges.preview.grant_count" count=count)}} {{else}} {{html-safe (i18n "admin.badges.preview.no_grant_count")}} {{/if}}

{{#if countWarning}}

{{d-icon "exclamation-triangle"}} {{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}}
{{html-safe queryPlanHtml}}
{{/if}} {{/if}} {{/d-modal-body}}