diff options
author | Frankie B <git@diskfloppy.me> | 2023-07-16 21:02:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 21:02:51 +0100 |
commit | 7c16dc53b55aa50d6c9ac0bdea2f51fbbf2b20b0 (patch) | |
tree | d81c7682b4696d4182ab375d64fa69c4ff755647 /resources/views/includes | |
parent | 691d0d933d9c2d9289fa01c7153371e45998ac53 (diff) |
feat: site admin (#8)
Diffstat (limited to 'resources/views/includes')
-rw-r--r-- | resources/views/includes/admin/header.blade.php | 12 | ||||
-rw-r--r-- | resources/views/includes/header.blade.php | 8 |
2 files changed, 19 insertions, 1 deletions
diff --git a/resources/views/includes/admin/header.blade.php b/resources/views/includes/admin/header.blade.php new file mode 100644 index 0000000..edb2fd7 --- /dev/null +++ b/resources/views/includes/admin/header.blade.php @@ -0,0 +1,12 @@ + <nav> + <div> + <a href="/">public home</a> | + <a href="/admin">admin home</a> | + <a href="/admin/guestbook">guestbook</a> + @if (auth()->check()) + | ({{ auth()->user()->name }}) <a href="/logout">logout</a> + @else + | <a href="/login">login</a> + @endif + </div> + </nav> diff --git a/resources/views/includes/header.blade.php b/resources/views/includes/header.blade.php index 53d44e2..01de256 100644 --- a/resources/views/includes/header.blade.php +++ b/resources/views/includes/header.blade.php @@ -1,12 +1,18 @@ <nav> <div> <a href="/">home</a> | - <a href="//git.diskfloppy.me/">cgit</a> | + <a href="//git.diskfloppy.me/">cgit</a> | <a href="//wiki.diskfloppy.me/">wiki</a> | <a href="/projects/">projects</a> | <a href="/calculators/">calculators</a> | <a href="/computers/">computers</a> | <a href="/bookmarks/">bookmarks</a> | <a href="/guestbook/">guestbook</a> + @if (auth()->check()) + | <a href="/admin/">admin</a> + | ({{ auth()->user()->name }}) <a href="/logout">logout</a> + @else + | <a href="/login">login</a> + @endif </div> </nav> |