mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +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
|
|
@ -34,13 +34,21 @@ class User extends BaseController
|
|||
return view('admin/user/list', $data);
|
||||
}
|
||||
|
||||
public function view()
|
||||
{
|
||||
$data = ['user' => $this->user];
|
||||
|
||||
replace_breadcrumb_params([0 => $this->user->username]);
|
||||
return view('admin/user/view', $data);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$data = [
|
||||
'roles' => (new GroupModel())->getUserRoles(),
|
||||
];
|
||||
|
||||
echo view('admin/user/create', $data);
|
||||
return view('admin/user/create', $data);
|
||||
}
|
||||
|
||||
public function attemptCreate()
|
||||
|
|
@ -99,7 +107,8 @@ class User extends BaseController
|
|||
'roles' => (new GroupModel())->getUserRoles(),
|
||||
];
|
||||
|
||||
echo view('admin/user/edit', $data);
|
||||
replace_breadcrumb_params([0 => $this->user->username]);
|
||||
return view('admin/user/edit', $data);
|
||||
}
|
||||
|
||||
public function attemptEdit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue