discourse/app/assets/javascripts/admin/templates/email_logs.js.handlebars

38 lines
1.4 KiB
Handlebars
Raw Normal View History

2013-02-06 03:16:51 +08:00
<div class='admin-controls'>
<div class='span5 controls'>
2013-03-20 03:41:11 +08:00
{{view Discourse.TextField valueBinding="controller.testEmailAddress" placeholderKey="admin.email_logs.test_email_address"}}
2013-02-06 03:16:51 +08:00
</div>
<div class='span10 controls'>
<button class='btn' {{action sendTestEmail target="controller"}} {{bindAttr disabled="sendTestEmailDisabled"}}>{{i18n admin.email_logs.send_test}}</button>
{{#if controller.sentTestEmail}}<span class='result-message'>{{i18n admin.email_logs.sent_test}}</span>{{/if}}
</div>
</div>
2013-03-20 03:41:11 +08:00
<table class='table'>
2013-02-06 03:16:51 +08:00
<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 controller.content.length}}
{{#group}}
{{#collection contentBinding="controller.content" tagName="tbody" itemTagName="tr"}}
<td>{{date view.content.created_at}}</td>
<td>
{{#if view.content.user}}
{{#linkTo 'adminUser' view.content.user}}{{avatar view.content.user imageSize="tiny"}}{{/linkTo}}
{{#linkTo 'adminUser' view.content.user}}{{view.content.user.username}}{{/linkTo}}
2013-02-06 03:16:51 +08:00
{{else}}
&mdash;
{{/if}}
2013-03-20 03:41:11 +08:00
</td>
<td><a href='mailto:{{unbound view.content.to_address}}'>{{view.content.to_address}}</a></td>
2013-02-06 03:16:51 +08:00
<td>{{view.content.email_type}}</td>
{{/collection}}
{{/group}}
{{/if}}
</table>