- Full move to high charts.

- Cleanup homepage.
- Expanded libraries
- Added limits (for budgets)
- Extended models
- Added popups for charts.
- [skip-ci]
This commit is contained in:
James Cole
2014-07-17 20:52:54 +02:00
parent 5c5849b219
commit 0bcda34738
49 changed files with 1405 additions and 473 deletions

View File

@@ -30,24 +30,10 @@ class HomeController extends BaseController
*/
public function index()
{
// get list setting:
$pref = $this->_preferences->get('frontpageAccounts', []);
// get the accounts to display on the home screen:
$count = $this->_accounts->count();
if ($pref->data == []) {
$list = $this->_accounts->getActiveDefault();
} else {
$list = $this->_accounts->getByIds($pref->data);
}
// get transactions for each account:
foreach ($list as $account) {
$account->transactionList = $this->_journal->getByAccount($account, 10);
}
// build the home screen:
return View::make('index')->with('count', $count)->with('accounts', $list);
return View::make('index')->with('count', $count);
}
}