25 lines
786 B
PHP
25 lines
786 B
PHP
<html lang="en">
|
|
<head>
|
|
<title>Address Book
|
|
<?php if (!empty($user->getNick())): ?>
|
|
- <?= $user->getNick() ?>
|
|
<?php endif; ?>
|
|
</title>
|
|
<link rel="stylesheet" href="/assets/styles/main.css">
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Address Book</h1>
|
|
<a href="<?= $router->path('app_main'); ?>">🏠 Home</a>
|
|
<a href="<?= $router->path('app_admin'); ?>">⚙ Admin</a>
|
|
<?php if (empty($user) || $user->getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?>
|
|
<a href="<?= $router->path('app_login'); ?>">🚪Login</a>
|
|
<?php else: ?>
|
|
<a href="<?= $router->path('app_logout'); ?>">🚪Logout</a>
|
|
<?php endif; ?>
|
|
<?php if (!empty($user->getNick())): ?>
|
|
<br>
|
|
<-- TODO fix for anonymous Welcome back, <?= $user->getNick(); ?> -->
|
|
<?php endif; ?>
|
|
<br>
|