more info on subscription page
This commit is contained in:
parent
c6bf9ca4d3
commit
fb37c200cd
|
@ -1,6 +1,12 @@
|
||||||
|
import computed from "ember-addons/ember-computed-decorators";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
|
|
||||||
const AdminSubscription = Discourse.Model.extend({});
|
const AdminSubscription = Discourse.Model.extend({
|
||||||
|
@computed("created")
|
||||||
|
createdFormatted(created) {
|
||||||
|
return moment.unix(created).format();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
AdminSubscription.reopenClass({
|
AdminSubscription.reopenClass({
|
||||||
find() {
|
find() {
|
||||||
|
|
|
@ -2,16 +2,18 @@
|
||||||
<table class="table discourse-patrons-admin">
|
<table class="table discourse-patrons-admin">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.subscription_id'}}</th>
|
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.customer'}}</th>
|
||||||
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.plan'}}</th>
|
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.plan'}}</th>
|
||||||
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.status'}}</th>
|
<th>{{i18n 'discourse_patrons.admin.subscriptions.subscription.status'}}</th>
|
||||||
|
<th class="td-right">{{i18n 'discourse_patrons.admin.subscriptions.subscription.created_at'}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{{#each model as |subscription|}}
|
{{#each model as |subscription|}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{subscription.id}}</td>
|
<td>{{subscription.customer}}</td>
|
||||||
<td>{{subscription.plan.id}}</td>
|
<td>{{subscription.plan.id}}</td>
|
||||||
<td>{{subscription.status}}</td>
|
<td>{{subscription.status}}</td>
|
||||||
|
<td class="td-right">{{format-date subscription.createdFormatted}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -100,6 +100,7 @@ en:
|
||||||
title: Subscriptions
|
title: Subscriptions
|
||||||
subscription:
|
subscription:
|
||||||
subscription_id: Subscription ID
|
subscription_id: Subscription ID
|
||||||
user: User
|
customer: Customer
|
||||||
plan: Plan
|
plan: Plan
|
||||||
status: Status
|
status: Status
|
||||||
|
created_at: Created
|
||||||
|
|
Loading…
Reference in New Issue