discourse/app/assets/javascripts/admin/templates/email-preview-digest.hbs

Failed to ignore revisions in .git-blame-ignore-revs.

62 lines
2.0 KiB
Handlebars
Raw Normal View History

<p>{{i18n 'admin.email.preview_digest_desc'}}</p>
<div class='admin-controls email-preview'>
<div class='controls'>
<label for='last-seen'>{{i18n 'admin.email.last_seen_user'}}</label>
{{date-picker-past value=lastSeen id="last-seen"}}
<label>{{i18n 'admin.email.user'}}:</label>
{{user-selector single="true" usernames=username canReceiveUpdates=true}}
{{d-button
class="btn-primary digest-refresh-button"
action=(action "refresh")
label="admin.email.refresh"}}
2015-08-16 05:51:31 -04:00
<div class="toggle">
<label>{{i18n 'admin.email.format'}}</label>
{{#if showHtml}}
<span>{{i18n 'admin.email.html'}}</span> | <a href
{{action "toggleShowHtml"}}>{{i18n 'admin.email.text'}}</a>
2015-08-16 05:51:31 -04:00
{{else}}
<a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.html'}}</a> |
<span>{{i18n 'admin.email.text'}}</span>
2015-08-16 05:51:31 -04:00
{{/if}}
</div>
</div>
</div>
2015-04-28 17:05:06 -04:00
{{#conditional-loading-spinner condition=loading}}
<div class="email-preview-digest">
{{#if showSendEmailForm}}
<div class="controls">
{{#if sendingEmail}}
{{i18n 'admin.email.sending_test'}}
{{else}}
<label>{{i18n 'admin.email.send_digest_label'}}</label>
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
{{d-button
class="btn-default"
action=(action "sendEmail")
disabled=sendEmailDisabled
label="admin.email.send_digest"}}
{{#if sentEmail}}
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
{{/if}}
{{/if}}
</div>
{{/if}}
<div class="preview-output">
{{#if showHtml}}
{{#if htmlEmpty}}
<p>{{i18n 'admin.email.no_result'}}</p>
{{else}}
<iframe title={{i18n 'admin.email.html_preview'}} srcdoc={{model.html_content}} />
{{/if}}
{{else}}
<pre>{{html-safe model.text_content}}</pre>
{{/if}}
</div>
</div>
{{/conditional-loading-spinner}}