mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 08:00:19 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user