2014-12-09 05:35:49 +08:00
|
|
|
<p>{{i18n 'admin.email.preview_digest_desc'}}</p>
|
2013-06-12 00:27:11 +08:00
|
|
|
|
2013-06-04 04:12:24 +08:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span7 controls'>
|
2014-12-09 05:35:49 +08:00
|
|
|
<label for='last-seen'>{{i18n 'admin.email.last_seen_user'}}</label>
|
2016-04-15 23:58:32 +08:00
|
|
|
{{date-picker-past value=lastSeen id="last-seen"}}
|
2015-10-31 02:05:54 +08:00
|
|
|
<label>{{i18n 'admin.email.user'}}:</label>
|
|
|
|
{{user-selector single="true" usernames=username}}
|
2014-12-09 05:35:49 +08:00
|
|
|
<button class='btn' {{action "refresh"}}>{{i18n 'admin.email.refresh'}}</button>
|
2015-08-16 17:51:31 +08:00
|
|
|
<div class="toggle">
|
|
|
|
<label>{{i18n 'admin.email.format'}}</label>
|
|
|
|
{{#if showHtml}}
|
2015-09-09 00:27:20 +08:00
|
|
|
<span>{{i18n 'admin.email.html'}}</span> | <a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.text'}}</a>
|
2015-08-16 17:51:31 +08:00
|
|
|
{{else}}
|
2015-09-09 00:27:20 +08:00
|
|
|
<a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.html'}}</a> | <span>{{i18n 'admin.email.text'}}</span>
|
2015-08-16 17:51:31 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-06-04 04:12:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-29 05:05:06 +08:00
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
2016-11-24 06:46:57 +08:00
|
|
|
|
2016-11-25 04:38:22 +08:00
|
|
|
<div class="email-preview-digest">
|
2016-11-24 06:46:57 +08:00
|
|
|
{{#if showSendEmailForm}}
|
|
|
|
<br/>
|
2016-11-25 04:38:22 +08:00
|
|
|
<div class="controls">
|
2016-11-24 06:46:57 +08:00
|
|
|
{{#if sendingEmail}}
|
|
|
|
{{i18n 'admin.email.sending_test'}}
|
|
|
|
{{else}}
|
2016-11-25 04:38:22 +08:00
|
|
|
<label>{{i18n 'admin.email.send_digest_label'}}</label>
|
2016-11-24 06:46:57 +08:00
|
|
|
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
|
|
|
|
<button class='btn' {{action "sendEmail"}} disabled={{sendEmailDisabled}}>{{i18n 'admin.email.send_digest'}}</button>
|
|
|
|
{{#if sentEmail}}
|
|
|
|
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-11-25 04:38:22 +08:00
|
|
|
<div class="preview-output">
|
|
|
|
{{#if showHtml}}
|
|
|
|
{{#if htmlEmpty}}
|
|
|
|
<p>{{i18n 'admin.email.no_result'}}</p>
|
|
|
|
{{else}}
|
|
|
|
<iframe src="{{iframeSrc}}" />
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<pre>{{{model.text_content}}}</pre>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-29 05:05:06 +08:00
|
|
|
{{/conditional-loading-spinner}}
|