tidy up the user subscription list
This commit is contained in:
parent
42b79fdaaa
commit
7db60e2c4b
|
@ -1,33 +1,35 @@
|
||||||
|
|
||||||
{{i18n 'discourse_subscriptions.user.subscriptions.title'}}
|
{{#d-section pageClass="user-subscriptions" class="user-content"}}
|
||||||
|
<h2>{{i18n 'discourse_subscriptions.user.subscriptions.title'}}</h2>
|
||||||
|
|
||||||
{{#if model}}
|
{{#if model}}
|
||||||
<table class="table discourse-patrons-user-table">
|
<table class="table discourse-subscriptions-user-table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>{{i18n 'discourse_subscriptions.user.subscriptions.id'}}</th>
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.id'}}</th>
|
||||||
<th>{{i18n 'discourse_subscriptions.user.plans.product'}}</th>
|
<th>{{i18n 'discourse_subscriptions.user.plans.product'}}</th>
|
||||||
<th>{{i18n 'discourse_subscriptions.user.plans.rate'}}</th>
|
<th>{{i18n 'discourse_subscriptions.user.plans.rate'}}</th>
|
||||||
<th>{{i18n 'discourse_subscriptions.user.subscriptions.status'}}</th>
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.status'}}</th>
|
||||||
<th>{{i18n 'discourse_subscriptions.user.subscriptions.created_at'}}</th>
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.created_at'}}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
{{#each model as |subscription|}}
|
{{#each model as |subscription|}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{subscription.id}}</td>
|
<td>{{subscription.id}}</td>
|
||||||
<td>{{subscription.product.name}}</td>
|
<td>{{subscription.product.name}}</td>
|
||||||
<td>{{subscription.plan.subscriptionRate}}</td>
|
<td>{{subscription.plan.subscriptionRate}}</td>
|
||||||
<td>{{subscription.status}}</td>
|
<td>{{subscription.status}}</td>
|
||||||
<td>{{format-unix-date subscription.created}}</td>
|
<td>{{format-unix-date subscription.created}}</td>
|
||||||
<td class="td-right">
|
<td class="td-right">
|
||||||
{{#if subscription.loading}}
|
{{#if subscription.loading}}
|
||||||
{{loading-spinner size="small"}}
|
{{loading-spinner size="small"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}
|
{{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</table>
|
</table>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>{{i18n 'discourse_subscriptions.user.subscriptions_help'}}</p>
|
<p>{{i18n 'discourse_subscriptions.user.subscriptions_help'}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/d-section}}
|
||||||
|
|
|
@ -28,12 +28,18 @@ textarea[readonly] {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.discourse-patrons-user-table {
|
table.discourse-subscriptions-user-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
th:first-child,
|
||||||
|
td:first-child,
|
||||||
|
th:last-child,
|
||||||
|
td:last-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.desc {
|
.desc {
|
||||||
|
|
Loading…
Reference in New Issue