mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
fe5264f9e9
adds a user prompt on the email digest preview page to generate a preview for a particular user also fixes some broken styling on the page
27 lines
1,015 B
Handlebars
27 lines
1,015 B
Handlebars
<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>
|
|
{{input type="date" 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>
|
|
<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>
|
|
{{else}}
|
|
<a href {{action "toggleShowHtml"}}>{{i18n 'admin.email.html'}}</a> | <span>{{i18n 'admin.email.text'}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
|
{{#if showHtml}}
|
|
{{{model.html_content}}}
|
|
{{else}}
|
|
<pre>{{{model.text_content}}}</pre>
|
|
{{/if}}
|
|
{{/conditional-loading-spinner}}
|