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
|
|
@ -42,6 +42,9 @@ class Episode extends BaseController
|
|||
'podcast' => $this->podcast,
|
||||
];
|
||||
|
||||
replace_breadcrumb_params([
|
||||
0 => $this->podcast->title,
|
||||
]);
|
||||
return view('admin/episode/list', $data);
|
||||
}
|
||||
|
||||
|
|
@ -49,6 +52,10 @@ class Episode extends BaseController
|
|||
{
|
||||
$data = ['episode' => $this->episode];
|
||||
|
||||
replace_breadcrumb_params([
|
||||
0 => $this->podcast->title,
|
||||
1 => $this->episode->title,
|
||||
]);
|
||||
return view('admin/episode/view', $data);
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +67,10 @@ class Episode extends BaseController
|
|||
'podcast' => $this->podcast,
|
||||
];
|
||||
|
||||
echo view('admin/episode/create', $data);
|
||||
replace_breadcrumb_params([
|
||||
0 => $this->podcast->title,
|
||||
]);
|
||||
return view('admin/episode/create', $data);
|
||||
}
|
||||
|
||||
public function attemptCreate()
|
||||
|
|
@ -115,7 +125,11 @@ class Episode extends BaseController
|
|||
'episode' => $this->episode,
|
||||
];
|
||||
|
||||
echo view('admin/episode/edit', $data);
|
||||
replace_breadcrumb_params([
|
||||
0 => $this->podcast->title,
|
||||
1 => $this->episode->title,
|
||||
]);
|
||||
return view('admin/episode/edit', $data);
|
||||
}
|
||||
|
||||
public function attemptEdit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue