From 9fa4b17207dcfa632b460c46934c62a1081cfc65 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Sun, 2 Mar 2014 18:08:38 +0100 Subject: [PATCH] [CHANGE] move transaction summary to earnings to add timeframed stats later --- .../pages/account/transactions.inc.php | 5 +-- .../account/transactions/default.tpl | 32 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/public/include/pages/account/transactions.inc.php b/public/include/pages/account/transactions.inc.php index 7934539d..afe405ac 100644 --- a/public/include/pages/account/transactions.inc.php +++ b/public/include/pages/account/transactions.inc.php @@ -7,10 +7,7 @@ if ($user->isAuthenticated()) { $aTransactions = $transaction->getTransactions($start, @$_REQUEST['filter'], $iLimit, $_SESSION['USERDATA']['id']); $aTransactionTypes = $transaction->getTypes(); if (!$aTransactions) $_SESSION['POPUP'][] = array('CONTENT' => 'Could not find any transaction', 'TYPE' => 'alert alert-danger'); - if (!$setting->getValue('disable_transactionsummary')) { - $aTransactionSummary = $transaction->getTransactionSummary($_SESSION['USERDATA']['id']); - $smarty->assign('SUMMARY', $aTransactionSummary); - } + $smarty->assign('LIMIT', $iLimit); $smarty->assign('TRANSACTIONS', $aTransactions); $smarty->assign('TRANSACTIONTYPES', $aTransactionTypes); diff --git a/public/templates/bootstrap/account/transactions/default.tpl b/public/templates/bootstrap/account/transactions/default.tpl index ecbd8dbf..d3a3f20c 100644 --- a/public/templates/bootstrap/account/transactions/default.tpl +++ b/public/templates/bootstrap/account/transactions/default.tpl @@ -1,35 +1,3 @@ -{if $DISABLE_TRANSACTIONSUMMARY|default:"0" != 1} -
-
-
-
- Transaction Summary -
-
-
- - - - {foreach $SUMMARY as $type=>$total} - - {/foreach} - - - - - {foreach $SUMMARY as $type=>$total} - - {/foreach} - - -
{$type}
{$total|number_format:"8"}
-
-
-
-
-
-{/if} -