discourse/app/assets/javascripts/admin/templates/email_preview_digest.hbs

28 lines
1,014 B
Handlebars
Raw Normal View History

<p>{{i18n 'admin.email.preview_digest_desc'}}</p>
<div class='admin-controls'>
<div class='span7 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}}
<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>
</div>
</div>
2015-04-28 17:05:06 -04:00
{{#conditional-loading-spinner condition=loading}}
{{#if showHtml}}
2015-08-16 05:51:31 -04:00
{{{model.html_content}}}
{{else}}
2015-08-16 05:51:31 -04:00
<pre>{{{model.text_content}}}</pre>
{{/if}}
2015-04-28 17:05:06 -04:00
{{/conditional-loading-spinner}}