discourse-subscriptions/assets/javascripts/discourse/templates/user/billing/payments.hbs

23 lines
710 B
Handlebars

{{#if model}}
<table class="table discourse-subscriptions-user-table">
<thead>
<th>{{i18n "discourse_subscriptions.user.payments.id"}}</th>
<th>{{i18n "discourse_subscriptions.user.payments.amount"}}</th>
<th>{{i18n "discourse_subscriptions.user.payments.created_at"}}</th>
</thead>
<tbody>
{{#each model as |payment|}}
<tr>
<td>{{payment.id}}</td>
<td>{{format-currency payment.currency payment.amountDollars}}</td>
<td>{{format-unix-date payment.created}}</td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<div class="alert alert-info">
{{i18n "discourse_subscriptions.user.payments_help"}}
</div>
{{/if}}