feat: add breadcrumb in admin area

- add Breadcrumb library and service
- update authorizations
- add missing routes to avoid 404 links in breadcrumb
- add svg_helper globally in base controller
- update purgecss config to check .ts files

closes #17
This commit is contained in:
Yassine Doghri 2020-08-05 16:10:39 +00:00
commit 7fb1de2cf3
35 changed files with 397 additions and 82 deletions

View file

@ -52,6 +52,7 @@ class Podcast extends BaseController
{
$data = ['podcast' => $this->podcast];
replace_breadcrumb_params([0 => $this->podcast->title]);
return view('admin/podcast/view', $data);
}
@ -69,7 +70,7 @@ class Podcast extends BaseController
),
];
echo view('admin/podcast/create', $data);
return view('admin/podcast/create', $data);
}
public function attemptCreate()
@ -145,7 +146,8 @@ class Podcast extends BaseController
'categories' => (new CategoryModel())->findAll(),
];
echo view('admin/podcast/edit', $data);
replace_breadcrumb_params([0 => $this->podcast->title]);
return view('admin/podcast/edit', $data);
}
public function attemptEdit()