Expanded on categories.

This commit is contained in:
James Cole
2014-11-14 11:56:45 +01:00
parent 9adbbd872c
commit eb8f8fa935
5 changed files with 30 additions and 14 deletions

View File

@@ -78,7 +78,14 @@ class CategoryController extends BaseController
*/
public function show(Category $category)
{
return View::make('categories.show', compact('category'));
$hideCategory = true;
/** @var \FireflyIII\Database\Category $repos */
$repos = App::make('FireflyIII\Database\Category');
$journals = $repos->getTransactionJournals($category, 50);
return View::make('categories.show', compact('category','journals','hideCategory'));
}
/**