2021-09-09 16:27:09 +02:00
|
|
|
<?php
|
|
|
|
use Cake\Routing\Router;
|
|
|
|
?>
|
|
|
|
<div class="btn-group">
|
2021-09-17 13:04:37 +02:00
|
|
|
<a class="nav-link px-2 text-decoration-none profile-button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#" data-bs-offset="10,20">
|
2021-09-09 16:27:09 +02:00
|
|
|
<i class="<?= $this->FontAwesome->getClass('user-circle') ?> fa-lg"></i>
|
|
|
|
</a>
|
2021-09-17 13:04:37 +02:00
|
|
|
<div class="dropdown-menu dropdown-menu-end">
|
2021-09-09 16:27:09 +02:00
|
|
|
<h6 class="dropdown-header"><?= h($this->request->getAttribute('identity')['username']) ?></h6>
|
|
|
|
<a class="dropdown-item" href="<?= Router::url(['controller' => 'users', 'action' => 'view']) ?>">
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('user-circle') ?>"></i>
|
2021-09-09 16:27:09 +02:00
|
|
|
<?= __('My Account') ?>
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="<?= Router::url(['controller' => 'users', 'action' => 'userSettings']) ?>">
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('user-cog') ?>"></i>
|
2021-09-09 16:27:09 +02:00
|
|
|
<?= __('Settings') ?>
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item" href="<?= Router::url(['controller' => 'users', 'action' => 'logout']) ?>">
|
2021-09-17 13:04:37 +02:00
|
|
|
<i class="me-1 <?= $this->FontAwesome->getClass('sign-out-alt') ?>"></i>
|
2021-09-09 16:27:09 +02:00
|
|
|
<?= __('Logout') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|