Merge pull request #40 from Pear-Trading/finn/ReceiptListImprove
Added timings and descending submit at time for receipts
This commit is contained in:
commit
db63b5b3cf
2 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,7 @@ sub valid_read {
|
||||||
undef, {
|
undef, {
|
||||||
page => $c->param('page') || 1,
|
page => $c->param('page') || 1,
|
||||||
rows => 10,
|
rows => 10,
|
||||||
|
order_by => { -desc => 'submitted_at' },
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
$c->stash(
|
$c->stash(
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
<div class="col">From: <%= $transaction->buyer->name %></div>
|
<div class="col">From: <%= $transaction->buyer->name %></div>
|
||||||
<div class="col">To: <%= $transaction->seller->name %></div>
|
<div class="col">To: <%= $transaction->seller->name %></div>
|
||||||
<div class="col">Value: <%= $transaction->value %></div>
|
<div class="col">Value: <%= $transaction->value %></div>
|
||||||
|
<div class="col">Submitted At: <%= $transaction->submitted_at %></div>
|
||||||
|
<div class="col">Purchase Time: <%= $transaction->purchase_time %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Reference in a new issue