Only show components section if we have some

This commit is contained in:
manavo
2014-11-24 17:37:49 +00:00
parent e82c7d6e57
commit 93b0d3af13
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,6 @@
* @return View
*/
public function showIndex() {
return View::make('index');
return View::make('index', ['components' => Component::all()]);
}
}