mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
37 lines
1.2 KiB
Handlebars
37 lines
1.2 KiB
Handlebars
<div class='admin-controls'>
|
|
<div class='span5 controls'>
|
|
{{textField value=testEmailAddress placeholderKey="admin.email_logs.test_email_address"}}
|
|
</div>
|
|
<div class='span10 controls'>
|
|
<button class='btn' {{action sendTestEmail}} {{bindAttr disabled="sendTestEmailDisabled"}}>{{i18n admin.email_logs.send_test}}</button>
|
|
{{#if sentTestEmail}}<span class='result-message'>{{i18n admin.email_logs.sent_test}}</span>{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
<table class='table'>
|
|
<tr>
|
|
<th>{{i18n admin.email_logs.sent_at}}</th>
|
|
<th>{{i18n user.title}}</th>
|
|
<th>{{i18n admin.email_logs.to_address}}</th>
|
|
<th>{{i18n admin.email_logs.email_type}}</th>
|
|
</tr>
|
|
|
|
{{#if model.length}}
|
|
{{#group}}
|
|
{{#collection contentBinding="model" tagName="tbody" itemTagName="tr"}}
|
|
<td>{{date created_at}}</td>
|
|
<td>
|
|
{{#if user}}
|
|
{{#linkTo 'adminUser' user}}{{avatar user imageSize="tiny"}}{{/linkTo}}
|
|
{{#linkTo 'adminUser' user}}{{user.username}}{{/linkTo}}
|
|
{{else}}
|
|
—
|
|
{{/if}}
|
|
</td>
|
|
<td><a href='mailto:{{unbound to_address}}'>{{to_address}}</a></td>
|
|
<td>{{email_type}}</td>
|
|
{{/collection}}
|
|
{{/group}}
|
|
{{/if}}
|
|
|
|
</table>
|