2014-12-08 16:35:49 -05:00
|
|
|
<p>{{i18n 'admin.email.preview_digest_desc'}}</p>
|
2013-06-11 12:27:11 -04:00
|
|
|
|
2013-06-03 16:12:24 -04:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span7 controls'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<label for='last-seen'>{{i18n 'admin.email.last_seen_user'}}</label>
|
2013-06-03 16:12:24 -04:00
|
|
|
{{input type="date" value=lastSeen id="last-seen"}}
|
2015-10-30 14:05:54 -04:00
|
|
|
<label>{{i18n 'admin.email.user'}}:</label>
|
|
|
|
{{user-selector single="true" usernames=username}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class='btn' {{action "refresh"}}>{{i18n 'admin.email.refresh'}}</button>
|
2015-08-16 05:51:31 -04:00
|
|
|
<div class="toggle">
|
|
|
|
<label>{{i18n 'admin.email.format'}}</label>
|
|
|
|
{{#if showHtml}}
|
2015-09-08 12:27:20 -04:00
|
|
|
<span>{{i18n 'admin.email.html'}}</span> | <a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.text'}}</a>
|
2015-08-16 05:51:31 -04:00
|
|
|
{{else}}
|
2015-09-08 12:27:20 -04:00
|
|
|
<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>
|
2013-06-03 16:12:24 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-28 17:05:06 -04:00
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
2013-06-03 16:12:24 -04:00
|
|
|
{{#if showHtml}}
|
2015-08-16 05:51:31 -04:00
|
|
|
{{{model.html_content}}}
|
2013-06-03 16:12:24 -04:00
|
|
|
{{else}}
|
2015-08-16 05:51:31 -04:00
|
|
|
<pre>{{{model.text_content}}}</pre>
|
2013-06-03 16:12:24 -04:00
|
|
|
{{/if}}
|
2015-04-28 17:05:06 -04:00
|
|
|
{{/conditional-loading-spinner}}
|