From 9229f6ec923bb5efa78d1282af8a3ddb3163295a Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 15 Mar 2018 13:07:29 +0000 Subject: [PATCH] removed transaction list code --- .../Controller/Admin/Transactions.pm | 15 ------- templates/admin/transactions/index.html.ep | 43 ------------------- 2 files changed, 58 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Admin/Transactions.pm b/lib/Pear/LocalLoop/Controller/Admin/Transactions.pm index 084cd99..d42c3d2 100644 --- a/lib/Pear/LocalLoop/Controller/Admin/Transactions.pm +++ b/lib/Pear/LocalLoop/Controller/Admin/Transactions.pm @@ -6,21 +6,6 @@ has result_set => sub { return $c->schema->resultset('Transaction'); }; -sub index { - my $c = shift; - - my $transactions = $c->result_set->search( - undef, { - page => $c->param('page') || 1, - rows => 10, - order_by => { -desc => 'submitted_at' }, - }, - ); - $c->stash( - transactions => $transactions, - ); -} - sub read { my $c = shift; diff --git a/templates/admin/transactions/index.html.ep b/templates/admin/transactions/index.html.ep index 3ebb83a..3804baf 100644 --- a/templates/admin/transactions/index.html.ep +++ b/templates/admin/transactions/index.html.ep @@ -2,46 +2,3 @@ % title 'Transactions'; % content_for javascript => begin % end -% if ( my $error = flash 'error' ) { - -% } elsif ( my $success = flash 'success' ) { - -% } -
- -
-
-
- %= bootstrap_pagination( $c->param('page') || 1, $transactions->pager->last_page, { class => 'justify-content-center' } ); -
-