discourse/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
Jarek Radosz c3fd91670e
DEV: Update linting setup and fix issues (#17345)
Re-lands #16119 and #17298

* Update eslint-config-discourse
* Update linting workflow
* Prettier-ignore stuff
* Update template-lint config
* Auto-fix template issues
* Fix various template issues
  Mostly incorrect attributes and unused templates
* Prettier js files
* Fix template auto-fix regressions
* Small css tweak

Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
2022-07-06 10:37:54 +02:00

22 lines
755 B
Handlebars

<p>{{i18n "admin.email.advanced_test.desc"}}</p>
<div class="email-advanced-test">
<label for="email">{{i18n "admin.email.advanced_test.email"}}</label>
<Textarea name="email" @value={{this.email}} class="email-body" /> <DButton @action={{action "run"}} @label="admin.email.advanced_test.run" />
</div>
<ConditionalLoadingSpinner @condition={{this.loading}}>
{{#if this.format}}
<hr>
<div class="text">
<h3>{{i18n "admin.email.advanced_test.text"}}</h3>
<pre class="full-reason">{{html-safe this.text}}</pre>
</div>
<hr>
<div class="elided">
<h3>{{i18n "admin.email.advanced_test.elided"}}</h3>
<pre class="full-reason">{{html-safe this.elided}}</pre>
</div>
{{/if}}
</ConditionalLoadingSpinner>