mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
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:
parent
ed6e953010
commit
7fb1de2cf3
35 changed files with 397 additions and 82 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue