<:body> {{#if @model.badge.errors}}

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

{{@model.badge.errors}}
{{else}}

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

{{#if this.countWarning}}

{{d-icon "triangle-exclamation"}} {{i18n "admin.badges.preview.bad_count_warning.header"}}

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

{{/if}} {{#if @model.badge.sample}}

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

{{/if}} {{#if this.hasQueryPlan}}
{{html-safe this.queryPlanHtml}}
{{/if}} {{/if}}