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

@ -1,10 +1,13 @@
<header class="<?= $class ?>">
<a href="<?= route_to(
'admin_home'
) ?>" class="inline-flex items-center text-xl">
<?= svg('logo-castopod', 'text-3xl mr-2 -ml-2') ?>
Admin
</a>
<div class="w-64">
<a href="<?= route_to(
'admin_home'
) ?>" class="inline-flex items-center text-xl">
<?= svg('logo-castopod', 'text-3xl mr-2') ?>
Admin
</a>
</div>
<?= render_breadcrumb() ?>
<div class="relative ml-auto" data-toggle="dropdown">
<button type="button" class="inline-flex items-center px-2 py-1 outline-none focus:shadow-outline" id="myAccountDropdown" data-popper="button" aria-haspopup="true" aria-expanded="false">
Hey <?= user()->username ?>