ユーザー
This commit is contained in:
@@ -56,6 +56,18 @@
|
||||
<a class="{{ $m['class'] }}{{ $curPage == $m['page'] ? ' active' : '' }}" href="{{ $m['href'] }}">{{ $m['text'] }}</a>
|
||||
{@ endif @}
|
||||
{@ endforeach @}
|
||||
{@ if (AUTH_ENABLED) @}
|
||||
<div>
|
||||
{@ if (isset($user) && isset($user->id) && $user->id > 0) @}
|
||||
お帰りなしゃ~い、{{ $user->displayname ?? $user->username }}さん! (<a href="/logout">ログアウト</a>)
|
||||
{@ else @}
|
||||
<a href="/login">ログイン</a>
|
||||
{@ if (AUTH_REGISTER_ENABLED) @}
|
||||
| <a href="/register">登録</a>
|
||||
{@ endif @}
|
||||
{@ endif @}
|
||||
</div>
|
||||
{@ endif @}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
Reference in New Issue
Block a user