xref: /webtrees/resources/views/modules/login_block/sign-out.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Contracts\UserInterface;
6use Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
7use Fisharebest\Webtrees\Http\RequestHandlers\Logout;
8use Fisharebest\Webtrees\I18N;
9
10/**
11 * @var UserInterface $user
12 */
13
14?>
15
16<p>
17    <?= I18N::translate('You are signed in as %s.', e($user->userName())) ?>
18</p>
19
20<p>
21    <a href="#" class="btn btn-primary" data-wt-post-url="<?= e(route(Logout::class)) ?>" data-wt-reload-url="<?= e(route(HomePage::class)) ?>">
22        <?= /* I18N: A button label. */ I18N::translate('sign out') ?>
23    </a>
24</p>
25